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 CA164CAED for ; Mon, 9 Sep 2013 11:31:37 +0000 (UTC) Received: (qmail 47088 invoked by uid 500); 9 Sep 2013 11:31:31 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 46710 invoked by uid 500); 9 Sep 2013 11:31:31 -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 46697 invoked by uid 99); 9 Sep 2013 11:31:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Sep 2013 11:31:30 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cipher.chen2012@gmail.com designates 209.85.215.65 as permitted sender) Received: from [209.85.215.65] (HELO mail-la0-f65.google.com) (209.85.215.65) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Sep 2013 11:31:23 +0000 Received: by mail-la0-f65.google.com with SMTP id ep20so938947lab.0 for ; Mon, 09 Sep 2013 04:31:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=AfQiQ3StB46zQ+bqHPbfHg+fIJjk5yaOuNCGk/99GOo=; b=ZfyZ/EL2s4dBLajyuhWJj1DqBrbLe9OsnH/7SqKqGOx//DJGdaz/RW5lXLMG7bGiaI OOAwfi3hArmKMgxnkMTXKXLBq+Q7icweper/BFvNE0LhJzu6YN16P0LGq7UOWoL3WnAu 6MGJ7/zActmhGut94comTZ8jgU8kUekq8UszvSKxx9inFB764oS91UypGhh4WcnB9VJt GuorRTZ40p/UGwJpCeNzdvmgxwrcY4uPpG9NrCoiP1c+sLbW3T4WF+hdOVeVWXhjfhaH mK3+hBt6qYN5p9g9QUdu0CwYiv/k61X8J2+yyktEOBqVoJe/EGulJ6QobKv6mRU56Rp7 TeDQ== MIME-Version: 1.0 X-Received: by 10.152.6.97 with SMTP id z1mr2012006laz.26.1378726263183; Mon, 09 Sep 2013 04:31:03 -0700 (PDT) Received: by 10.112.190.40 with HTTP; Mon, 9 Sep 2013 04:31:03 -0700 (PDT) Date: Mon, 9 Sep 2013 19:31:03 +0800 Message-ID: Subject: hadoop cares about /etc/hosts ? From: Cipher Chen To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=089e0149396428de0e04e5f1b9a9 X-Virus-Checked: Checked by ClamAV on apache.org --089e0149396428de0e04e5f1b9a9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi everyone, I have solved a configuration problem due to myself in hadoop cluster mode. I have configuration as below: fs.default.name hdfs://master:54310 a =E2=80=8Bnd the hosts file:=E2=80=8B /etc/hosts: 127.0.0.1 localhost =E2=80=8B=E2=80=8B =E2=80=8B=E2=80=8B 192.168.6.10 localhost =E2=80=8B###=E2=80=8B 192.168.6.10 tulip master 192.168.6.5 violet slave =E2=80=8Ba =E2=80=8Bnd when i was trying to start-dfs.sh, namenode failed to start.=E2= =80=8B =E2=80=8Bnamenode log hinted that: 13/09/09 17:09:02 INFO namenode.NameNode: Namenode up at: localhost/ 192.168.6.10:54310 ... 13/09/09 17:09:10 INFO ipc.Client: Retrying connect to server: localhost/ 127.0.0.1:54310. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithF> 13/09/09 17:09:11 INFO ipc.Client: Retrying connect to server: localhost/ 127.0.0.1:54310. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithF> 13/09/09 17:09:12 INFO ipc.Client: Retrying connect to server: localhost/ 127.0.0.1:54310. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithF> 13/09/09 17:09:13 INFO ipc.Client: Retrying connect to server: localhost/ 127.0.0.1:54310. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithF> 13/09/09 17:09:14 INFO ipc.Client: Retrying connect to server: localhost/ 127.0.0.1:54310. Already tried 4 time(s); retry policy is RetryUpToMaximumCountWithF> 13/09/09 17:09:15 INFO ipc.Client: Retrying connect to server: localhost/ 127.0.0.1:54310. Already tried 5 time(s); retry policy is RetryUpToMaximumCountWithF> 13/09/09 17:09:16 INFO ipc.Client: Retrying connect to server: localhost/ 127.0.0.1:54310. Already tried 6 time(s); retry policy is RetryUpToMaximumCountWithF> 13/09/09 17:09:17 INFO ipc.Client: Retrying connect to server: localhost/ 127.0.0.1:54310. Already tried 7 time(s); retry policy is RetryUpToMaximumCountWithF> 13/09/09 17:09:18 INFO ipc.Client: Retrying connect to server: localhost/ 127.0.0.1:54310. Already tried 8 time(s); retry policy is RetryUpToMaximumCountWithF> 13/09/09 17:09:19 INFO ipc.Client: Retrying connect to server: localhost/ 127.0.0.1:54310. Already tried 9 time(s); retry policy is RetryUpToMaximumCountWithF> ... Now I know deleting the line "=E2=80=8B192.168.6.10 localhost ### =E2=80=8B =E2=80=8B=E2=80=8B" =E2=80=8B would fix this. But I still don't know=E2=80=8B =E2=80=8Bwhy hadoop would resolve "master" to "localhost/127.0.0.1."=E2=80= =8B =E2=80=8BSeems http://blog.devving.com/why-does-hbase-care-about-etchosts/ = explains this, I'm not quite sure.=E2=80=8B I=E2=80=8Bs there any other=E2=80=8B explanation to this? Thanks.=E2=80=8B --=20 Cipher Chen --089e0149396428de0e04e5f1b9a9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi everyone,
=C2=A0 I have solve= d a configuration problem due to myself in hadoop cluster mode.

