conduktor / kafka-stack-docker-compose

docker compose files to create a fully working kafka stack
Apache License 2.0
3.24k stars 1.25k forks source link

Unauthorized Schema Registry #128

Closed BlankWheein closed 5 months ago

BlankWheein commented 1 year ago

with this configuration of the Schema registry i can not connect to it using conduktor

kafka-schema-registry:
    image: confluentinc/cp-schema-registry:7.3.2
    hostname: kafka-schema-registry
    container_name: kafka-schema-registry
    depends_on:
      - zoo1
      - zoo2
      - zoo3
      - kafka1
      - kafka2
      - kafka3
    ports:
      - "8081:8081"
    environment:
      SCHEMA_REGISTRY_HOST_NAME: kafka-schema-registry
      SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: 'PLAINTEXT://kafka1:19092,PLAINTEXT://kafka2:19093,PLAINTEXT://kafka3:19094'
      SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8081

i get the following error image

I used the zk-multiple-kafka-mutltiple-schema-registry.yml file i can connect to the clusters just fine, and it says it can connect to the schema registry just that i dont have the right authentication, any ideas on what i can do?

AurelieMarcuzzo commented 5 months ago

It's probably because you're using localhost, and I assume you're deploying Console and the schema registry in Docker. You should refer the schema registry hostname in this case, so: http://kafka-schema-registry:8081

image