kafka.zookeeper.ZooKeeperClientTimeoutException: Timed out waiting for connection while in state: CO

1、尝试将kafka配置server.properties文件zookeeper.connection.timeout.ms超时时间设置调大

2、kafka配置文件server.properties中的配置zookeeper.connect的zookeeper服务地址是否一致
3、也有可能是防火墙没有关闭,使用systemctl stop firewalld关闭防火墙
4、kafka中libs目录下的zookeeper版本是否一致?

你可能感兴趣的:(kafka,java-zookeeper,zookeeper)