hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <qwertyman...@gmail.com>
Subject Re: DisallowedDatanodeException
Date Wed, 08 Sep 2010 17:00:58 GMT
Hosts file or the slaves file? A valid datanode must be in the slaves
file. Alternatively you can see if they are 'triggered' to start by
start-dfs.sh or not.

On Wed, Sep 8, 2010 at 10:27 PM, Matt Tanquary <matt.tanquary@gmail.com> wrote:
> The server is included in the hosts file, and I don't have any exclusion file.
>
> Is there a way to have the namenode print out a message if it is
> denying a datanode for any reason?
>
> On Wed, Sep 8, 2010 at 9:48 AM, Harsh J <qwertymaniac@gmail.com> wrote:
>> From what I see in the code:
>> This exception is thrown when a datanode tries to register or communicate
>> with the namenode when it does not appear on the list of included nodes,
>> or has been specifically excluded.
>>
>> So, is it in the slaves list (and not in the dfs's exclude hosts list)?
>>
>> On Wed, Sep 8, 2010 at 8:30 PM, Matt Tanquary <matt.tanquary@gmail.com> wrote:
>>> From 2 nodes, I get the following error when starting the datanodes:
>>>
>>> ERROR org.apache.hadoop.hdfs.server.datanode.DataNode:
>>> org.apache.hadoop.ipc.RemoteException:
>>> org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException:
>>> Datanode denied communication with namenode: dev01:50010
>>>
>>> I have verified that I can communicate with the name node from dev01
>>> on port 50010 by doing: telnet dev05 50010.
>>>
>>> Interesting though, my namenode is not dev01, it's dev05, the datanode is dev01.
>>>
>>> I have the following in the hdfs-site.xml to specify the namenode, and
>>> changing the port does have an effect since that's the port the
>>> namenode is set up with:
>>>
>>> <property>
>>>    <name>fs.default.name</name>
>>>    <value>hdfs://dev05.mynet.corp:54310</value>
>>> </property>
>>>
>>> Thanks,
>>> Matt
>>>
>>
>>
>>
>> --
>> Harsh J
>> www.harshj.com
>>
>
>
>
> --
> Have you thanked a teacher today? ---> http://www.liftateacher.org
>



-- 
Harsh J
www.harshj.com

Mime
View raw message