Why is Dockerized Hadoop datanode registering with the wrong IP address?

前端 未结 1 1211
北恋
北恋 2021-02-04 17:32

I have separate Docker (1.9.1) images for Hadoop (2.7.1) namenodes and datanodes. I can create containers from these and have them communicating over a user-defined Docker netwo

相关标签:
1条回答
  • 2021-02-04 17:50

    This is caused by a known docker issue (I also raised - and closed - this duplicate which describes the steps as set out in the question).

    There is a merged pull request which should fix the problem and is scheduled for inclusion in Docker 1.10.0. But in the meantime, the following workaround can be used:

    1. Remove all user-created networks with sudo docker network rm
    2. Stop the docker daemon with sudo service docker stop
    3. Cleanup the iptables with sudo iptables -F && sudo iptables -F -t nat
    4. Restart the docker daemon with sudo service docker start
    5. Recreate the user-defined network
    6. Run the containers
    0 讨论(0)
提交回复
热议问题