Details
Description
Hello,
If I execute twice the command
/etc/init.d/hadoop-zookeeper start
Of course the second zookeeper process is not launched, but the second call has erased the zookeeper's PID.
Since that, the command
/etc/init.d/hadoop-zookeeper stop
won't work..
To fix that, a check - like in the Hadoop scripts - need to be added in zkServer.sh, after the line
echo "Starting zookeeper ... "
add
if [ -f $ZOOPIDFILE ]; then if kill -0 `cat $ZOOPIDFILE` > /dev/null 2>&1; then echo zookeeper running as process `cat $ZOOPIDFILE`. Stop it first. exit 1 fi fi