You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/10/06 17:45:22 UTC

[jira] [Commented] (KAFKA-4264) kafka-server-stop.sh fails is Kafka launched via kafka-server-start.sh

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

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

GitHub user davemcphee opened a pull request:

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

    mods grep target to find kafka process, fixes KAFKA-4264

    Fixes issue described here: https://issues.apache.org/jira/browse/KAFKA-4264

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

    $ git pull https://github.com/davemcphee/kafka trunk

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

    https://github.com/apache/kafka/pull/1984.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 #1984
    
----
commit 6ad83c5ad899f4ea7bda9a709999fd350200eb2b
Author: Alex Schmitz <al...@samba.tv>
Date:   2016-10-06T17:41:16Z

    mods grep target to find kafka process, fixes KAFKA-4264

----


> kafka-server-stop.sh fails is Kafka launched via kafka-server-start.sh
> ----------------------------------------------------------------------
>
>                 Key: KAFKA-4264
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4264
>             Project: Kafka
>          Issue Type: Improvement
>          Components: tools
>    Affects Versions: 0.10.0.1
>         Environment: Tested in Debian Jessy
>            Reporter: Alex Schmitz
>            Priority: Trivial
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> kafka-server-stop.sh greps for the process ID to kill with the following: 
> bq. PIDS=$(ps ax | grep -i 'kafka\.Kafka' | grep java | grep -v grep | awk '{print $1}')
> However, if Kafka is launched via the kafka-server-start.sh script, the process doesn't include kafka.Kafka, the grep fails to find the process, and it returns the failure message, No Kafka server to stop. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)