INFO Socket connection established to 10.211.55.5/10.211.55.5:2181, initiating session (org.apache.zookeeper.ClientCnxn)
[2016-07-21 20:43:59,934] INFO Session establishment complete on server 10.211.55.5/10.211.55.5:2181, sessionid = 0x1560d7776850004, negotiated timeout = 6000 (org.apache.zookeeper.ClientCnxn)
[2016-07-21 20:43:59,936] INFO Session: 0x1560d7776850004 closed (org.apache.zookeeper.ZooKeeper)
[2016-07-21 20:43:59,936] INFO EventThread shut down (org.apache.zookeeper.ClientCnxn)
[2016-07-21 20:43:59,937] FATAL Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
org.I0Itec.zkclient.exception.ZkAuthFailedException: Authentication failure
at org.I0Itec.zkclient.ZkClient.waitForKeeperState(ZkClient.java:946)
at org.I0Itec.zkclient.ZkClient.waitUntilConnected(ZkClient.java:923)
at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1230)
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:156)
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:130)
at kafka.utils.ZkUtils$.createZkClientAndConnection(ZkUtils.scala:75)
at kafka.utils.ZkUtils$.apply(ZkUtils.scala:57)
at kafka.server.KafkaServer.initZk(KafkaServer.scala:294)
at kafka.server.KafkaServer.startup(KafkaServer.scala:180)
at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37)
at kafka.Kafka$.main(Kafka.scala:67)
at kafka.Kafka.main(Kafka.scala)
kerberos的日志:
Jul 21 20:49:19 weiwei krb5kdc[15602](info): AS_REQ (6 etypes {18 17 16 23 1 3}) 10.211.55.5: ISSUE: authtime 1469105359, etypes {rep=18 tkt=18 ses=18}, kafka/10.211.55.5@EXAMPLE.COM for krbtgt/EXAMPLE.COM@EXAMPLE.COM
Jul 21 20:49:19 weiwei krb5kdc[15602](info): TGS_REQ (6 etypes {18 17 16 23 1 3}) 10.211.55.5: ISSUE: authtime 1469105359, etypes {rep=18 tkt=18 ses=18}, kafka/10.211.55.5@EXAMPLE.COM for zookeeper/10.211.55.5@EXAMPLE.COM
zookeeper的日志
2016-07-21 20:49:19,342 [myid:] - ERROR [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@981] - cnxn.saslServer is null: cnxn object did not initialize its saslServer properly.
2016-07-21 20:49:19,690 [myid:] - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@357] - caught end of stream exception
EndOfStreamException: Unable to read additional data from client sessionid 0x1560d7776850007, likely client has closed socket
at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:228)
at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208)
at java.lang.Thread.run(Thread.java:745)
2016-07-21 20:49:19,691 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1007] - Closed socket connection for client /10.211.55.5:58085 which had sessionid 0x1560d7776850007
我感觉established to 10.211.55.5/10.211.55.5:2181, initiating session (org.apache.zookeeper.ClientCnxn)
这个很不对劲,但是我又不知道怎么解决。求大神帮助!!!
有相关的人遇到这个问题:http://orchome.com/325