使用bin 目录下的./kafka-server-stop.sh 出现No kafka server to stop
将PIDS=$(ps ax | grep -i ‘kafka.Kafka’ | grep java | grep -v grep | awk ‘{print $1}’)
修改为
PIDS=$(jps -lm | grep -i ‘kafka.Kafka’ | awk ‘{print $1}’)
即可解决
使用bin 目录下的./kafka-server-stop.sh 出现No kafka server to stop
将PIDS=$(ps ax | grep -i ‘kafka.Kafka’ | grep java | grep -v grep | awk ‘{print $1}’)
修改为
PIDS=$(jps -lm | grep -i ‘kafka.Kafka’ | awk ‘{print $1}’)
即可解决