kafka连接zookeeper时报错:
FATAL Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server 'localhost:2181' with timeout of 6000 ms
请问如何解决?
telnet localhost 2181
先看网络通不通
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
telnet进到命令后,输入 mntr ,查看zk是否正常。
另外,贴下你连接kafka的那段配置
已经好了 谢谢 加了一行host.name=172.16.1.113就连接上了
你的答案