前面的工作在帖子中已经记录,解决后引发的新问题。
上篇文章:https://www.orchome.com/169
详细报错信息如下:
[2016-04-30 06:55:18,789] INFO Waiting for keeper state SaslAuthenticated (org.I0Itec.zkclient.ZkClient)
[2016-04-30 06:55:34,790] INFO Terminate ZkClient event thread. (org.I0Itec.zkclient.ZkEventThread)
[2016-04-30 06:56:49,249] WARN SASL configuration failed: javax.security.auth.login.LoginException: Receive timed out Will continue connection to Zookeeper server without SASL authentication, if Zookeeper server allows it. (org.apache.zookeeper.ClientCnxn)
[2016-04-30 06:56:49,251] INFO Opening socket connection to server 192.168.1.202/192.168.1.202:2181 (org.apache.zookeeper.ClientCnxn)
[2016-04-30 06:56:49,358] INFO Session: 0x0 closed (org.apache.zookeeper.ZooKeeper)
[2016-04-30 06:56:49,359] INFO EventThread shut down (org.apache.zookeeper.ClientCnxn)
[2016-04-30 06:56:49,362] FATAL Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 16000
at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1223)
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:155)
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:129)
at kafka.utils.ZkUtils$.createZkClientAndConnection(ZkUtils.scala:89)
at kafka.utils.ZkUtils$.apply(ZkUtils.scala:71)
at kafka.server.KafkaServer.initZk(KafkaServer.scala:278)
at kafka.server.KafkaServer.startup(KafkaServer.scala:168)
at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37)
at kafka.Kafka$.main(Kafka.scala:67)
at kafka.Kafka.main(Kafka.scala)
[2016-04-30 06:56:49,365] INFO shutting down (kafka.server.KafkaServer)
[2016-04-30 06:56:49,390] INFO shut down completed (kafka.server.KafkaServer)
请问解决了吗?遇到同样的问题
按照我的笔记做
https://www.orchome.com/500
你的答案