amrit kumar amrit kumar - 1 year ago 44
Java Question

Hadoop: getting container launched failed error

I have freshly installed a multinode hadoop cluster with one namenode machine, and two slavenodes. However, when I run a mapreduce task, I keep getting this error:

Container launch failed for container_1453020503065_0030_01_000009 HOME

Here HOME and shubhranshu-OptiPlex-9020 are hostname of slave machines. I have put their IP address and hostname in /etc/hosts file.
My /etc/hosts file look like this: HadoopMaster HadoopSlave1 HadoopSlave2 localhost amrit
# amrit amrit HOME shubhranshu-OptiPlex-9020
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Please tell if I need to add some more things. Thank You!

Answer Source

Modify your /etc/hosts file as follows:       localhost      HadoopMaster amrit      HadoopSlave1      HadoopSlave2

Also modify /etc/hosts of machine as follows:       localhost      HadoopMaster      HadoopSlave1 HOME      HadoopSlave2

and modify /etc/hosts in machine as follows:       localhost      HadoopMaster      HadoopSlave1      HadoopSlave2 shubhranshu-OptiPlex-9020
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download