ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject ambari git commit: AMBARI-10095. HiveServer2 does not install/start when running w/o sudo (aonishuk)
Date Fri, 10 Apr 2015 09:28:14 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 24a93410f -> 7f933e321


AMBARI-10095. HiveServer2 does not install/start when running w/o sudo (aonishuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/7f933e32
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7f933e32
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7f933e32

Branch: refs/heads/trunk
Commit: 7f933e321d5914f0f6a0c761089fedf4e0cacaeb
Parents: 24a9341
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Fri Apr 10 12:28:07 2015 +0300
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Fri Apr 10 12:28:07 2015 +0300

----------------------------------------------------------------------
 .../HIVE/0.12.0.2.0/package/scripts/hive_service.py              | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/7f933e32/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py
b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py
index bbd9dee..55ff6c9 100644
--- a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py
+++ b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py
@@ -129,8 +129,8 @@ def hive_service(name, action='start', rolling_restart=False):
 def check_fs_root():
   import params  
   metatool_cmd = format("hive --config {hive_server_conf_dir} --service metatool")
-  cmd = as_user(format("{metatool_cmd} -listFSRoot 2>/dev/null", env={'PATH': params.execute_path}),
params.hive_user) \
-        + format(" | grep hdfs:// | cut -f1,2,3 -d '/' | grep -v '{fs_root}' | head -1")
+  cmd = as_user(format("{metatool_cmd} -listFSRoot", env={'PATH': params.execute_path}),
params.hive_user) \
+        + format(" 2>/dev/null | grep hdfs:// | cut -f1,2,3 -d '/' | grep -v '{fs_root}'
| head -1")
   code, out = shell.call(cmd)
 
   if code == 0 and out.strip() != "" and params.fs_root.strip() != out.strip():


Mime
View raw message