Virajith Jalaparti 2011-06-21, 14:19
This exception will be thrown when the host name present in the
file which is the value for the property "mapred.hosts.exclude". If you
don't mention any thing for "mapred.hosts" and "mapred.hosts.exclude"
properties or the mentioned files don't contain any hosts, job tracker
allows to connect any task tracker. If you include the host name in
"mapred.hosts" and also in "mapred.hosts.exclude", it will not allow to
connect the task tracker and it throws the below exception.
If you want to allow all the task trackers , don't mention any thing for the
both properties. If you want exclude specific hosts and allow the remaining
hosts to connect then add those host names exclude
file("mapred.hosts.exclude" file) and don't add anything for the include
list. If you want to include specific hosts, the add those host names in
"mapred.hosts" property file and don't add anything for the exclude list.
"mapred.hosts" and "mapred.hosts.exclude" are for hadoop 0.20.x versions.
For the later versions need to update these
From: Virajith Jalaparti [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 21, 2011 7:49 PM
To: [EMAIL PROTECTED]
Subject: Tasktracker denied communication with jobtracker
I am trying to setup a hadoop cluster with 7nodes with the master node also
functioning as a slave node (i.e. runs a datanode and a tasktracker along
with the namenode and jobtracker deamons). I am able to get HDFS working.
However when I try starting the tasktrackers (bin/start-mapred.sh), I get
the errors similar to the following logged in the jobtrackers log:
org.apache.hadoop.mapred.DisallowedTaskTrackerException: Tasktracker denied
communication with jobtracker:
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.security.AccessController.doPrivileged(Native Method)
I am not able to figure out why this happening. I think it is not a network
issue since HDFS is able to run just fine. This website
rException.html says that this is because "tasktracker tries to register or
communicate with the jobtracker when it does not appear on the list of
included nodes, or has been specifically excluded". However, I have included
all the tasktracker nodes in the file which is read using the "mapred.hosts"
parameter. (These are the same nodes as the HDFS nodes and hence shouldn't
be a problem)
Can anyone help me out with this?
Thanks a lot,