Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Works here but delay a lot, repeating the log "Broker may not be available." #191

Open
lucaslgr opened this issue Jan 11, 2023 · 0 comments

Comments

@lucaslgr
Copy link

PS: I realise that for the same project, the issue below just happens in MAC M1 environments, for Linux doesn't.

I have these settings in my docker-composer:

  kafka:
    image: dougdonohoe/fast-data-dev:latest
    container_name: local_kafka
    ports:
      - '2181:2181'
      - '9092:9092'
      - '8083:8081'
      - '3030:3030'
    environment:
      ADV_HOST: localhost

And when I run the docker compose up and after run a .sh script to create topics as below:

docker-compose -f local/docker-compose.yaml exec kafka kafka-topics --create --if-not-exists --bootstrap-server localhost:9092 --replication-factor 1 --partitions 2 --topic area.product-created

The script repeats almost 40 times the log below until this really can create the topic:

WARN [AdminClient clientId=adminclient-1] Connection to node -1 (localhost/127.0.0.1:9092) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant