Hi,

(sorry if duplicate, my first try was before I was subscribed to the list).


Using kafka 0.8.2.0. (fresh download). Started zookeeper with:

  $ bin/zookeeper-server-start.sh -daemon config/zookeeper.properties

The process is running:

  $ ps ax | grep -i 'zookeeper' | grep -v grep  | awk '{print $1}'
4752

Trying to stop the zookeeper _fails_ with

  $ bin/zookeeper-server-stop.sh
  $ ps ax | grep -i 'zookeeper' | grep -v grep  | awk '{print $1}'
  4752

It still runs ... (should have stopped)

  $ kill -SIGINT 4752
  $ ps ax | grep -i 'zookeeper' | grep -v grep  | awk '{print $1}'
  4752

It still runs ... (should have stopped)

  $ kill  4752
  $ ps ax | grep -i 'zookeeper' | grep -v grep  | awk '{print $1}'
  $

Not it was stopped :-)  Looking at the code:

  $ tail -3 bin/zookeeper-server-stop.sh
  ...
  ps ax | grep -i 'zookeeper' | grep -v grep | awk '{print $1}' | xargs
kill -SIGINT


The last line of bin/zookeeper-server-stop.sh tries to kill it with -SIGINT
signal, but that
seems to fail. Killing with the default signal does the job.

What would be the proper fix? I could try to submit a JIRA and a patch if
that is useful.

Thanks,

Peter
-- 
Peter Vandenabeele
http://www.allthingsdata.io
https://twitter.com/peter_v

Reply via email to