Repository: ambari Updated Branches: refs/heads/branch-2.0.0 2c395cfbf -> e2b6a3369
AMBARI-9881 HiveMetastore in secure mode throws errors(additional patch) (dsen) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/e2b6a336 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e2b6a336 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e2b6a336 Branch: refs/heads/branch-2.0.0 Commit: e2b6a3369c578fb0a2df84798dc677731f645e20 Parents: 2c395cf Author: Dmytro Sen <[email protected]> Authored: Mon Mar 16 21:06:57 2015 +0200 Committer: Dmytro Sen <[email protected]> Committed: Mon Mar 16 21:08:36 2015 +0200 ---------------------------------------------------------------------- .../HIVE/0.12.0.2.0/package/alerts/alert_hive_metastore.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/e2b6a336/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_metastore.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_metastore.py b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_metastore.py index 81fe94c..804ddfe 100644 --- a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_metastore.py +++ b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_metastore.py @@ -94,7 +94,8 @@ def execute(parameters=None, host_name=None): if host_name in uri: metastore_uri = uri - cmd = format("hive --hiveconf hive.metastore.uris={metastore_uri} -e 'show databases;'") + cmd = format("export HIVE_CONF_DIR='/etc/hive/conf.server/' ; " + "hive --hiveconf hive.metastore.uris={metastore_uri} -e 'show databases;'") start_time = time.time()
