问答

kafka集群在无法启动?找不到方法org.apache.zookeeper.ZooKeeper

作者:admin 2021-10-14 我要评论

尝试过让kafka降级到kafka_2.11-2.3.1 ,看到lib里面依赖的是zookeeper-3.4.14,我把 zookeeper 也降级到了?3.4.14; zookeeper 启动成功, Kafka怎么都启动不了,我...

在说正事之前,我要推荐一个福利:你还在原价购买阿里云、腾讯云、华为云服务器吗?那太亏啦!来这里,新购、升级、续费都打折,能够为您省60%的钱呢!2核4G企业级云服务器低至69元/年,点击进去看看吧>>>)

尝试过让kafka降级到kafka_2.11-2.3.1 ,看到lib里面依赖的是zookeeper-3.4.14,我把 zookeeper 也降级到了?3.4.14;

zookeeper 启动成功, Kafka怎么都启动不了,我把javahome 也改了,依然启动不了

export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_144
export PATH=$PATH:$JAVA_HOME/bin?

只有这一个变量;

java.lang.NoSuchMethodError: org.apache.zookeeper.ZooKeeper.multi(Ljava/lang/Iterable;Lorg/apache/zookeeper/AsyncCallback$MultiCallback;Ljava/lang/Object;)V
?? ?at kafka.zookeeper.ZooKeeperClient.send(ZooKeeperClient.scala:229)
?? ?at kafka.zookeeper.ZooKeeperClient$$anonfun$handleRequests$1$$anonfun$apply$1.apply$mcV$sp(ZooKeeperClient.scala:160)
?? ?at kafka.zookeeper.ZooKeeperClient$$anonfun$handleRequests$1$$anonfun$apply$1.apply(ZooKeeperClient.scala:160)
?? ?at kafka.zookeeper.ZooKeeperClient$$anonfun$handleRequests$1$$anonfun$apply$1.apply(ZooKeeperClient.scala:160)
?? ?at kafka.utils.CoreUtils$.inLock(CoreUtils.scala:253)
?? ?at kafka.utils.CoreUtils$.inReadLock(CoreUtils.scala:259)
?? ?at kafka.zookeeper.ZooKeeperClient$$anonfun$handleRequests$1.apply(ZooKeeperClient.scala:159)
?? ?at kafka.zookeeper.ZooKeeperClient$$anonfun$handleRequests$1.apply(ZooKeeperClient.scala:156)
?? ?at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
?? ?at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
?? ?at kafka.zookeeper.ZooKeeperClient.handleRequests(ZooKeeperClient.scala:156)
?? ?at kafka.zk.KafkaZkClient.retryRequestsUntilConnected(KafkaZkClient.scala:1660)
?? ?at kafka.zk.KafkaZkClient.retryRequestsUntilConnected(KafkaZkClient.scala:1647)
?? ?at kafka.zk.KafkaZkClient.retryRequestUntilConnected(KafkaZkClient.scala:1642)
?? ?at kafka.zk.KafkaZkClient$CheckedEphemeral.create(KafkaZkClient.scala:1712)
?? ?at kafka.zk.KafkaZkClient.checkedEphemeralCreate(KafkaZkClient.scala:1689)
?? ?at kafka.zk.KafkaZkClient.registerBroker(KafkaZkClient.scala:97)
?? ?at kafka.server.KafkaServer.startup(KafkaServer.scala:262)
?? ?at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:38)
?? ?at kafka.Kafka$.main(Kafka.scala:84)
?? ?at kafka.Kafka.main(Kafka.scala)

版权声明:本文转载自网络,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。本站转载出于传播更多优秀技术知识之目的,如有侵权请联系QQ/微信:153890879删除

相关文章
  • kafka集群在无法启动?找不到方法org.ap

    kafka集群在无法启动?找不到方法org.ap

  • element UI  table 的tootip不能复制

    element UI table 的tootip不能复制

  • 问一下。vue tab选项卡使用动态组件来

    问一下。vue tab选项卡使用动态组件来

  • react中引入better-scroll,横向滚动失

    react中引入better-scroll,横向滚动失

腾讯云代理商
海外云服务器