From user-return-1362-apmail-hadoop-user-archive=hadoop.apache.org@hadoop.apache.org Tue Sep 11 16:45:15 2012 Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-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 E4C5FD814 for ; Tue, 11 Sep 2012 16:45:14 +0000 (UTC) Received: (qmail 5248 invoked by uid 500); 11 Sep 2012 16:45:09 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 5153 invoked by uid 500); 11 Sep 2012 16:45:09 -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 5144 invoked by uid 99); 11 Sep 2012 16:45:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2012 16:45:09 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.160.48] (HELO mail-pb0-f48.google.com) (209.85.160.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2012 16:45:04 +0000 Received: by pbbrq13 with SMTP id rq13so1317338pbb.35 for ; Tue, 11 Sep 2012 09:44:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to:x-mailer:x-gm-message-state; bh=Rti8XdTCmJKB4s33owr3Ao30ZiXhcCd+OX8Pi89f524=; b=pChuB+Dyzh+jbsDGCXmuyDN2MpWTuBw3FhCCXVOCTloYcdSahRvZgYirmDFjfn+WwX BucUlgh8aJznGW3XsK1SJqyF3/YEUQr7D7oXbou9o3gifvQP8VhOr0TXaZFb2Oo10BoD /RWjxFQP3ONxbLBwf8s5bh2VsIIaNDdjyerIiSlXNWwyQuJQCN48lLXRr7RkVkJjuKo5 dapn2LcmFMBG7fK8xKB2Eaupx0mBpz+Tt+JqhcKfMIOQ5AaYFziK8/VwHazabogMTMz1 EFyDd4nkUBHxwPKbPSet84kOc8Wake+8Xzrh9FI6od9vX4CDWgbz5sdAmM7KNzR40ok2 tpQg== Received: by 10.66.76.165 with SMTP id l5mr27208663paw.79.1347381884435; Tue, 11 Sep 2012 09:44:44 -0700 (PDT) Received: from [10.10.11.237] (host1.hortonworks.com. [70.35.59.2]) by mx.google.com with ESMTPS id sr3sm10001768pbc.44.2012.09.11.09.44.42 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Sep 2012 09:44:43 -0700 (PDT) From: Arpit Gupta Content-Type: multipart/alternative; boundary="Apple-Mail=_C6280DD2-6263-4DE9-B389-35028A1AF184" Message-Id: <3A7C1712-0746-4CCE-9B79-C72156BDC05F@hortonworks.com> Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) Subject: Re: Error in : hadoop fsck / Date: Tue, 11 Sep 2012 09:44:43 -0700 References: , To: user@hadoop.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1486) X-Gm-Message-State: ALoCoQmeRsv0CEbNTsPS8IsWX4a82V2LavUcjayYcFIX6LceX1o4MOQLMDGeyzc3LhHqP6nzU97y X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_C6280DD2-6263-4DE9-B389-35028A1AF184 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Yogesh try this hadoop fsck -Ddfs.http.address=3Dlocalhost:50070 / 50070 is the default http port that the namenode runs on. The property = dfs.http.address should be set in your hdfs-site.xml -- Arpit Gupta Hortonworks Inc. http://hortonworks.com/ On Sep 11, 2012, at 9:03 AM, yogesh dhari wrote: > Hi Hemant, >=20 > Its the content of core-site.xml >=20 > > > fs.default.name > hdfs://localhost:9000 > > > hadoop.tmp.dir > /opt/hadoop-0.20.2/hadoop_temporary_dirr > A base for other temporary directories. > >=20 > >=20 > Regards > Yogesh Kumar >=20 > Date: Tue, 11 Sep 2012 21:29:36 +0530 > Subject: Re: Error in : hadoop fsck / > From: yhemanth@thoughtworks.com > To: user@hadoop.apache.org >=20 > Could you please review your configuration to see if you are pointing = to the right namenode address ? (This will be in core-site.xml) > Please paste it here so we can look for clues. >=20 > Thanks > hemanth >=20 > On Tue, Sep 11, 2012 at 9:25 PM, yogesh dhari = wrote: > Hi all, >=20 > I am running hadoop-0.20.2 on single node cluster, >=20 > I run the command=20 >=20 > hadoop fsck / >=20 > it shows error: >=20 > Exception in thread "main" java.net.UnknownHostException: http > at = java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)= > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391) > at java.net.Socket.connect(Socket.java:579) > at java.net.Socket.connect(Socket.java:528) > at sun.net.NetworkClient.doConnect(NetworkClient.java:180) > at sun.net.www.http.HttpClient.openServer(HttpClient.java:378) > at sun.net.www.http.HttpClient.openServer(HttpClient.java:473) > at sun.net.www.http.HttpClient.(HttpClient.java:203) > at sun.net.www.http.HttpClient.New(HttpClient.java:290) > at sun.net.www.http.HttpClient.New(HttpClient.java:306) > at = sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnec= tion.java:995) > at = sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection= .java:931) > at = sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java= :849) > at = sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnecti= on.java:1299) > at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:123) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79) > at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:159) >=20 >=20 >=20 >=20 > Please suggest why it so.. it should show the health status: >=20 >=20 --Apple-Mail=_C6280DD2-6263-4DE9-B389-35028A1AF184 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 Yogesh

