Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 am new to linux and hadoop and I am having the same issue as in this question. I think I understand what is causing it but I don't know how to solve it (Don't know what they mean by "Edit the Hadoop server's configuration file so that it includes its NIC's address."). The other post that they link says that the configuration files should refer to the machine's externally accessible host name. I think I got this right as every hadoop configuration file refers to "master" and the etc/hosts file lists the master by its private IP address. How can I solve this?

Edit: I have 5 nodes: master, slavec, slaved, slavee and slavef all running debian. This is the hosts file in master:       master      slavec      slaved      slavee      slavef

this is the hosts file in slavec (it looks similar in the other slaves):      master       slavec      slaved      slavee      slavef

the masters file in master:


the slaves file in master:


the masters and slaves file in slavex has only one line: slavex

share|improve this question
Are you able to describe your cluster setup (nodes, network config etc) in more detail? Possibly post your masters and slaves files? – Chris White Oct 2 '12 at 2:07
Have you already seen this answer ? – Alexander Janssen Oct 2 '12 at 6:41
@Alex Yes, I have. That's what I meant by "The other post that they link ..." but I am not sure I got it right. – miguel Oct 2 '12 at 10:37

First, this is a great tutorial to start on Hadoop:

Second, analyzing your environment, seems that /etc/hosts, "master" and "slave" files are misconfigured. You could setup one "hosts" file and share to all nodes. From your scenario, it should be like this:      localhost      master      slavec      slaved      slavee      slavef

Third, "master" and "slaves" files should be configured only on the "master" node. The first file has only the server that will run JobTracker and NameNode, the second file has all servers that will run TaskTracker and DataNode.

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.