使用登录上下文“客户端”

时间:2016-06-29 13:26:14

标签: apache-kafka sasl

我正在使用CDH 5.5中的Kerberos保护Kafka 卡夫卡版:2.0.1 Kerberos已启用且工作正常

当我使用cloudera maneger在kafka中启用sasl时,我收到错误:

Jun 29,3:02:42.875 PM INFO org.apache.zookeeper.ClientCnxn

打开与服务器brahim.localhost / 127.0.0.1的套接字连接:2181。将尝试使用“登录上下文”部分“客户端”

进行SASL身份验证

Jun 29,3:02:42.879 PM INFO org.apache.zookeeper.ClientCnxn

建立到brahim.localhost / 127.0.0.1:2181的套接字连接,启动会话

Jun 29,3:02:42.906 PM INFO org.apache.zookeeper.ClientCnxn

在服务器brahim.localhost / 127.0.0.1上完成会话建立:2181,sessionid = 0x1559c20b6110007,协商超时= 30000

Jun 29,3:02:42.910 PM INFO org.I0Itec.zkclient.ZkClient

zookeeper状态已更改(SyncConnected)

Jun 29,3:02:42.942 PM ERROR org.apache.zookeeper.client.ZooKeeperSaslClient

使用登录上下文“客户端”时,SASL身份验证失败。

Jun 29,3:02:42.942 PM INFO org.I0Itec.zkclient.ZkClient

zookeeper状态已更改(AuthFailed)

Jun 29,3:02:48.551 PM INFO org.I0Itec.zkclient.ZkEventThread

终止ZkClient事件线程。

Jun 29,3:02:48.554 PM FATAL kafka.Kafka $

org.I0Itec.zkclient.exception.ZkTimeoutException:无法在超时内连接到zookeeper服务器:6000     在org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1223)     在org.I0Itec.zkclient.ZkClient。(ZkClient.java:155)     在org.I0Itec.zkclient.ZkClient。(ZkClient.java:129)     at kafka.utils.ZkUtils $ .createZkClientAndConnection(ZkUtils.scala:80)     at 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)     at kafka.metrics.KafkaMetricsReporter $ .startReporters(KafkaMetricsReporter.scala:58)     at 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)

1 个答案:

答案 0 :(得分:0)

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