Return-Path: X-Original-To: apmail-ambari-commits-archive@www.apache.org Delivered-To: apmail-ambari-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9619F17779 for ; Fri, 10 Apr 2015 09:28:48 +0000 (UTC) Received: (qmail 51190 invoked by uid 500); 10 Apr 2015 09:28:14 -0000 Delivered-To: apmail-ambari-commits-archive@ambari.apache.org Received: (qmail 51160 invoked by uid 500); 10 Apr 2015 09:28:14 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 51151 invoked by uid 99); 10 Apr 2015 09:28:14 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Apr 2015 09:28:14 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 31E1AE03C2; Fri, 10 Apr 2015 09:28:14 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aonishuk@apache.org To: commits@ambari.apache.org Message-Id: <1b39e443410442d3934ffe8fc6e22ed0@git.apache.org> X-Mailer: ASF-Git Admin Mailer 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 +0000 (UTC) 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 Authored: Fri Apr 10 12:28:07 2015 +0300 Committer: Andrew Onishuk 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():