I have an application that uses Kafka-Streams-API. There is no problem while I working at the local. I want to get connected to the remote Kafka broker for the stage test. And the remote Kafka broker is set to work with the GSSAPI sasl mechanism and used Kerberos. I got an error when I run my Streams Application which wrote with java. After I looked for the error message I found an answer but still has a problem.
Error message; Error while fetching metadata with correlation id 3 : {[APPID]-KTABLE-AGGREGATE-STATE-STORE-0000000008-repartition=UNKNOWN_TOPIC_OR_PARTITION
The answer I found said;
When using an Authorizer and a user doesn't have Describe authorization on a topic, the broker will no longer return TOPIC_AUTHORIZATION_FAILED errors to requests since this leaks topic names. Instead, the UNKNOWN_TOPIC_OR_PARTITION error code will be returned. This may cause unexpected timeouts or delays when using the producer and consumer since Kafka clients will typically retry automatically on unknown topic errors. You should consult the client logs if you suspect this could be happening.
So my actual question is how to Authorize the Remote Topic which using to GSAPI sasl mechanism?