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 1A77C18B65 for ; Thu, 25 Jun 2015 11:08:05 +0000 (UTC) Received: (qmail 42678 invoked by uid 500); 25 Jun 2015 11:08:05 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 42643 invoked by uid 500); 25 Jun 2015 11:08:05 -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 42628 invoked by uid 99); 25 Jun 2015 11:08:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2015 11:08:04 +0000 Date: Thu, 25 Jun 2015 11:08:04 +0000 (UTC) From: "Hudson (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-12140) Cannot stop Storm components (systemwide umask 027 + non-root) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-12140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14601005#comment-14601005 ] Hudson commented on AMBARI-12140: --------------------------------- SUCCESS: Integrated in Ambari-branch-2.1 #112 (See [https://builds.apache.org/job/Ambari-branch-2.1/112/]) AMBARI-12140. Cannot stop Storm components (systemwide umask 027 + non-root) (aonishuk) (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=3115fc23e6d32390199faa09cd4d40a6c473af58) * ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py * ambari-server/src/test/python/stacks/2.1/STORM/test_storm_ui_server.py * ambari-server/src/test/python/stacks/2.1/STORM/test_storm_supervisor.py * ambari-server/src/test/python/stacks/2.0.6/HIVE/test_webhcat_server.py * ambari-server/src/test/python/stacks/2.1/STORM/test_storm_supervisor_prod.py * ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py * ambari-server/src/test/python/stacks/2.1/STORM/test_storm_rest_api_service.py * ambari-server/src/test/python/stacks/2.1/HIVE/test_hive_metastore.py * ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_metastore.py * ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/webhcat_service.py * ambari-server/src/test/python/stacks/2.1/STORM/test_storm_nimbus.py * ambari-server/src/test/python/stacks/2.1/STORM/test_storm_drpc_server.py * ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/service.py > Cannot stop Storm components (systemwide umask 027 + non-root) > --------------------------------------------------------------- > > Key: AMBARI-12140 > URL: https://issues.apache.org/jira/browse/AMBARI-12140 > Project: Ambari > Issue Type: Bug > Reporter: Andrew Onischuk > Assignee: Andrew Onischuk > Fix For: 2.1.0 > > > Running as non-root, umask 027 and custom service account. > Stop does not stop storm components, just deletes the .pid file and leaves > processes running. > > > > [root@c6401 storm]# ls -l > total 4 > -rw-r----- 1 jstorm jhadoop 6 Jun 24 14:14 drpc.pid > > Shouldn't the check for the pid be run as the custom service account? > Otherwise, it can't read the pid and deletes it. Need to fix this for all > components of Storm. > > > > 2015-06-24 14:15:57,863 - Execute['ambari-sudo.sh kill `cat /var/run/storm/drpc.pid`'] {'not_if': '! (ls /var/run/storm/drpc.pid >/dev/null 2>&1 && ps -p `cat /var/run/storm/drpc.pid` >/dev/null 2>&1)'} > 2015-06-24 14:15:57,869 - Skipping Execute['ambari-sudo.sh kill `cat /var/run/storm/drpc.pid`'] due to not_if > 2015-06-24 14:15:57,870 - Execute['ambari-sudo.sh kill -9 `cat /var/run/storm/drpc.pid`'] {'not_if': 'sleep 2; ! (ls /var/run/storm/drpc.pid >/dev/null 2>&1 && ps -p `cat /var/run/storm/drpc.pid` >/dev/null 2>&1) || sleep 20; ! (ls /var/run/storm/drpc.pid >/dev/null 2>&1 && ps -p `cat /var/run/storm/drpc.pid` >/dev/null 2>&1)', 'ignore_failures': True} > 2015-06-24 14:15:59,881 - Skipping Execute['ambari-sudo.sh kill -9 `cat /var/run/storm/drpc.pid`'] due to not_if > 2015-06-24 14:15:59,881 - File['/var/run/storm/drpc.pid'] {'action': ['delete']} > 2015-06-24 14:15:59,905 - Deleting File['/var/run/storm/drpc.pid'] > -- This message was sent by Atlassian JIRA (v6.3.4#6332)