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 85F5E10CB3 for ; Tue, 3 Sep 2013 11:24:22 +0000 (UTC) Received: (qmail 70936 invoked by uid 500); 3 Sep 2013 11:24:16 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 70640 invoked by uid 500); 3 Sep 2013 11:24:16 -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 70620 invoked by uid 99); 3 Sep 2013 11:24:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Sep 2013 11:24:14 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of visioner.sadak@gmail.com designates 209.85.212.46 as permitted sender) Received: from [209.85.212.46] (HELO mail-vb0-f46.google.com) (209.85.212.46) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Sep 2013 11:24:10 +0000 Received: by mail-vb0-f46.google.com with SMTP id p13so3713605vbe.5 for ; Tue, 03 Sep 2013 04:23:50 -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=WNHufWLDvuCx0KwHRtJwz+K/b1dISMkdYDX9kv7DkFY=; b=dFspupCaS5j8xAwK8Ps/i9VLd3FqgdU10EJLFhV+CEWNT4DfeZoj0yUKCyResOWHWd MrwmxRf4uQ5dED81pWQR6CpJx0xLBV66uNZ3O6Nu8YdlDhNJSU5j4QXjn4wx07wCSvNN 4h2F+d2630wHcmdTu1BaTSocbU+wK76UMtODzaUcR+HtWtWYmQkuW54p/gQHHITLqA/E 9QnXJ2dHD4bu/wvtFjXAzCDK3sneLLDttL5QmMwWcJJpd9VFWVa+RRLtaxQFluYOqOd3 RCwLzrIFJCE2TBsdR4tHYRVM1ExLo65c8hv5FuXIgP2nPMo+1WM+bSEOaleGj5AlOViw Tfew== MIME-Version: 1.0 X-Received: by 10.220.43.19 with SMTP id u19mr27907795vce.3.1378207429958; Tue, 03 Sep 2013 04:23:49 -0700 (PDT) Received: by 10.52.164.138 with HTTP; Tue, 3 Sep 2013 04:23:49 -0700 (PDT) In-Reply-To: References: Date: Tue, 3 Sep 2013 16:53:49 +0530 Message-ID: Subject: Re: java.net.ConnectException when using Httpfs From: Visioner Sadak To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7b3a914c4a210c04e578ec27 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b3a914c4a210c04e578ec27 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable i removed 127.0.0.1 references from my etc hosts now its throwing {"RemoteException":{"message":"Call From redsigma1.local\/132.168.0.10 to localhost:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http:\/\/wiki.apache.org\/hadoop\/ConnectionRefused","exception":"ConnectEx= ception","javaClassName":"java.net.ConnectException"}} On Tue, Sep 3, 2013 at 4:33 PM, Visioner Sadak wr= ote: > yeah shud i change my etc/hosts :) > > > On Tue, Sep 3, 2013 at 3:59 PM, Andre Kelpe wro= te: > >> something is wrong with your name-resolution. If you look at the error >> message, it says you are trying to connect to 127.0.0.1 instead of the >> remote host. >> >> -Andr=E9 >> >> On Tue, Sep 3, 2013 at 12:05 PM, Visioner Sadak >> wrote: >> > Hello Hadoopers, >> > >> > I am trying to configure httpfs below are my >> > configurations in >> > >> > >> > httpfs-site.xml >> > >> > >> > httpfs.fsAccess.conf:fs.default.name >> > >> > hdfs://132.168.0.10:8020 >> > >> > >> > and in core-site.xml >> > >> > >> > hadoop.proxyuser.hadoop.hosts >> > 132.168.0.10 >> > >> > >> > >> > fs.default.name >> > viewfs:/// >> > >> > >> > >> > fs.viewfs.mounttable.default.link./NN1Home >> > hdfs://132.168.0.10:8020/NN1Home >> > >> > >> > I am able to start httpfs but when i try to access a file through >> httpfs >> > it throws the below error >> > >> > {"RemoteException":{"message":"Call From server1.local\/127.0.0.1 to >> > localhost:8020 failed on connection exception: >> java.net.ConnectException: >> > Connection refused; For more details see: >> > http:\/\/wiki.apache.org >> \/hadoop\/ConnectionRefused","exception":"ConnectException","javaClassNa= me":"java.net.ConnectException"}} >> > >> > >> > >> > >> > >> > >> > >> >> >> >> -- >> Andr=E9 Kelpe >> andre@concurrentinc.com >> http://concurrentinc.com >> > > --047d7b3a914c4a210c04e578ec27 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
i removed 127.0.0.1 references from my =A0etc hosts now it= s throwing

{"RemoteException":{"mess=
age":"Call From redsigma1.local\/=
132.168.0.10 to localhost:8020 failed on connection exception: java.net=
.ConnectException: Connection refused; For more details see:  http:\/\/wiki.apache.org\/hadoop\/ConnectionRefus=
ed","exception":"ConnectException","javaClass=
Name":"java.net.ConnectException"}}


O= n Tue, Sep 3, 2013 at 4:33 PM, Visioner Sadak <visioner.sadak@gmail= .com> wrote:
yeah shud i change my etc/h= osts :)


On Tue, Sep 3, 2013 at 3:59 PM, Andre Kelpe = <akelpe@concurrentinc.com> wrote:
something is wrong with your name-resolution= . If you look at the error
message, it says you are trying to connect to 127.0.0.1 instead of the
remote host.

-Andr=E9

On Tue, Sep 3, 2013 at 12:05 PM, Visioner Sadak
<visioner.= sadak@gmail.com> wrote:
> Hello Hadoopers,
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 I am trying to con= figure httpfs below are my
> configurations in
>
>
> httpfs-site.xml
>
> <property>
> <name>httpfs.fsAccess.conf:fs.default.name
> </name>
> <value>hdfs://132.168.0.10:8020</value>
> </property>
>
> and in core-site.xml
>
> <property>
> =A0<name>hadoop.proxyuser.hadoop.hosts</name>
> =A0<value>132.168.0.10</value>
> =A0</property>
>
> <property>
> <name>fs.de= fault.name</name>
> <value>viewfs:///</value>
> </property>
>
> <property>
> <name>fs.viewfs.mounttable.default.link./NN1Home</name> > <value>hdfs://132.168.0.10:8020/NN1Home</value>
> </property>
>
> =A0I am able to start httpfs but when i try =A0to access a file throug= h httpfs
> it throws the below error
>
> {"RemoteException":{"message":"Call From serv= er1.local\/127.0.0.1 to<= br> > localhost:8020 failed on connection exception: java.net.ConnectExcepti= on:
> Connection refused; For more details see:
> http:\/\/wiki.apa= che.org\/hadoop\/ConnectionRefused","exception":"Co= nnectException","javaClassName":"java.net.ConnectExcept= ion"}}
>
>
>
>
>
>
>



--
Andr=E9 Kelpe
andre@concurre= ntinc.com
http://concurrentinc= .com


--047d7b3a914c4a210c04e578ec27--