AMBARI-19261 : AMS cannot start after NN HA is enabled due to hbase.rootdir pointing to Standby NN. (avijayan)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/02f649fe Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/02f649fe Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/02f649fe Branch: refs/heads/branch-dev-patch-upgrade Commit: 02f649fe0ed2e305fb44005e4f29527a5fd973f6 Parents: 1584984e Author: Aravindan Vijayan <avija...@hortonworks.com> Authored: Tue Dec 20 15:43:18 2016 -0800 Committer: Aravindan Vijayan <avija...@hortonworks.com> Committed: Tue Dec 20 15:43:18 2016 -0800 ---------------------------------------------------------------------- .../src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py | 2 +- .../src/test/python/stacks/2.2/common/test_stack_advisor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/02f649fe/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py index 5e8673c..a352cdb 100644 --- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py +++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py @@ -754,7 +754,7 @@ class HDP206StackAdvisor(DefaultStackAdvisor): putAmsHbaseSiteProperty("hbase.tmp.dir", tmpDir) if operatingMode == "distributed": - putAmsHbaseSiteProperty("hbase.rootdir", defaultFs + "/user/ams/hbase") + putAmsHbaseSiteProperty("hbase.rootdir", "/user/ams/hbase") if operatingMode == "embedded": if isLocalRootDir: http://git-wip-us.apache.org/repos/asf/ambari/blob/02f649fe/ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py b/ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py index 54349a2..beebe28 100644 --- a/ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py +++ b/ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py @@ -2524,7 +2524,7 @@ class TestHDP22StackAdvisor(TestCase): services["configurations"]['ams-site']['properties']['timeline.metrics.service.operation.mode'] = 'distributed' services["configurations"]["core-site"]["properties"]["fs.defaultFS"] = 'hdfs://host1:8020' expected['ams-hbase-site']['properties']['hbase.cluster.distributed'] = 'true' - expected['ams-hbase-site']['properties']['hbase.rootdir'] = 'hdfs://host1:8020/user/ams/hbase' + expected['ams-hbase-site']['properties']['hbase.rootdir'] = '/user/ams/hbase' expected['ams-hbase-site']['properties']['hbase.zookeeper.property.clientPort'] = '2181' expected['ams-hbase-env']['properties']['hbase_master_heapsize'] = '512' expected['ams-hbase-site']['properties']['dfs.client.read.shortcircuit'] = 'true'