Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

kafka broker failed to start post kerberos enable

Highlighted

kafka broker failed to start post kerberos enable

Explorer

Team,

I have HDP 2.6 and ambari 2.6.

Have installed kafka before enabling kerberos and post enabling kerberos kafka broker failed to start with below error.

Error:

[2018-02-12 12:42:17,573] INFO starting (kafka.server.KafkaServer) [2018-02-12 12:42:17,584] INFO [ThrottledRequestReaper-Fetch], Starting (kafka.server.ClientQuotaManager$ThrottledRequestReaper) [2018-02-12 12:42:17,590] INFO Connecting to zookeeper on vijayhdp-2.novalocal:2181,vijayhdp-1.novalocal:2181,vijayhdp-3.novalocal:2181 (kafka.server.KafkaServer) [2018-02-12 12:42:17,593] INFO [ThrottledRequestReaper-Produce], Starting (kafka.server.ClientQuotaManager$ThrottledRequestReaper) [2018-02-12 12:43:47,800] FATAL Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer) org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 25000 at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1232) 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:76) at kafka.utils.ZkUtils$.apply(ZkUtils.scala:58) at kafka.server.KafkaServer.initZk(KafkaServer.scala:327) at kafka.server.KafkaServer.startup(KafkaServer.scala:200) at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:39) at kafka.Kafka$.main(Kafka.scala:67) at kafka.Kafka.main(Kafka.scala) [2018-02-12 12:43:47,802] INFO shutting down (kafka.server.KafkaServer) [2018-02-12 12:43:47,806] INFO shut down completed (kafka.server.KafkaServer) [2018-02-12 12:43:47,807] FATAL Fatal error during KafkaServerStartable startup. Prepare to shutdown (kafka.server.KafkaServerStartable) org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 25000 at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1232) 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:76) at kafka.utils.ZkUtils$.apply(ZkUtils.scala:58) at kafka.server.KafkaServer.initZk(KafkaServer.scala:327) at kafka.server.KafkaServer.startup(KafkaServer.scala:200) at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:39) at kafka.Kafka$.main(Kafka.scala:67) at kafka.Kafka.main(Kafka.scala) [2018-02-12 12:43:47,807] INFO shutting down (kafka.server.KafkaServer)

Even i tried to connect to zookeeper from kafka node as root user by initializing kafka principals in it, getting below error.

[root@vijayhdf-1 keytabs]# klist Ticket cache: FILE:/tmp/krb5cc_0 Default principal: kafka/vijayhdf-1.novalocal@NOVALOCAL.COM Valid starting Expires Service principal 02/12/2018 12:56:37 02/13/2018 12:56:36 krbtgt/NOVALOCAL.COM@NOVALOCAL.COM [root@vijayhdf-1 keytabs]# /usr/hdp/current/kafka-broker/bin/zookeeper-shell.sh vijayhdp-1.novalocal:2181,vijayhdp-2.novalocal:2181,vijayhdp-3.novalocal:2181 Connecting to vijayhdp-1.novalocal:2181,vijayhdp-2.novalocal:2181,vijayhdp-3.novalocal:2181 Welcome to ZooKeeper! JLine support is disabled [2018-02-12 12:58:12,155] WARN SASL configuration failed: javax.security.auth.login.LoginException: Receive timed out Will continue connection to Zookeeper server without SASL authentication, if Zookeeper server allows it. (org.apache.zookeeper.ClientCnxn) WATCHER:: WatchedEvent state:AuthFailed type:None path:null WATCHER:: WatchedEvent state:SyncConnected type:None path:null

Kindly help me to fix the issue.

- Vijay Mishra

Don't have an account?
Coming from Hortonworks? Activate your account here