This is an automated email from the ASF dual-hosted git repository. avijayan pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ambari.git
commit ba21ebe111ab119ccd4ca3305dc5267c5b4f0725 Author: Aravindan Vijayan <avija...@hortonworks.com> AuthorDate: Fri Mar 16 14:26:13 2018 -0700 AMBARI-23250 : Fix deployment issues in AMS perf branch. (hbase-site change). --- .../0.1.0/configuration/ams-hbase-site.xml | 16 ++++++++++++++++ .../AMBARI_METRICS/0.1.0/service_advisor.py | 1 + .../resources/stacks/HDF/2.0/services/stack_advisor.py | 1 + 3 files changed, 18 insertions(+) diff --git a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-hbase-site.xml b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-hbase-site.xml index cf819d9..de4ebb0 100644 --- a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-hbase-site.xml +++ b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-hbase-site.xml @@ -617,4 +617,20 @@ </value-attributes> <on-ambari-upgrade add="true"/> </property> + <property> + <name>hbase.unsafe.stream.capability.enforce</name> + <value>false</value> + <description> + Controls whether HBase will check for stream capabilities (hflush/hsync). + Disable this if you intend to run on LocalFileSystem. + WARNING: Doing so may expose you to additional risk of data loss! + </description> + <depends-on> + <property> + <type>ams-site</type> + <name>timeline.metrics.service.operation.mode</name> + </property> + </depends-on> + <on-ambari-upgrade add="true"/> + </property> </configuration> diff --git a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/service_advisor.py b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/service_advisor.py index eae98bf..c78d48a 100644 --- a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/service_advisor.py +++ b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/service_advisor.py @@ -303,6 +303,7 @@ class AMBARI_METRICSRecommender(service_advisor.ServiceAdvisor): if operatingMode == "distributed": putAmsSiteProperty("timeline.metrics.service.watcher.disabled", 'true') putAmsHbaseSiteProperty("hbase.cluster.distributed", 'true') + putAmsHbaseSiteProperty("hbase.unsafe.stream.capability.enforce", 'true') else: putAmsSiteProperty("timeline.metrics.service.watcher.disabled", 'false') putAmsHbaseSiteProperty("hbase.cluster.distributed", 'false') diff --git a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/services/stack_advisor.py b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/services/stack_advisor.py index da33b95..2a6766a 100644 --- a/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/services/stack_advisor.py +++ b/contrib/management-packs/hdf-ambari-mpack/src/main/resources/stacks/HDF/2.0/services/stack_advisor.py @@ -617,6 +617,7 @@ class HDF20StackAdvisor(DefaultStackAdvisor): putAmsSiteProperty("timeline.metrics.service.watcher.disabled", 'true') putAmsSiteProperty("timeline.metrics.host.aggregator.ttl", 259200) putAmsHbaseSiteProperty("hbase.cluster.distributed", 'true') + putAmsHbaseSiteProperty("hbase.unsafe.stream.capability.enforce", 'true') else: putAmsSiteProperty("timeline.metrics.service.watcher.disabled", 'false') putAmsSiteProperty("timeline.metrics.host.aggregator.ttl", 86400) -- To stop receiving notification emails like this one, please contact avija...@apache.org.