You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ds...@apache.org on 2015/03/16 20:07:49 UTC

ambari git commit: AMBARI-9881 HiveMetastore in secure mode throws errors(additional patch) (dsen)

Repository: ambari
Updated Branches:
  refs/heads/trunk e813af2fe -> 3a652f0c9


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/3a652f0c
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3a652f0c
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3a652f0c

Branch: refs/heads/trunk
Commit: 3a652f0c99b25dd33091e58dab489810f8aaefa5
Parents: e813af2
Author: Dmytro Sen <ds...@apache.org>
Authored: Mon Mar 16 21:06:57 2015 +0200
Committer: Dmytro Sen <ds...@apache.org>
Committed: Mon Mar 16 21:06:57 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/3a652f0c/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()