Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Oracle Java vs IBM Java, Kafka acvo producer with schema registry

100 views
Skip to first unread message

Oliver Lopes

unread,
Mar 28, 2021, 3:53:53 PM3/28/21
to Confluent Platform
Hi,
I have kafka avro producer with schema registry

Brokers authentication is SASL_SSL using keytab Kerb5LoginModule.
Schema registry is having basic authentication(HTTPS://server:8081)

I am able to connect both brokers and schema registry using Oracle Java and produce messages,
 But when i try with IBM Java(8 version) , getting 401 un authorized error(to schema registry)

any idea or solution?

java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.InvalidConfigurationException: Unauthorized; error code: 401
at org.apache.kafka.clients.producer.KafkaProducer$FutureFailure.<init>(KafkaProducer.java:1317)
at org.apache.kafka.clients.producer.KafkaProducer.doSend(KafkaProducer.java:986)
at org.apache.kafka.clients.producer.KafkaProducer.send(KafkaProducer.java:886)
at org.apache.kafka.clients.producer.KafkaProducer.send(KafkaProducer.java:774)
at com.cdw.stage.kafka.producer.AvroProducerSASL_SSL.main(AvroProducerSASL_SSL.java:51)
Caused by: org.apache.kafka.common.errors.InvalidConfigurationException: Unauthorized; error code: 401
Reply all
Reply to author
Forward
0 new messages