I have configuration as below:

=C2=A0 <proper= ty>
=C2=A0=C2=A0=C2=A0 <name>fs.default.name</name>
=C2=A0=C2=A0=C2=A0 <value>hdfs://master:54310</value>
=C2=A0= </property>

a
=E2=80=8Bnd the hosts file:=E2= =80=8B


/etc/hosts:
127.0.0.1=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 localhost
=E2=80=8B=E2=80=8B
=E2=80=8B=E2=80= =8B
192.168.6.10=C2=A0=C2=A0=C2=A0 localhost
=E2=80=8B###=E2=80=8B

192.168.6.10=C2=A0=C2=A0=C2=A0 tulip master<= br>192.168.6.5=C2=A0=C2=A0=C2=A0=C2=A0 violet slave

=E2=80=8Ba
=E2=80=8Bnd when i was trying to start-dfs.sh, namenode failed = to start.=E2=80=8B


=E2=80=8Bnamenode log hinted that:
13/09= /09 17:09:02 INFO namenode.NameNode: Namenode up at: localhost/192.168.6.10:54310
...
13/09/09 17:09:10 INFO ipc.Client: Retrying connect to server: local= host/127.0.0.1:54310. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithF>=
13/09/09 17:09:11 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310
. Alr= eady tried 1 time(s); retry policy is RetryUpToMaximumCountWithF>
13/09/09 17:09:12 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Alr= eady tried 2 time(s); retry policy is RetryUpToMaximumCountWithF>
13/= 09/09 17:09:13 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Alread= y tried 3 time(s); retry policy is RetryUpToMaximumCountWithF>
13/09/09 17:09:14 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Alr= eady tried 4 time(s); retry policy is RetryUpToMaximumCountWithF>
13/= 09/09 17:09:15 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Alread= y tried 5 time(s); retry policy is RetryUpToMaximumCountWithF>
13/09/09 17:09:16 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Alr= eady tried 6 time(s); retry policy is RetryUpToMaximumCountWithF>
13/= 09/09 17:09:17 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Alread= y tried 7 time(s); retry policy is RetryUpToMaximumCountWithF>
13/09/09 17:09:18 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Alr= eady tried 8 time(s); retry policy is RetryUpToMaximumCountWithF>
13/= 09/09 17:09:19 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Alread= y tried 9 time(s); retry policy is RetryUpToMaximumCountWithF>
...

Now I know deleting the line "=E2= =80=8B192.168.6.10=C2=A0=C2=A0=C2=A0 localhost=C2=A0 ###
=E2=80=8B
=E2=80=8B=E2=80=8B"
=E2=80=8B would = fix this.
But I still don't know=E2=80=8B
=C2=A0
=E2=80=8Bwhy hadoop would resolve "master"= ; to "localhost/127.0.0.1."=E2= =80=8B

I'm not quite sure.=E2=80=8B
I=E2=80=8Bs there any
=C2=A0other=E2=80=8B
explanation to this?

Thanks.=E2=80=8B


--
Cipher = Chen
--089e0149396428de0e04e5f1b9a9--