Repository: ambari Updated Branches: refs/heads/branch-2.4 9e6fbf90a -> 4487690b3
AMBARI-17858 Hive service check failed (dsen) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4487690b Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4487690b Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4487690b Branch: refs/heads/branch-2.4 Commit: 4487690b36c5eb1136f2ddac0a95c8eda6baeae4 Parents: 9e6fbf9 Author: Dmytro Sen <[email protected]> Authored: Fri Jul 22 19:43:08 2016 +0300 Committer: Dmytro Sen <[email protected]> Committed: Fri Jul 22 19:43:53 2016 +0300 ---------------------------------------------------------------------- .../stacks/HDP/2.2/services/stack_advisor.py | 4 +++ .../stacks/2.2/common/test_stack_advisor.py | 30 +++++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/4487690b/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py index fc38ced..5b7b7a4 100644 --- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py +++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py @@ -309,6 +309,10 @@ class HDP22StackAdvisor(HDP21StackAdvisor): putHiveSiteProperty("hive.enforce.bucketing", "false") putHiveSiteProperty("hive.exec.dynamic.partition.mode", "strict") + hiveMetastoreHost = self.getHostWithComponent("HIVE", "HIVE_METASTORE", services, hosts) + if hiveMetastoreHost is not None and len(hiveMetastoreHost) > 0: + putHiveSiteProperty("hive.metastore.uris", "thrift://" + hiveMetastoreHost["Hosts"]["host_name"] + ":9083") + # ATS putHiveEnvProperty("hive_timeline_logging_enabled", "true") http://git-wip-us.apache.org/repos/asf/ambari/blob/4487690b/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 818390d..ab5ae8b 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 @@ -1235,7 +1235,8 @@ class TestHDP22StackAdvisor(TestCase): 'hive.vectorized.execution.enabled': 'true', 'hive.vectorized.execution.reduce.enabled': 'false', 'hive.security.metastore.authorization.manager': 'org.apache.hadoop.hive.ql.security.authorization.StorageBasedAuthorizationProvider', - 'hive.security.authorization.manager': 'org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdConfOnlyAuthorizerFactory' + 'hive.security.authorization.manager': 'org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdConfOnlyAuthorizerFactory', + 'hive.metastore.uris' : 'thrift://c6402.ambari.apache.org:9083' }, 'property_attributes': { 'hive.auto.convert.join.noconditionaltask.size': {'maximum': '644245094'}, @@ -1342,6 +1343,33 @@ class TestHDP22StackAdvisor(TestCase): } ] }, + { + "href": "/api/v1/stacks/HDP/versions/2.2/services/HIVE", + "StackServices": { + "service_name": "HIVE", + "service_version": "2.6.0.2.2", + "stack_name": "HDP", + "stack_version": "2.2" + }, + "components": [ + { + "StackServiceComponents": { + "advertise_version": "false", + "cardinality": "1", + "component_category": "MASTER", + "component_name": "HIVE_METASTORE", + "display_name": "HiveServer2", + "is_client": "false", + "is_master": "true", + "hostnames": [ + "c6402.ambari.apache.org" + ] + }, + "dependencies": [] + } + , + ], + }, ], "configurations": { "capacity-scheduler": {
