Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CDAC811FF5 for ; Mon, 4 Aug 2014 03:22:17 +0000 (UTC) Received: (qmail 85972 invoked by uid 500); 4 Aug 2014 03:22:11 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 85721 invoked by uid 500); 4 Aug 2014 03:22:11 -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 85710 invoked by uid 99); 4 Aug 2014 03:22:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Aug 2014 03:22:10 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of riteshoneinamillion@gmail.com designates 209.85.219.46 as permitted sender) Received: from [209.85.219.46] (HELO mail-oa0-f46.google.com) (209.85.219.46) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Aug 2014 03:22:07 +0000 Received: by mail-oa0-f46.google.com with SMTP id m1so4574684oag.19 for ; Sun, 03 Aug 2014 20:21:46 -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=K32sUqxuApMZ+eZEwKtF5lXX+Nkox/dlkAaTDKECDx8=; b=mTZ4FWhtKWwJShsWYUmG6d0iI5cCEo9aVdjPj2511FGNZBIGBCQWC7SvrK29TfvPTm pA3FAS0L8Ba6mwVjQR9WXdhxkIh0emuynLQXXkf2gIaEHqhYYKbckfTp7hsRUfsc0gJ4 RbcWBWeJf3xAf9g5/yvc1QgRf0aCNVNZ0FkQt9ufprXTrLon+nkfk/SgdVSvV5b+o/D8 knV8iNzpNBMuLFX+Hh4nINV/F7ONOnTg2R5Zy5RGjdqsozezgKr9GNdMjqm/XcQhHuQZ Ed9OEdXt/jGcreFDh22pNJ0/fVRxZz4irMGPzAO4c2Tvz13Vi/u9IAt8OUSRclziTujH c5mA== MIME-Version: 1.0 X-Received: by 10.182.28.66 with SMTP id z2mr28552084obg.19.1407122506520; Sun, 03 Aug 2014 20:21:46 -0700 (PDT) Received: by 10.182.153.103 with HTTP; Sun, 3 Aug 2014 20:21:46 -0700 (PDT) In-Reply-To: References: Date: Mon, 4 Aug 2014 08:51:46 +0530 Message-ID: Subject: Re: Datanode not allowed to connect to the Namenode in Hadoop 2.3.0 cluster. From: Ritesh Kumar Singh To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=089e0158b09e281f5404ffc53d36 X-Virus-Checked: Checked by ClamAV on apache.org --089e0158b09e281f5404ffc53d36 Content-Type: text/plain; charset=UTF-8 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. > --089e0158b09e281f5404ffc53d36 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
check the contents of '/etc/hosts' file


On Mon, Aug 4, 201= 4 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.

--089e0158b09e281f5404ffc53d36--