No valid credentials provided (Mechanism level: Server not found in Kerberos database (7)
按照上面的配置,Kafka单机没有问题,启用多台Kafka服务器,broker报错如下:
[2018-05-03 14:52:13,975] ERROR [Controller id=1, targetBrokerId=0] Connection to node 0 failed authentication due to: An error: (java.security.PrivilegedActionException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Server not found in Kerberos database (7) - LOOKING_UP_SERVER)]) occurred when evaluating SASL token received from the Kafka Broker. Kafka Client will go to AUTHENTICATION_FAILED state. (org.apache.kafka.clients.NetworkClient)
谢谢楼主 找到原因了。将zookeeper_jaas.conf中useTicketCache改为flase,就行了。