返回到文章
第n个优化测试功能

采纳

编辑于 3年前
kafka

消费的时候报连接超时,什么原因呢?

Exception in thread "main" org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 6000  
at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:880)  
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:98)  
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:84)  at kafka.consumer.ZookeeperConsumerConnector.connectZk(ZookeeperConsumerConnector.scala:156)  
at kafka.consumer.ZookeeperConsumerConnector.<init>(ZookeeperConsumerConnector.scala:114)
kafka

消费的时候报连接超时,什么原因啊?

Exception in thread "main" org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 6000  
at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:880)  
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:98)  
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:84)  at kafka.consumer.ZookeeperConsumerConnector.connectZk(ZookeeperConsumerConnector.scala:156)  
at kafka.consumer.ZookeeperConsumerConnector.<init>(ZookeeperConsumerConnector.scala:114)

记录

编辑于

kafka消费的时候报连接超时,有人遇到过吗

kafka

消费的时候报连接超时,什么原因啊?

Exception in thread "main" org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 6000  
at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:880)  
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:98)  
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:84)  at kafka.consumer.ZookeeperConsumerConnector.connectZk(ZookeeperConsumerConnector.scala:156)  
at kafka.consumer.ZookeeperConsumerConnector.<init>(ZookeeperConsumerConnector.scala:114)