You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not able to set KAFKA_OPTS for schema registry container, I am required to use SCHEMA_REGISTRY_KAFKASTORE_SASL_JAAS_CONFIG instead which works but I want to provide a conf file instead.
Error:
schema-registry | [2024-08-09 13:23:31,277] ERROR Error while running kafka-ready. (io.confluent.admin.utils.cli.KafkaReadyCommand)
schema-registry | org.apache.kafka.common.KafkaException: Failed to create new KafkaAdminClient
schema-registry | at org.apache.kafka.clients.admin.KafkaAdminClient.createInternal(KafkaAdminClient.java:541)
schema-registry | at org.apache.kafka.clients.admin.Admin.create(Admin.java:147)
schema-registry | at org.apache.kafka.clients.admin.AdminClient.create(AdminClient.java:49)
schema-registry | at io.confluent.admin.utils.ClusterStatus.isKafkaReady(ClusterStatus.java:136)
schema-registry | at io.confluent.admin.utils.cli.KafkaReadyCommand.main(KafkaReadyCommand.java:149)
schema-registry | Caused by: org.apache.kafka.common.KafkaException: Failed to create new NetworkClient
schema-registry | at org.apache.kafka.clients.ClientUtils.createNetworkClient(ClientUtils.java:252)
schema-registry | at org.apache.kafka.clients.ClientUtils.createNetworkClient(ClientUtils.java:189)
schema-registry | at org.apache.kafka.clients.admin.KafkaAdminClient.createInternal(KafkaAdminClient.java:525)
schema-registry | ... 4 more
schema-registry | Caused by: java.lang.IllegalArgumentException: Could not find a 'KafkaClient' entry in the JAAS configuration. System property 'java.security.auth.login.config' is not set
schema-registry | at org.apache.kafka.common.security.JaasContext.defaultContext(JaasContext.java:150)
schema-registry | at org.apache.kafka.common.security.JaasContext.load(JaasContext.java:103)
schema-registry | at org.apache.kafka.common.security.JaasContext.loadClientContext(JaasContext.java:87)
schema-registry | at org.apache.kafka.common.network.ChannelBuilders.create(ChannelBuilders.java:167)
schema-registry | at org.apache.kafka.common.network.ChannelBuilders.clientChannelBuilder(ChannelBuilders.java:81)
schema-registry | at org.apache.kafka.clients.ClientUtils.createChannelBuilder(ClientUtils.java:119)
schema-registry | at org.apache.kafka.clients.ClientUtils.createNetworkClient(ClientUtils.java:223)
schema-registry | ... 6 more
I found on the confluent documentation that the env variables have to be prefixed with SCHEMA_REGISTRY_ so I have tried with both KAFKA_OPTS and SCHEMA_REGISTRY_KAFKA_OPTS but I keep getting the error.
OS: Ubuntu 24.04
The text was updated successfully, but these errors were encountered:
confluent documentation that the env variables have to be prefixed with SCHEMA_REGISTRY_
While correct for this case, that prefix only modifies the server properties file, not the JVM settings. JAVA_TOOL_OPTIONS should work as well since most JVMs support that
I am using following docker compose file:
I am not able to set
KAFKA_OPTS
for schema registry container, I am required to useSCHEMA_REGISTRY_KAFKASTORE_SASL_JAAS_CONFIG
instead which works but I want to provide a conf file instead.Error:
I found on the confluent documentation that the env variables have to be prefixed with
SCHEMA_REGISTRY_
so I have tried with bothKAFKA_OPTS
andSCHEMA_REGISTRY_KAFKA_OPTS
but I keep getting the error.OS: Ubuntu 24.04
The text was updated successfully, but these errors were encountered: