开发者社区> 问答> 正文

kafka 添加kerberos认证

kafka版本:kafka_2.11-0.9.0.1
zookeeper版本:zookeeper-3.5.3

./kafka-console-consumer.sh --zookeeper node1:2181 --topic test --from-beginning --consumer.config ../config/consumer.properties
[2018-02-24 11:54:35,257] WARN [test-consumer-group_node1-1519444006293-12a51dac-leader-finder-thread], Failed to find leader for Set([test,0]) (kafka.consumer.ConsumerFetcherManager$LeaderFinderThread)
kafka.common.BrokerEndPointNotAvailableException: End point PLAINTEXT not found for broker 3

    at kafka.cluster.Broker.getBrokerEndPoint(Broker.scala:141)
    at kafka.utils.ZkUtils

$$ anonfun$getAllBrokerEndPointsForChannel$1.apply(ZkUtils.scala:180) at kafka.utils.ZkUtils $$

anonfun$getAllBrokerEndPointsForChannel$1.apply(ZkUtils.scala:180)

    at scala.collection.TraversableLike

$$ anonfun$map$1.apply(TraversableLike.scala:245) at scala.collection.TraversableLike $$

anonfun$map$1.apply(TraversableLike.scala:245)

    at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
    at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
    at scala.collection.TraversableLike$class.map(TraversableLike.scala:245)
    at scala.collection.AbstractTraversable.map(Traversable.scala:104)
    at kafka.utils.ZkUtils.getAllBrokerEndPointsForChannel(ZkUtils.scala:180)
    at kafka.consumer.ConsumerFetcherManager$LeaderFinderThread.doWork(ConsumerFetcherManager.scala:65)
    at kafka.utils.ShutdownableThread.run(ShutdownableThread.scala:63)

展开
收起
苗子2016 2018-02-24 12:05:36 4869 0
1 条回答
写回答
取消 提交回答
  • 使用的kafka的版本比较旧,建议更换新版本、新API

    2019-07-17 21:59:08
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Java Spring Boot开发实战系列课程【第16讲】:Spring Boot 2.0 实战Apache Kafka百万级高并发消息中间件与原理解析 立即下载
MaxCompute技术公开课第四季 之 如何将Kafka数据同步至MaxCompute 立即下载
消息队列kafka介绍 立即下载