You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Andrew Onischuk (JIRA)" <ji...@apache.org> on 2015/06/25 10:58:04 UTC

[jira] [Created] (AMBARI-12140) Cannot stop Storm components (systemwide umask 027 + non-root)

Andrew Onischuk created AMBARI-12140:
----------------------------------------

             Summary: 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)