You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Jagat Singh <ja...@gmail.com> on 2016/10/21 00:37:59 UTC

Error Failed to update metadata after 60000 ms: Kafka 0.10 + Kerberos + HDP 2.5

We are trying to run a simple Kafka code with new api to test Kerberos
integration.

The code is present at https://pastebin.ubuntu.com/23356675/

We are using ticket based mechanism to test first and then we will use
Keytabs

java -Djava.security.krb5.conf=/etc/krb5.conf
-Djava.security.auth.login.config=/tmp/commandline/kafka_client_jaas.conf
-Dsun.security.krb5.debug=true -classpath
/tmp/code-assembly-1.0.1-SNAPSHOT.jar com.FirstProducer factoryTestTopic

The content of jaas file is

KafkaClient {
    com.sun.security.auth.module.Krb5LoginModule required
    useTicketCache=true
    serviceName="kafka";
};

The exception we get is

java.util.concurrent.ExecutionException:
org.apache.kafka.common.errors.TimeoutException: Failed to update metadata
after 60000 ms.