Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-120

Make tutorial friendly for Docker for Mac/Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 0.3.2
    • 0.3.1
    • website
    • None

      The tutorial mentions 192.168.99.100 and docker-machine.

      This approach has been deprecated by Docker Inc:
      https://docs.docker.com/docker-for-windows/
      https://docs.docker.com/docker-for-mac/

      In particular, they do some funky stuff so that the 192.168.99.100 approach is no longer necessary and one can use 127.0.0.1 to access the docker images.

      So I felt a bit anxious in a few areas of the tutorial and totally tripped when it was time to

      curl -i -X POST -H "Accept:application/json" -H "Content-Type:application/json" 192.168.99.100:8083/connectors/ -d '{ "name": "inventory-connector", "config": { "connector.class": "io.debezium.connector.mysql.MySqlConnector", "tasks.max": "1", "database.hostname": "192.168.99.100", "database.port": "3306", "database.user": "debezium", "database.password": "dbz", "database.server.id": "184054", "database.server.name": "dbserver1", "database.whitelist": "inventory", "database.history.kafka.bootstrap.servers": "kafka:9092", "database.history.kafka.topic": "dbhistory.inventory" } }'
      

      I did replace 192.168.99.100 by 127.0.0.1 but that was the wrong move. I think the right move would have been to use the public IP of the host. It led to exceptions in the Kafka connection terminal. I tried to stop and restart the kafka connector container but it looks like it was recovering and tried (and failed) to load my incorrectly configured connector. (I supposed from Zookeeper or the Kafka container).
      I was left in total despair and had to restart everything from scratch.

      So what should be done

      • make the tutorial friendly to people using the new Docker for Windows and Mac.
      • And explain what to do in case things to totally wrong with IP mangling.

            rhauch Randall Hauch (Inactive)
            rhn-engineering-ebernard Emmanuel Bernard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: