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

mathildaMa09 commented on AMBARI-22762:
---------------------------------------

For flume agent a, Ambari send cmd ‘pgrep -o -u flume -f 
'^/user/lib/jvm/java.*a.* ’ to get pid, for agent b , send  ‘pgrep -o -u flume 
-f '^/user/lib/jvm/java.*b.* ’. but these two cmd returns same pid, thus when 
stop one of them, the other stops as well.

Sometime, 'pgrep -f ' cannot get real full command because flume command is too 
long to retrieve, so send 'ps' command instead.

> Can not stop one single flume agent when deployed on the same host
> ------------------------------------------------------------------
>
>                 Key: AMBARI-22762
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22762
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.5.2
>         Environment: ambari 2.5.2,
> flume 1.8
>            Reporter: mathildaMa09
>         Attachments: AMBARI-22762.patch
>
>
> I'm using ambari 2.5.2, flume 1.8, when i install one more agents on same 
> host, once try stop agent, other agents stop also.
> notice: one agent named 'a', the other name 'b'



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to