lensesio / fast-data-dev

Kafka Docker for development. Kafka, Zookeeper, Schema Registry, Kafka-Connect, Landoop Tools, 20+ connectors
https://lenses.io
Apache License 2.0
2.01k stars 330 forks source link

Kafka don't understand text ip mask in ADV_HOST env parametr #183

Open bledkham opened 2 years ago

bledkham commented 2 years ago

I use image: landoop/fast-data-dev:2.2.1 I fix this by inserting default docker-machine ip:

 kafka:
    image: landoop/fast-data-dev:2.2.1
    ports:
      - 9092:9092
      - 2181:2181
      - 3030:3030
    environment:
      CONNECT_PORT: 0
      RUNTESTS: 0
      SAMPLEDATA: 0
      FORWARDLOGS: 0
      ADV_HOST: 192.168.99.106
    volumes:
      - type: volume
        source: kafka
        target: /data
    deploy:
      resources:
        limits:
          cpus: "1"
          memory: 4G

But when I insert my text mask for this IP:

ADV_HOST: local.da.infrastructure

I have this kind of exception in my java program: NetworkClient - [Consumer clientId=consumer-4, groupId=ba3.assembly.join] Error while fetching metadata with correlation id 58 :

OneCricketeer commented 2 years ago

Relevant https://www.confluent.io/blog/kafka-listeners-explained/