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 | MirrorMaker | Kerberos

Solved Go to solution

Kafka | MirrorMaker | Kerberos

Contributor

Team,

I am receiving following an error while executing kafka mirror-maker command. Kerberos is configured on source and target cluster.

kafka@hdpensrv$ /usr/hdp/current/kafka-broker/bin/kafka-mirror-maker.sh --consumer.config /tmp/sourceClusterConsumer.properties --producer.config /tmp/targetClusterProducer.properties --whitelist="topic_test"

[2018-01-16 06:21:45,493] ERROR Exception when starting mirror maker. (kafka.tools.MirrorMaker$) org.apache.kafka.common.KafkaException: Failed to construct kafka producer at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:335) at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:188) at kafka.tools.MirrorMaker$MirrorMakerProducer.<init>(MirrorMaker.scala:626) at kafka.tools.MirrorMaker$.main(MirrorMaker.scala:213) at kafka.tools.MirrorMaker.main(MirrorMaker.scala) Caused by: org.apache.kafka.common.KafkaException: javax.security.auth.login.LoginException: Could not login: the client is being asked for a password, but the Kafka client code does not currently support obtaining a password from the user. not available to garner authentication information from the user at org.apache.kafka.common.network.SaslChannelBuilder.configure(SaslChannelBuilder.java:86) at org.apache.kafka.common.network.ChannelBuilders.create(ChannelBuilders.java:71) at org.apache.kafka.clients.ClientUtils.createChannelBuilder(ClientUtils.java:83) at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:277) ... 4 more

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Kafka | MirrorMaker | Kerberos

3 REPLIES 3

Re: Kafka | MirrorMaker | Kerberos

Highlighted

Re: Kafka | MirrorMaker | Kerberos

Contributor

@Sandeep Nemuri

I tried this URL. This document is not updated

Re: Kafka | MirrorMaker | Kerberos

export KAFKA_CLIENT_KERBEROS_PARAMS="-Djava.security.auth.login.config=<path to jaas.conf>"

Try exporting the env variable before running the mirror maker.