[2019-12-18 18:49:35,492] FATAL Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
org.I0Itec.zkclient.exception.ZkException: Unable to connect to master:2181,slave1:2181,slave2:2181zookeeper.connect=master:2181,slave1:2181,slave2:2181
at org.I0Itec.zkclient.ZkConnection.connect(ZkConnection.java:71)
at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1227)
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:156)
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:130)
at kafka.utils.ZkUtils$.createZkClientAndConnection(ZkUtils.scala:76)
at kafka.utils.ZkUtils$.apply(ZkUtils.scala:58)
at kafka.server.KafkaServer.initZk(KafkaServer.scala:327)
at kafka.server.KafkaServer.startup(KafkaServer.scala:200)
at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:39)
at kafka.Kafka$.main(Kafka.scala:67)
at
kafka启动报错——aboutyun
最新推荐文章于 2024-02-17 21:36:05 发布
博客详细记录了在启动Kafka时遇到的错误,错误信息显示无法连接到Zookeeper服务器,具体为 UnknownHostException: slave2:2181。问题根源在于server.properties配置文件存在错误。
摘要由CSDN通过智能技术生成