使用登录上下文“client”进行sasl身份验证失败

kuarbcqp  于 2021-06-07  发布在  Kafka
关注(0)|答案(1)|浏览(465)

我正在用kerberos保护cdh5.5kafka版本中的kafka:启用了2.0.1kerberos,工作正常
当我使用cloudera maneger在kafka中启用sasl时,我得到一个错误:
6月29日下午3:02:42.875 info org.apache.zookeeper.clientcnxn
打开到服务器brahim.localhost/127.0.0.1:2181的套接字连接。将尝试使用登录上下文节“client”进行sasl身份验证
6月29日下午3:02:42.879 info org.apache.zookeeper.clientcnxn
已建立到brahim.localhost/127.0.0.1:2181的套接字连接,正在启动会话
6月29日下午3:02:42.906 info org.apache.zookeeper.clientcnxn
在服务器brahim.localhost/127.0.0.1:2181上完成会话建立,sessionid=0x1559c20b6110007,协商超时=30000
6月29日下午3:02:42.910信息org.i0itec.zkclient.zkclient
zookeeper状态已更改(syncconnected)
6月29日下午3:02:42.942错误org.apache.zookeeper.client.zookeepersaslclient
使用登录上下文“client”进行sasl身份验证失败。
6月29日下午3:02:42.942 info org.i0itec.zkclient.zkclient
zookeeper状态已更改(authfailed)
6月29日下午3:02:48.551 info org.i0itec.zkclient.zkeventthread
终止客户端事件线程。
6月29日下午3:02:48.554Kafka。Kafka$
org.i0itec.zkclient.exception.zktimeoutexception:无法在超时时间内连接到zookeeper服务器:6000,位于org.i0itec.zkclient.zkclient.connect(zkclient)。java:1223)在org.i0itec.zkclient.zkclient。java:155)在org.i0itec.zkclient.zkclient。java:129)在kafka.utils.zkutils$.createzkclientandconnection(zkutils。scala:80)在kafka.utils.zkutils$.apply(zkutils。scala:62)在nl.techop.kafka.dao.zookeeper.kafkazkclient.(kafkazkclient。scala:52)在nl.techop.kafka.kafkahttpmetricsserver.init(kafkahttpmetricsserver。scala:43)在nl.techop.kafka.kafkahttpmetricsserver.(kafkahttpmetricsserver。scala:28)在nl.techop.kafka.kafkahttpmetricsreporter.init(kafkahttpmetricsreporter。scala:41)在kafka.metrics.kafkametricsreporter$$anonfun$startreporters$1.apply(kafkametricsreporter。scala:60)在kafka.metrics.kafkametricsreporter$$anonfun$startreporters$1.apply(kafkametricsreporter。scala:58)在scala.collection.indexedseqoptimized$class.foreach(indexedseqoptimized。scala:33)在scala.collection.mutable.wrappedarray.foreach(wrappedarray。scala:35)在kafka.metrics.kafkametricsreporter$.startreporters(kafkametricsreporter。scala:58)在kafka.server.kafkaserverstartable$.fromprops(kafkaserverstartable。scala:27)在Kafka。Kafka$.main(Kafka。scala:58)在com.cloudera.kafka.wrap.kafka$.main(kafka。scala:76)访问com.cloudera.kafka.wrap.kafka.main(kafka.scala)

sg2wtvxw

sg2wtvxw1#

为zookeeper和kafka重新生成键表解决了我的问题

相关问题