Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 CBF901752C for ; Fri, 25 Sep 2015 16:17:21 +0000 (UTC) Received: (qmail 56191 invoked by uid 500); 25 Sep 2015 16:17:17 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 56060 invoked by uid 500); 25 Sep 2015 16:17:17 -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 56050 invoked by uid 99); 25 Sep 2015 16:17:17 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2015 16:17:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C30B8C0E3D for ; Fri, 25 Sep 2015 16:17:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.902 X-Spam-Level: ** X-Spam-Status: No, score=2.902 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, URIBL_BLOCKED=0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id o68VdKxxv9n7 for ; Fri, 25 Sep 2015 16:17:03 +0000 (UTC) Received: from mail-yk0-f181.google.com (mail-yk0-f181.google.com [209.85.160.181]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 8E271202AF for ; Fri, 25 Sep 2015 16:17:02 +0000 (UTC) Received: by ykft14 with SMTP id t14so119763819ykf.0 for ; Fri, 25 Sep 2015 09:16:55 -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=rP1tn9pPTI8uEStgp7hHaPXN5IpV83v/0oFflnV7Hds=; b=O9cr7DnqB/NPme1nqnE9nAqQcf7Ff5xPPUuLJ84eVFdM7EHx+WgLx25OKtIrP+d4gz jsGD2pgLNXb62O35Vq9UpLhRCMu176fxh8OytqfNM+jsC8ms5Qk2OSwUHlYWPwzXFTDq IeB5tLPLa4RLQ6psT4BiwG4zegg0VLhGCMsdeIwFEDVOIvYWvG1gCu6Ojxw8MRpATxRg E+WPVygsoDHxUXwVzD4qQMreQI2hjwQkH0JmhraJ057AAWFH2IwbmY+7PI9cUqMY1U4B AqqqD8aeFYQnZvz3ogae0tCMjv/jTjfZqJQ/Jxd8CNfRnaWPu5e89kZ7tO5u7fdZMKZK 86lw== MIME-Version: 1.0 X-Received: by 10.170.99.4 with SMTP id q4mr5652262yka.92.1443197815565; Fri, 25 Sep 2015 09:16:55 -0700 (PDT) Received: by 10.37.210.195 with HTTP; Fri, 25 Sep 2015 09:16:55 -0700 (PDT) In-Reply-To: <8AD4EE147886274A8B495D6AF407DF698E4837C3@szxeml510-mbx.china.huawei.com> References: <8AD4EE147886274A8B495D6AF407DF698E4837C3@szxeml510-mbx.china.huawei.com> Date: Fri, 25 Sep 2015 11:16:55 -0500 Message-ID: Subject: Re: Problem running example (wrong IP address) From: Daniel Watrous To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a113aa68423336c052094ad1b --001a113aa68423336c052094ad1b Content-Type: text/plain; charset=UTF-8 Brahma, Thanks for the reply. I'll keep this conversation here in the user list. The /etc/hosts file is identical on all three nodes hadoop@hadoop-data1:~$ cat /etc/hosts 127.0.0.1 localhost 192.168.51.4 hadoop-master 192.168.52.4 hadoop-data1 192.168.52.6 hadoop-data2 hadoop@hadoop-data2:~$ cat /etc/hosts 127.0.0.1 localhost 192.168.51.4 hadoop-master 192.168.52.4 hadoop-data1 192.168.52.6 hadoop-data2 hadoop@hadoop-master:~$ cat /etc/hosts 127.0.0.1 localhost 192.168.51.4 hadoop-master 192.168.52.4 hadoop-data1 192.168.52.6 hadoop-data2 Here are the startup logs for all three nodes: https://gist.github.com/dwatrous/7241bb804a9be8f9303f https://gist.github.com/dwatrous/bcd85cda23d6eca3a68b https://gist.github.com/dwatrous/922c4f773aded0137fa3 Thanks for your help. On Fri, Sep 25, 2015 at 10:33 AM, Brahma Reddy Battula < brahmareddy.battula@huawei.com> wrote: > Seems DN started in three machines and failed in > hadoop-data1(192.168.52.4).. > > > 192.168.51.6 : giving IP as 192.168.51.1 ...can > you please check /etc/hosts file of 192.168.51.6 (might be 192.168.51.1 > is configured in /etc/hosts) > > 192.168.52.4 : datanode startup might be failed ( you can check this node > logs) > > 192.168.51.4 : Datanode starup is > success..which is in master node.. > > > > Thanks & Regards > > Brahma Reddy Battula > > > > > ------------------------------ > *From:* Daniel Watrous [dwmaillist@gmail.com] > *Sent:* Friday, September 25, 2015 8:41 PM > *To:* user@hadoop.apache.org > *Subject:* Re: Problem running example (wrong IP address) > > I'm still stuck on this and posted it to stackoverflow: > > http://stackoverflow.com/questions/32785256/hadoop-datanode-binds-wrong-ip-address > > Thanks, > Daniel > > On Fri, Sep 25, 2015 at 8:28 AM, Daniel Watrous > wrote: > >> I could really use some help here. As you can see from the output below, >> the two attached datanodes are identified with a non-existent IP address. >> Can someone tell me how that gets selected or how to explicitly set it. >> Also, why are both datanodes shown under the same name/IP? >> >> hadoop@hadoop-master:~$ hdfs dfsadmin -report >> Configured Capacity: 84482326528 (78.68 GB) >> Present Capacity: 75745546240 (70.54 GB) >> DFS Remaining: 75744862208 (70.54 GB) >> DFS Used: 684032 (668 KB) >> DFS Used%: 0.00% >> Under replicated blocks: 0 >> Blocks with corrupt replicas: 0 >> Missing blocks: 0 >> Missing blocks (with replication factor 1): 0 >> >> ------------------------------------------------- >> Live datanodes (2): >> >> Name: 192.168.51.1:50010 (192.168.51.1) >> Hostname: hadoop-data1 >> Decommission Status : Normal >> Configured Capacity: 42241163264 (39.34 GB) >> DFS Used: 303104 (296 KB) >> Non DFS Used: 4302479360 (4.01 GB) >> DFS Remaining: 37938380800 (35.33 GB) >> DFS Used%: 0.00% >> DFS Remaining%: 89.81% >> Configured Cache Capacity: 0 (0 B) >> Cache Used: 0 (0 B) >> Cache Remaining: 0 (0 B) >> Cache Used%: 100.00% >> Cache Remaining%: 0.00% >> Xceivers: 1 >> Last contact: Fri Sep 25 13:25:37 UTC 2015 >> >> >> Name: 192.168.51.4:50010 (hadoop-master) >> Hostname: hadoop-master >> Decommission Status : Normal >> Configured Capacity: 42241163264 (39.34 GB) >> DFS Used: 380928 (372 KB) >> Non DFS Used: 4434300928 (4.13 GB) >> DFS Remaining: 37806481408 (35.21 GB) >> DFS Used%: 0.00% >> DFS Remaining%: 89.50% >> Configured Cache Capacity: 0 (0 B) >> Cache Used: 0 (0 B) >> Cache Remaining: 0 (0 B) >> Cache Used%: 100.00% >> Cache Remaining%: 0.00% >> Xceivers: 1 >> Last contact: Fri Sep 25 13:25:38 UTC 2015 >> >> >> >> On Thu, Sep 24, 2015 at 5:05 PM, Daniel Watrous >> wrote: >> >>> The IP address is clearly wrong, but I'm not sure how it gets set. Can >>> someone tell me how to configure it to choose a valid IP address? >>> >>> On Thu, Sep 24, 2015 at 3:26 PM, Daniel Watrous >>> wrote: >>> >>>> I just noticed that both datanodes appear to have chosen that IP >>>> address and bound that port for HDFS communication. >>>> >>>> http://screencast.com/t/OQNbrWFF >>>> >>>> Any idea why this would be? Is there some way to specify which >>>> IP/hostname should be used for that? >>>> >>>> On Thu, Sep 24, 2015 at 3:11 PM, Daniel Watrous >>>> wrote: >>>> >>>>> When I try to run a map reduce example, I get the following error: >>>>> >>>>> hadoop@hadoop-master:~$ hadoop jar >>>>> /usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.1.jar >>>>> pi 10 30 >>>>> Number of Maps = 10 >>>>> Samples per Map = 30 >>>>> 15/09/24 20:04:28 INFO hdfs.DFSClient: Exception in >>>>> createBlockOutputStream >>>>> java.io.IOException: Got error, status message , ack with firstBadLink >>>>> as 192.168.51.1:50010 >>>>> at >>>>> org.apache.hadoop.hdfs.protocol.datatransfer.DataTransferProtoUtil.checkBlockOpStatus(DataTransferProtoUtil.java:140) >>>>> at >>>>> org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.createBlockOutputStream(DFSOutputStream.java:1334) >>>>> at >>>>> org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.nextBlockOutputStream(DFSOutputStream.java:1237) >>>>> at >>>>> org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:449) >>>>> 15/09/24 20:04:28 INFO hdfs.DFSClient: Abandoning >>>>> BP-852923283-127.0.1.1-1443119668806:blk_1073741825_1001 >>>>> 15/09/24 20:04:28 INFO hdfs.DFSClient: Excluding datanode >>>>> DatanodeInfoWithStorage[192.168.51.1:50010 >>>>> ,DS-45f6e06d-752e-41e8-ac25-ca88bce80d00,DISK] >>>>> 15/09/24 20:04:28 WARN hdfs.DFSClient: Slow waitForAckedSeqno took >>>>> 65357ms (threshold=30000ms) >>>>> Wrote input for Map #0 >>>>> >>>>> I'm not sure why it's trying to access 192.168.51.1:50010, which >>>>> isn't even a valid IP address in my setup. >>>>> >>>>> Daniel >>>>> >>>> >>>> >>> >> > --001a113aa68423336c052094ad1b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Brahma,

Thanks for the reply. I'll = keep this conversation here in the user list. The /etc/hosts file is identi= cal on all three nodes

hadoop@hadoop-data1:~$= cat /etc/hosts
127.0.0.1 localhost
192.168.51.4 hadoop= -master
192.168.52.4 hadoop-data1
192.168.52.6 hado= op-data2

hadoop@hadoop-data2:~$ cat /etc/hosts
127.0.0.1 localhost
192.168.51.4 hadoop-master
192.168.52.4 hadoop-data1
192.168.52.6 hadoop-data2

hadoop@hadoop-master:~$ cat /etc/hosts
= 127.0.0.1 localhost
192.168.51.4 hadoop-master
192.= 168.52.4 hadoop-data1
192.168.52.6 hadoop-data2
<= br>
Here are the startup logs for all three nodes:

Thanks for your help.


On Fri, Sep 25, 2015 at 10:33 AM, Brahma Reddy Battula <brahmareddy.battula@huawei.com> wrote:
Seems DN started in three machines and failed in hadoop-data1(192.168.52.4)= ..


192.168.51.6 : giving IP as 192.168.51.1...can you please check /etc/hosts file of 192.168= .51.6 (might be 192= .168.51.1 is configured in /etc/hosts)

192.168.52.4 : datanode startup might be failed ( you can check this node l= ogs)

192.168.51.4 :=C2= =A0 Datanode starup is success..which is in master node..



Thanks & Regards

=C2=A0Brahma Reddy Battul= a

=C2=A0



From: Daniel Watrous [dwmaillist@gmail.com]
Sent: Friday, September 25, 2015 8:41 PM
To: user= @hadoop.apache.org
Subject: Re: Problem running example (wrong IP address)

I'm still stuck on this and posted it to stackoverflow= :

Thanks,
Daniel

On Fri, Sep 25, 2015 at 8:28 AM, Daniel Watrous = <dwmaillist@gm= ail.com> wrote:
I could really use some help here. As you can see from the= output below, the two attached datanodes are identified with a non-existen= t IP address. Can someone tell me how that gets selected or how to explicit= ly set it. Also, why are both datanodes shown under the same name/IP?

hadoop@hadoop-master:~$ hdfs dfsadmin -report
Configured Capacity: 84482326528 (78.68 GB)
Present Capacity: 75745546240 (70.54 GB)
DFS Remaining: 75744862208 (70.54 GB)
DFS Used: 684032 (668 KB)
DFS Used%: 0.00%
Under replicated blocks: 0
Blocks with corrupt replicas: 0
Missing blocks: 0
Missing blocks (with replication factor 1): 0

-------------------------------------------------
Live datanodes (2):

Name: 192.168.= 51.1:50010 (192.168.51.1)
Hostname: hadoop-data1
Decommission Status : Normal
Configured Capacity: 42241163264 (39.34 GB)
DFS Used: 303104 (296 KB)
Non DFS Used: 4302479360 (4.01 GB)
DFS Remaining: 37938380800 (35.33 GB)
DFS Used%: 0.00%
DFS Remaining%: 89.81%
Configured Cache Capacity: 0 (0 B)
Cache Used: 0 (0 B)
Cache Remaining: 0 (0 B)
Cache Used%: 100.00%
Cache Remaining%: 0.00%
Xceivers: 1
Last contact: Fri Sep 25 13:25:37 UTC 2015


Name: 192.168.= 51.4:50010 (hadoop-master)
Hostname: hadoop-master
Decommission Status : Normal
Configured Capacity: 42241163264 (39.34 GB)
DFS Used: 380928 (372 KB)
Non DFS Used: 4434300928 (4.13 GB)
DFS Remaining: 37806481408 (35.21 GB)
DFS Used%: 0.00%
DFS Remaining%: 89.50%
Configured Cache Capacity: 0 (0 B)
Cache Used: 0 (0 B)
Cache Remaining: 0 (0 B)
Cache Used%: 100.00%
Cache Remaining%: 0.00%
Xceivers: 1
Last contact: Fri Sep 25 13:25:38 UTC 2015



On Thu, Sep 24, 2015 at 5:05 PM, Daniel Watrous = <dwmaillist@gm= ail.com> wrote:
The IP address is clearly wrong, but I'm not sure how = it gets set. Can someone tell me how to configure it to choose a valid IP a= ddress?

On Thu, Sep 24, 2015 at 3:26 PM, Daniel Watrous = <dwmaillist@gm= ail.com> wrote:
I just noticed that both datanodes appear to have chosen t= hat IP address and bound that port for HDFS communication.


Any idea why this would be? Is there some way to specify which IP/host= name should be used for that?

On Thu, Sep 24, 2015 at 3:11 PM, Daniel Watrous = <dwmaillist@gm= ail.com> wrote:
When I try to run a map reduce example, I get the following error:

hadoop@hadoop-master:~$ hadoop jar /usr/local/hadoop/share/hadoop/mapr= educe/hadoop-mapreduce-examples-2.7.1.jar pi 10 30
Number of Maps =C2=A0=3D 10
Samples per Map =3D 30
15/09/24 20:04:28 INFO hdfs.DFSClient: Exception in createBlockOutputS= tream
java.io.IOException: Got error, status message , ack with firstBadLink= as 192.168.51.1:50010
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.hadoop.hdfs.protocol.datatra= nsfer.DataTransferProtoUtil.checkBlockOpStatus(DataTransferProtoUtil.java:1= 40)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.hadoop.hdfs.DFSOutputStream$= DataStreamer.createBlockOutputStream(DFSOutputStream.java:1334)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.hadoop.hdfs.DFSOutputStream$= DataStreamer.nextBlockOutputStream(DFSOutputStream.java:1237)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.hadoop.hdfs.DFSOutputStream$= DataStreamer.run(DFSOutputStream.java:449)
15/09/24 20:04:28 INFO hdfs.DFSClient: Abandoning BP-852923283-127.0.1= .1-1443119668806:blk_1073741825_1001
15/09/24 20:04:28 INFO hdfs.DFSClient: Excluding datanode DatanodeInfo= WithStorage[192.168= .51.1:50010,DS-45f6e06d-752e-41e8-ac25-ca88bce80d00,DISK]
15/09/24 20:04:28 WARN hdfs.DFSClient: Slow waitForAckedSeqno took 653= 57ms (threshold=3D30000ms)
Wrote input for Map #0

I'm not sure why it's trying to access 192.168.51.1:50010, which isn't even a valid IP address in my setup= .

Daniel





--001a113aa68423336c052094ad1b--