ambari-dev mailing list archives

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

     [ https://issues.apache.org/jira/browse/AMBARI-12140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Onischuk resolved AMBARI-12140.
--------------------------------------
    Resolution: Fixed

Committed to trunk and branch-2.1

> 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