Open navinsnn53 opened 5 years ago
@navinsnn53 : Did you find any solution / workaround for this issue ?
I had the same issue and fixed it by:
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL
andSCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS
I used only the PLAINTEXT
Docker/AWS-internal listener(s) (not the public DNS-name); in Docker this is the container_name
.
Hi Guys ,
I am not able to connect schema registry to MSK. I am running Docker in a separate instance and have connections enabled to MSK services.
[main-EventThread] INFO org.apache.zookeeper.ClientCnxn - EventThread shut down for session: 0x30000003c6e0008 [main] ERROR io.confluent.admin.utils.cli.KafkaReadyCommand - Error while running kafka-ready. java.lang.RuntimeException: No endpoints found for security protocol [PLAINTEXT]. Endpoints found in ZK [{REPLICATION=b-1-internal.kafkaclusternew.jbf0pp.c4.kafka.us-west-2.amazonaws.com:9093, CLIENT=b-1.kafkaclusternew.jbf0pp.c4.kafka.us-west-2.amazonaws.com:9092, CLIENT_SECURE=b-1.kafkaclusternew.jbf0pp.c4.kafka.us-west-2.amazonaws.com:9094, REPLICATION_SECURE=b-1-internal.kafkaclusternew.jbf0pp.c4.kafka.us-west-2.amazonaws.com:9095}]
docker run -d \ --net=host \ --name=schema-registry \ -e SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS=PLAINTEXT://b-2.kafkaclusternew.jbf0pp.c4.kafka.us-west-2.amazonaws.com:9092,b-3.kafkaclusternew.jbf0pp.c4.kafka.us-west-2.amazonaws.com:9092,b-1.kafkaclusternew.jbf0pp.c4.kafka.us-west-2.amazonaws.com:9092 \ -e SCHEMA_REGISTRY_HOST_NAME=schema-registry \ -e SCHEMA_REGISTRY_LISTENERS=http://schema-registry:8081 \ -e SCHEMA_REGISTRY_DEBUG=true \ docker.io/confluentinc/cp-schema-registry:latest
ERROR Server died unexpectedly: (io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain) java.net.SocketException: Unresolved address