Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A2B4A11CBD for ; Mon, 4 Aug 2014 18:52:24 +0000 (UTC) Received: (qmail 54226 invoked by uid 500); 4 Aug 2014 18:52:20 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 54119 invoked by uid 500); 4 Aug 2014 18:52:20 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 54101 invoked by uid 99); 4 Aug 2014 18:52:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Aug 2014 18:52:19 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simpleliving016@gmail.com designates 209.85.192.172 as permitted sender) Received: from [209.85.192.172] (HELO mail-pd0-f172.google.com) (209.85.192.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Aug 2014 18:52:18 +0000 Received: by mail-pd0-f172.google.com with SMTP id ft15so10155173pdb.31 for ; Mon, 04 Aug 2014 11:51:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=a6OO3jx3rT99Bnh1ctxWuuyOlz91AUrUnh3BNYynNBA=; b=uGs9KzfP1+a4kzJ4MJCYr2ZsircHVHagJL9h+ulo2YYGVwgqOhR+PIxgUxGxt+28A+ XM3WfuRu3Gi1hFqdLscwTAzzCtp1sg0NjPIOLNbTJu3uzIIlVkcP00oGX3fsfE8OB07U OCx7hT0+611jk33DhFG2MSX/iycsaq2Oe432d1uvUW+o6DOdlWG2bjtKONkuDyAhU/Ur z4yVBmt5APicVr/4j0ZLPpQZCTrRT8C+zyYBWRyUza6mDTK3EPmKTS7xGKzn5stVfWRO 3bSeVk9cwUn65FSTHd3BEOfA0ai2ICTfyxdVXVyDS622eqP90Gkj0eYtSGgclvwh5Dvx UX6A== MIME-Version: 1.0 X-Received: by 10.70.100.34 with SMTP id ev2mr25639189pdb.81.1407178312648; Mon, 04 Aug 2014 11:51:52 -0700 (PDT) Received: by 10.70.119.97 with HTTP; Mon, 4 Aug 2014 11:51:52 -0700 (PDT) In-Reply-To: References: Date: Mon, 4 Aug 2014 14:51:52 -0400 Message-ID: Subject: Re: Datanode not allowed to connect to the Namenode in Hadoop 2.3.0 cluster. From: "S.L" To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a11c31394760d7404ffd23bdb X-Virus-Checked: Checked by ClamAV on apache.org --001a11c31394760d7404ffd23bdb Content-Type: text/plain; charset=UTF-8 The contents are 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 On Sun, Aug 3, 2014 at 11:21 PM, Ritesh Kumar Singh < riteshoneinamillion@gmail.com> wrote: > check the contents of '/etc/hosts' file > > > On Mon, Aug 4, 2014 at 3:27 AM, S.L wrote: > >> Hi All, >> >> I am trying to set up a Apache Hadoop 2.3.0 cluster , I have a master and >> three slave nodes , the slave nodes are listed in the >> $HADOOP_HOME/etc/hadoop/slaves file and I can telnet from the slaves to the >> Master Name node on port 9000, however when I start the datanode on any of >> the slaves I get the following exception . >> >> 2014-08-03 08:04:27,952 FATAL >> org.apache.hadoop.hdfs.server.datanode.DataNode: Initialization failed for >> block pool Block pool BP-1086620743-170.75.152.162-1407064313305 (Datanode >> Uuid null) service to server1.dealyaft.com/170.75.152.162:9000 >> org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException): >> Datanode denied communication with namenode because hostname cannot be >> resolved . >> >> The following are the contents of my core-site.xml. >> >> >> >> fs.default.name >> hdfs://server1.mydomain.com:9000 >> >> >> >> Also in my hdfs-site.xml I am not setting any value for dfs.hosts or >> dfs.hosts.exclude properties. >> >> Thanks. >> > > --001a11c31394760d7404ffd23bdb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

The contents are

127.0.0.1=C2=A0=C2= =A0 localhost localhost.localdomain localhost4 localhost4.localdomain4
:= :1=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 localhost localhost.loca= ldomain localhost6 localhost6.localdomain6



On Sun,= Aug 3, 2014 at 11:21 PM, Ritesh Kumar Singh <riteshoneinamil= lion@gmail.com> wrote:
check the contents of '= /etc/hosts' file


On Mon, Aug 4, 2014 at 3:27 AM, S.L <simpleliving016@gmail.com= > wrote:
Hi All,
<= br>I am trying to set up a Apache Hadoop 2.3.0 cluster , I have a master an= d three slave nodes , the slave nodes are listed in the $HADOOP_HOME/etc/ha= doop/slaves file and I can telnet from the slaves to the Master Name node o= n port 9000, however when I start the datanode on any of the slaves I get t= he following exception .

2014-08-03 08:04:27,952 FATAL org.apache.hadoop.hdfs.server.datanode.Da= taNode: Initialization failed for block pool Block pool BP-1086620743-170.7= 5.152.162-1407064313305 (Datanode Uuid null) service to server1.dealyaft= .com/170.75.152.162:9000
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.server.protoco= l.DisallowedDatanodeException): Datanode denied communication with namenode= because hostname cannot be resolved .

The following are the c= ontents of my core-site.xml.

<configuration>
=C2=A0=C2=A0=C2=A0 <property>
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <name>fs.default.name</name>
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <value>hdfs://server1.mydomain.com:9000</va= lue>
=C2=A0=C2=A0=C2=A0 </property>
</configuration>

Also in my hdfs-site.xml=C2=A0 I am not setting any value for dfs.hosts or= dfs.hosts.exclude properties.

Thanks.


--001a11c31394760d7404ffd23bdb--