具体报错如下:
kafka.zookeeper.ZooKeeperClientTimeoutException: Timed out waiting for connection while in state: CONNECTING
环境为zookeeper3.4.8,kafka_2.11-2.3.1,jdk1.8
查看zookeeper状态正常,2181端口都是通的。
查看zookeeper为两年前启动,尝试重启zookeeper服务,重启后,再次启动kafka服务,可以正常启动。
启动命令如下:
nohup ./kafka-server-start.sh ../config/server.properties &