ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-12140) Cannot stop Storm components (systemwide umask 027 + non-root)
Date Thu, 25 Jun 2015 10:58:04 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-12140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14600998#comment-14600998
] 

Hudson commented on AMBARI-12140:
---------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #2998 (See [https://builds.apache.org/job/Ambari-trunk-Commit/2998/])
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=0c358e901efdccc953f2de4ea18ffdcba487c0a3)
* 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_supervisor_prod.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_rest_api_service.py
* ambari-server/src/test/python/stacks/2.1/STORM/test_storm_ui_server.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_webhcat_server.py
* ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/service.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_nimbus.py
* ambari-server/src/test/python/stacks/2.1/STORM/test_storm_supervisor.py
* ambari-server/src/test/python/stacks/2.1/STORM/test_storm_drpc_server.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)

Mime
View raw message