try = this

hadoop fsck = -Ddfs.http.address=3Dlocalhost:50070 /

50070 is the default http port = that the namenode runs on. The property dfs.http.address should be set = in your hdfs-site.xml
http://hortonworks.com/
<= /span>

On Sep 11, 2012, at 9:03 AM, yogesh dhari <yogeshdhari@live.com> = wrote:

Hi Hemant,

Its the content of = core-site.xml

<configuration>
<property>
 &n= bsp;       = <name>fs.default.name</name>
     =     <value>hdfs://localhost:9000</val= ue>
     </property>
   = <property>
    = <name>hadoop.tmp.dir</name>
    = <value>/opt/hadoop-0.20.2/hadoop_temporary_dirr</value>
&nb= sp;   <description>A base for other temporary = directories.</description>
</property>

</configur= ation>

Regards
Yogesh Kumar


Date: Tue, 11 = Sep 2012 21:29:36 +0530
Subject: Re: Error in : hadoop fsck = /
From: yhemanth@thoughtworks.comTo: user@hadoop.apache.org

C= ould you please review your configuration to see if you are pointing to = the right namenode address ? (This will be in core-site.xml)
Please = paste it here so we can look for = clues.

Thanks
hemanth

On Tue, Sep 11, 2012 at 9:25 PM, yogesh = dhari <yogeshdhari@live.com> wrote:
Hi all,

I am running = hadoop-0.20.2 on single node cluster,

I run the command 

hadoop fsck = /

it shows error:

Exception in thread "main" = java.net.UnknownHostException: http
    at = java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)=
    at = java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
  =   at java.net.Socket.connect(Socket.java:579)
    = at java.net.Socket.connect(Socket.java:528)
    at = sun.net.NetworkClient.doConnect(NetworkClient.java:180)
  &nb= sp; at = sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
  = ;  at = sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
  = ;  at = sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
 &nb= sp;  at = sun.net.www.http.HttpClient.New(HttpClient.java:290)
   = at = sun.net.www.http.HttpClient.New(HttpClient.java:306)
   = at = sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnec= tion.java:995)
    at = sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection= .java:931)
    at = sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java= :849)
    at = sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnecti= on.java:1299)
    at = org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:123)
  &nbs= p; at = org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
  &= nbsp; at = org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
  &= nbsp; at = org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:159)



Please suggest why it so..  it should show the health = status:



= --Apple-Mail=_C6280DD2-6263-4DE9-B389-35028A1AF184--