Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5821D17DEC for ; Tue, 3 Mar 2015 16:59:04 +0000 (UTC) Received: (qmail 71022 invoked by uid 500); 3 Mar 2015 16:52:23 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 70994 invoked by uid 500); 3 Mar 2015 16:52:23 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 70974 invoked by uid 99); 3 Mar 2015 16:52:23 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2015 16:52:23 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 246791CAC21; Tue, 3 Mar 2015 16:52:22 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6674421352539535337==" MIME-Version: 1.0 Subject: Review Request 31684: Knox service check fails with umask 027 also in non-root (as well as Hive metastore start) From: "Andrew Onischuk" To: "Dmitro Lisnichenko" Cc: "Andrew Onischuk" , "Ambari" Date: Tue, 03 Mar 2015 16:52:22 -0000 Message-ID: <20150303165222.5896.70538@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Andrew Onischuk" X-ReviewGroup: Ambari X-ReviewRequest-URL: https://reviews.apache.org/r/31684/ X-Sender: "Andrew Onischuk" Reply-To: "Andrew Onischuk" X-ReviewRequest-Repository: ambari --===============6674421352539535337== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/31684/ ----------------------------------------------------------- Review request for Ambari and Dmitro Lisnichenko. Bugs: AMBARI-9901 https://issues.apache.org/jira/browse/AMBARI-9901 Repository: ambari Description ------- 2015-03-03 13:24:57,573 - Error while executing command 'service_check': Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 208, in execute method(env) File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", line 89, in thunk return fn(*args, **kwargs) File "/var/lib/ambari-agent/cache/common-services/KNOX/0.5.0.2.2/package/scripts/service_check.py", line 69, in service_check sudo=True File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148, in __init__ self.env.run() File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 152, in run self.run_action(resource, action) File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 118, in run_action provider_action() File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 276, in action_run raise ex Fail: String command '/usr/bin/python2.7 /var/lib/ambari-agent/data/tmp/validateKnoxStatus.py -p 8443 -n u1201.org' cannot be run as sudo. Please supply the command as a tuple of arguments Diffs ----- ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py 7b0113b ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py a66b0c8 ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/service_check.py aa887a5 ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_metastore.py 912fe7e ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py c073d00 ambari-server/src/test/python/stacks/2.1/HIVE/test_hive_metastore.py aa8bc7f Diff: https://reviews.apache.org/r/31684/diff/ Testing ------- mvn clean test Thanks, Andrew Onischuk --===============6674421352539535337==--