︶ㄣ不见不念

0 声望

这家伙太懒,什么都没留下

个人动态

︶ㄣ不见不念 回复 ︶ㄣ不见不念 kafka实战kerberos(笔记) 中 :
具体的错误信息为: ``` [2018-12-07 14:45:09,983] INFO [ZooKeeperClient] Connected. (kafka.zookeeper.ZooKeeperClient) [2018-12-07 14:45:10,059] INFO [/kafka-acl-changes-event-process-thread]: Starting (kafka.common.ZkNodeChangeNotificationListener$ChangeEventProcessThread) [2018-12-07 14:45:10,127] INFO [/config/changes-event-process-thread]: Starting (kafka.common.ZkNodeChangeNotificationListener$ChangeEventProcessThread) [2018-12-07 14:45:10,175] INFO [SocketServer brokerId=1] Started processors for 1 acceptors (kafka.network.SocketServer) [2018-12-07 14:45:10,192] INFO Kafka version : 1.1.1 (org.apache.kafka.common.utils.AppInfoParser) [2018-12-07 14:45:10,192] INFO Kafka commitId : 8e07427ffb493498 (org.apache.kafka.common.utils.AppInfoParser) [2018-12-07 14:45:10,194] INFO [KafkaServer id=1] started (kafka.server.KafkaServer) [2018-12-07 14:45:10,299] ERROR [Controller id=1, targetBrokerId=1] Connection to node 1 failed authentication due to: Authentication failed due to invalid credentials with SASL mechanism GSSAPI (org.apache.kafka.clients.NetworkClient) zookeeper那边对应的日志为: [2018-12-07 14:45:09,977] INFO Accepted socket connection from /10.201.83.55:48436 (org.apache.zookeeper.server.NIOServerCnxnFactory) [2018-12-07 14:45:09,979] INFO Client attempting to establish new session at /10.201.83.55:48436 (org.apache.zookeeper.server.ZooKeeperServer) [2018-12-07 14:45:09,982] INFO Established session 0x167876410970003 with negotiated timeout 6000 for client /10.201.83.55:48436 (org.apache.zookeeper.server.ZooKeeperServer) [2018-12-07 14:45:09,994] INFO Successfully authenticated client: authenticationID=kafka/weiwei@EXAMPLE.COM; authorizationID=kafka/weiwei@EXAMPLE.COM. (org.apache.zookeeper.server.auth.SaslServerCallbackHandler) [2018-12-07 14:45:09,994] INFO Setting authorizedID: kafka/weiwei@EXAMPLE.COM (org.apache.zookeeper.server.auth.SaslServerCallbackHandler) [2018-12-07 14:45:09,994] INFO adding SASL authorization for authorizationID: kafka/weiwei@EXAMPLE.COM (org.apache.zookeeper.server.ZooKeeperServer) [2018-12-07 14:45:09,995] INFO Got user-level KeeperException when processing sessionid:0x167876410970003 type:create cxid:0x3 zxid:0x94 txntype:-1 reqpath:n/a Error Path:/kafka-acl Error:KeeperErrorCode = NodeExists for /kafka-acl (org.apache.zookeeper.server.PrepRequestProcessor) ```
1年前
︶ㄣ不见不念 kafka实战kerberos(笔记) 发表评论:
安装上面的配置,在centos7上搭建和kerberos,并按照上面的步骤配置kafkakerberos认证。zookeeper启动成功,显示信息为: ``` [2018-12-0714:39:01,096]INFOTGTrefreshsleepinguntil:SatDec0810:02:52CST2018(org.apache.zookeeper.Login) [2018-12-0714:39:01,108]INFObindingtoport0.0.0.0/0.0.0.0:2181(org.apache.zookeeper.server.NIOServerCnxnFactory)。启动kafkabroker时显示INFO[KafkaServerid=1]started(kafka.server.KafkaServer) [2018-12-0714:39:54,052]ERROR[Controllerid=1,targetBrokerId=1]Connectiontonode1failedauthenticationdueto:AuthenticationfailedduetoinvalidcredentialswithSASLmechanismGSSAPI(org.apache.kafka.clients.NetworkClient) ``` 求问这个认证失败是什么原因呀,拜托了,其他的jaas文件和properties文件和您的一样
1年前

(゚∀゚ )
暂时没有任何数据