Git Product home page Git Product logo

Comments (5)

kiwenlau avatar kiwenlau commented on June 17, 2024

My project is designed for single node, but it can be changed to multiple hosts:

  1. Run Hadoop Container with "--net=host", so that containers will share the IP address with the host node
  2. Use IP address for Hadoop communication.

from hadoop-cluster-docker.

kartikjoshi07 avatar kartikjoshi07 commented on June 17, 2024

Thanks Kai.
But the problem with this is, i cant ssh from hduser of a container in host1 to hduser of a container in host2, where hduser is a user created inside a container and the containers are set as --net=host.
As container and host are sharing the IP, it cannot differentiate whether the user we are trying to ssh belongs to host or a container.

from hadoop-cluster-docker.

kartikjoshi07 avatar kartikjoshi07 commented on June 17, 2024

Even we can't ssh from one container to another, as the host and the container are sharing the ip.

from hadoop-cluster-docker.

kiwenlau avatar kiwenlau commented on June 17, 2024

Sorry, I didn't expect this problem.

This problem from stackoverflow maybe helpful for you:

SSH into a docker container from another container on a different host

from hadoop-cluster-docker.

nicornk avatar nicornk commented on June 17, 2024

You could use the new swarm features build into docker 1.12-rc1
"Multi-host networking: You can specify an overlay network for your services. The swarm manager automatically assigns addresses to the containers on the overlay network when it initializes or updates the application."
https://docs.docker.com/engine/swarm/
Or you could use docker swarm which also allows you to create a software defined network.

from hadoop-cluster-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.