Support Questions
Find answers, ask questions, and share your expertise

Problem when Creating Topics in Kafka with Kerberos HDP 3.0.0 Cluster with AD user?

In Kerberos HDP Cluster, I got problem creating topics in Kafka using the kafka-topics.sh script with AD user. I am using HDP 3.0.0.

login with upglead1 AD user and run the below command to create a topic

[upglead1@devhcdl1 ~]$

[upglead1@devhcdl1 ~]$ /usr/hdp/current/kafka-broker/bin/kafka-topics.sh --create --topic test044 --zookeeper ********:2181 --replication-factor 1 --partitions 1

[2019-03-09 15:05:33,367] WARN Could not login: the Client is being asked for a password, but the ZooKeeper Client code does not currently support obtaining a password from the user. Make sure that the Client is configured to use a ticket cache (using the JAAS configuration setting 'useTicketCache=true)' and restart the Client. If you still get this message after that, the TGT in the ticket cache has expired and must be manually refreshed. To do so, first determine if you are using a password or a keytab. If the former, run kinit in a Unix shell in the environment of the user who is running this Zookeeper Client using the command 'kinit <princ>' (where <princ> is the name of the Client's Kerberos principal). If the latter, do 'kinit -k -t <keytab> <princ>' (where <princ> is the name of the Kerberos principal, and <keytab> is the location of the keytab file). After manually refreshing your cache, restart this Client. If you continue to see this message after manually refreshing your cache, ensure that your KDC host's clock is in sync with this host's clock. (org.apache.zookeeper.SaslClientCallbackHandler)

[2019-03-09 15:05:33,369] WARN SASL configuration failed: javax.security.auth.login.LoginException: No password provided Will continue connection to Zookeeper server without SASL authentication, if Zookeeper server allows it. (org.apache.zookeeper.ClientCnxn)

[2019-03-09 15:05:33,372] ERROR [ZooKeeperClient] Auth failed. (kafka.zookeeper.ZooKeeperClient)

Error while executing topic command : KeeperErrorCode = InvalidACL for /config/topics/test044

[2019-03-09 15:05:33,770] ERROR org.apache.zookeeper.KeeperException$InvalidACLException: KeeperErrorCode = InvalidACL for /config/topics/test044

at org.apache.zookeeper.KeeperException.create(KeeperException.java:121)

at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)

at kafka.zookeeper.AsyncResponse.maybeThrow(ZooKeeperClient.scala:494)

at kafka.zk.KafkaZkClient.createRecursive(KafkaZkClient.scala:1416)

at kafka.zk.KafkaZkClient.createOrSet$1(KafkaZkClient.scala:268)

at kafka.zk.KafkaZkClient.setOrCreateEntityConfigs(KafkaZkClient.scala:278)

at kafka.zk.AdminZkClient.createOrUpdateTopicPartitionAssignmentPathInZK(AdminZkClient.scala:98)

at kafka.zk.AdminZkClient.createTopic(AdminZkClient.scala:56)

at kafka.admin.TopicCommand$.createTopic(TopicCommand.scala:111)

at kafka.admin.TopicCommand$.main(TopicCommand.scala:63)

at kafka.admin.TopicCommand.main(TopicCommand.scala)

(kafka.admin.TopicCommand$)

0 REPLIES 0