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 Wed, 15 Apr 2015 15:34:25 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.0.maint 0ff32cd45 -> 1db1f436b


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

Branch: refs/heads/branch-2.0.maint
Commit: 1db1f436bb75ae7c4ccd353bc48f3fbca6915c5c
Parents: 0ff32cd
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Wed Apr 15 18:34:03 2015 +0300
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Wed Apr 15 18:34:03 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/1db1f436/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