usc-isi-i2 / dig-etl-engine

Download DIG to run on your laptop or server.
http://usc-isi-i2.github.io/dig/
MIT License
101 stars 39 forks source link

on a clean install, docker-compose up returns error for kafka container #188

Closed cslovell closed 6 years ago

cslovell commented 6 years ago

Creating dig_elasticsearch_1 ... Creating dig_zookeeper_1 ... Creating dig_dig_etl_engine_1 ... done Creating dig_kibana_1 ... done Creating dig_digui_1 ... done Creating dig_sandpaper_1 ... done Creating dig_kafka_1 ... error Creating dig_mydig_ws_1 ... done Creating dig_kibana_1 ... Creating dig_nginx_1 ... done

ERROR: for dig_kafka_1 user specified IP address is supported only when connecting to networks with user configured subnets Creating dig_mydig_ws_1 ... Creating dig_nginx_1 ...

ERROR: for kafka user specified IP address is supported only when connecting to networks with user configured subnets ERROR: Encountered errors while bringing up the project.

GreatYYX commented 6 years ago

Could you please paste the result of docker network ls here? There should be a docker network named dig_dig_net.

For Kafka, because it specified a static ip, if this ip conflicts with your host or other docker network, please change it by modifying docker-compose.yml file:

...

  kafka:
    image: wurstmeister/kafka
...
    networks:
      dig_net:
        ipv4_address: 172.19.0.200

...
networks:
  dig_net:
    driver: bridge
    ipam:
      driver: default
      config:
        - subnet: 172.19.0.0/16

...

Replace 172.19.0.200 to 172.30.0.200, 172.19.0.0/16 to 172.30.0.0/16 (30 can be any integer between 0 to 255).

GreatYYX commented 6 years ago

Hi, we upgraded myDIG which based on ELK 5.6 and we also imported some new features. The Kafka IP is now configurable though .env file (doc is here ). Closing this issue, if you still encounter this problem, please reopen it or create a new issue. Thanks.