Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two Hadoop processes (with web UI interface) running on a CentOS 5.3 machine inside a VirtualBox. I cannot access both interfaces from my host machine via port forwarding. Either first or second is not working and I cannot make both of them work concurrently.

Both processes are configured via guest hostname - master. One web UI I can access via master:8088 or guest machine IP - but the second one I can access only via loacalhost:50070

I can make it work by modifying machine's /etc/hosts file:  localhost master

But obviously the second one stops working.

I have several questions:

  1. Is there a way how to make both working?
  2. Is it possible to find a network interface the process is bind to?
  3. What is the relation between hostname and network interface?
  4. Is it automatic that when I access on a guest machine master:8088 it gets translated to To me it seems that I have to have a host entry which maps those two together. Am I right? (I do not consider DHCP).

I tried to use ifconfig & netstat commands but that doesn't answer my questions so it would be great to clarify those.

share|improve this question

What you could do is to create a second network card for your linux machine so you can assign the processes each to a dedicated card. Then set both interfaces to bridged mode in virtualbox and assign them fixed LAN addresses in Linux.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.