You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/06/21 13:31:00 UTC

[jira] [Commented] (KAFKA-4931) stop script fails due 4096 ps output limit

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

ASF GitHub Bot commented on KAFKA-4931:
---------------------------------------

GitHub user tombentley opened a pull request:

    https://github.com/apache/kafka/pull/3396

    KAFKA-4931: stop script fails due 4096 ps output limit

    This also fixes KAFKA-4389 and KAFKA-4297, which were exactly the same
    issue but for kafka-server-stop.sh.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tombentley/kafka KAFKA-4297+4389+4931

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/kafka/pull/3396.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3396
    
----
commit 1f9c7d4f98b183b9c73079c6906914628b07c56c
Author: Tom Bentley <tb...@redhat.com>
Date:   2017-06-21T13:21:56Z

    KAFKA-4931: stop script fails due 4096 ps output limit
    
    This also fixes KAFKA-4389 and KAFKA-4297, which were exactly the same
    issue but for kafka-server-stop.sh.

----


> stop script fails due 4096 ps output limit
> ------------------------------------------
>
>                 Key: KAFKA-4931
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4931
>             Project: Kafka
>          Issue Type: Bug
>          Components: tools
>    Affects Versions: 0.10.2.0
>            Reporter: Amit Jain
>            Priority: Minor
>
> When run the script: bin/zookeeper-server-stop.sh fails to stop the zookeeper server process if the ps output exceeds 4096 character limit of linux. I think instead of ps we can use ${JAVA_HOME}/bin/jps -vl | grep QuorumPeerMain  it would correctly stop zookeeper process. Currently we are using kill 
> PIDS=$(ps ax | grep java | grep -i QuorumPeerMain | grep -v grep | awk '{print $1}')



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