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 2C2D0D7C7 for ; Thu, 18 Oct 2012 11:53:45 +0000 (UTC) Received: (qmail 50126 invoked by uid 500); 18 Oct 2012 11:53:40 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 49367 invoked by uid 500); 18 Oct 2012 11:53:35 -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 49335 invoked by uid 99); 18 Oct 2012 11:53:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2012 11:53:33 +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 74.125.83.48 as permitted sender) Received: from [74.125.83.48] (HELO mail-ee0-f48.google.com) (74.125.83.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2012 11:53:29 +0000 Received: by mail-ee0-f48.google.com with SMTP id b45so5208432eek.35 for ; Thu, 18 Oct 2012 04:53:07 -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=Rq86c0mJSWb+Awp6sQ14/gp3xz1g49ngb2Cn+rJ7diE=; b=kj2l/M+PJXHSdn2HsrrFfBEZ+jtlkQT9lgvDDtdWbj6+qkSZvW44xalMt+E7N0L03o TlLifcPl1ZUA06WAgr8/MH06ddbuYOVFQCP874UOecEAsgOXai1LmNezU2To0G6M9LvO MzVpllvUBO6xgdlLeeVyLf0ODIU9jmYX/xLRd16qEp1yCUobisd4mSl6quJYZRllQ3eR O1Mbcs1c3Y2y9b+Mo34YMH/N+NPPABrUZeM/yF/NmJQOGirDPCa9Cx+57LWt+JFVk1C2 UimmgDDRhMkUK6zb43I2VA5fEvqrlMXFEzGwIzVBI1tzb44DTRxDcz8iGxJw4vh+RjuQ jfuQ== MIME-Version: 1.0 Received: by 10.14.1.69 with SMTP id 45mr31162987eec.23.1350561187892; Thu, 18 Oct 2012 04:53:07 -0700 (PDT) Received: by 10.14.220.134 with HTTP; Thu, 18 Oct 2012 04:53:07 -0700 (PDT) In-Reply-To: References: Date: Thu, 18 Oct 2012 17:23:07 +0530 Message-ID: Subject: Re: unable to access using webhdfs in 0.23.3 From: Visioner Sadak To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7b622570da0c7e04cc540778 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b622570da0c7e04cc540778 Content-Type: text/plain; charset=ISO-8859-1 is it becoz i m operation in psuedo-diist mode and my datanode and namenode are on a single linux box thts why namenode taking datanode redirect URL as localhost........ On Thu, Oct 18, 2012 at 12:04 AM, Visioner Sadak wrote: > yes operations like liststatus and GETCONTENTSUMMARY etc are wrking just > OPEN is not wrking coz the redirect url it generates is > > > http://localhost:50075/webhdfs/v1/user/test.jpg?op=OPEN&namenoderpcaddress=112.30.123.711:8020&offset=0 > now when i replace the localhost with *112.30.123.711 it wrks *dunt > know why it takes localhost automatically > ** > ** > ** > > > > On Wed, Oct 17, 2012 at 11:54 PM, Arpit Gupta wrote: > >> does any other webhdfs call work for you? >> >> for example can you do this >> >> http://localhost:50070/webhdfs/v1/user/test.jpg >> ?OP=liststatus >> >> I tried 0.23.4 and setup a single node cluster and was able to make the >> calls. >> >> -- >> Arpit Gupta >> Hortonworks Inc. >> http://hortonworks.com/ >> >> >> On Oct 17, 2012, at 11:17 AM, Visioner Sadak >> wrote: >> >> I guess my temporary redirect in webhdfs is not getting properly done , >> its pointing to localhost instead of ip address am i missing any >> configurations all my conf files have ip address only... >> >> On Wed, Oct 17, 2012 at 2:45 PM, Visioner Sadak > > wrote: >> >>> >>> http://112.30.123.711:50070/webhdfs/v1/user/test.jpg?op=OPEN >>> >>> whn i use my linux box ip *112.30.123.711 it points to * >>> >>> >>> http://localhost:50075/webhdfs/v1/user/test.jpg?op=OPEN&namenoderpcaddress=112.30.123.711:8020&offset=0 >>> >>> localhost hw to bring in linux box ip in here ??? >>> >>> >>> >>> >>> >>> >>> On Wed, Oct 17, 2012 at 2:37 PM, Visioner Sadak < >>> visioner.sadak@gmail.com> wrote: >>> >>>> have configured webhdfs in hdfs-site.xml >>>> >>>> as >>>> >>>> >>>> dfs.webhdfs.enabled >>>> true >>>> >>>> but unable to access my file at >>>> >>>> http://localhost:50070/webhdfs/v1/user/test.jpg?op=OPEN >>>> >>>> also tried >>>> >>>> http://localhost:50075/webhdfs/v1/user/test.jpg?op=OPEN getting >>>> exception in browser >>>> >>>> >>>> >>>> {"RemoteException":{"exception":"IllegalArgumentException","javaClassName": >>>> >>>> "java.lang.IllegalArgumentException","message":"Expecting exactly one of nameNodeAddr and rpcNamenode being null: nameNodeAddr=null, rpcNamenode=null"}} >>>> >>>> >>>> >>>> >>>> >>> >>> >> >> > --047d7b622570da0c7e04cc540778 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable is it becoz i m operation in psuedo-diist mode and my datanode and namenode= are on a single linux box thts why namenode taking datanode redirect URL a= s localhost........

On Thu, Oct 18, 2012 at 12:04 AM, Visioner Sadak= <visioner.sadak@gmail.com> wrote:
yes operations like liststatus and GETCONTENTSUMMARY etc are wrking ju= st OPEN is not wrking coz the redirect url it generates is
=A0
now when i replace the localhost with 112.3= 0.123.711=A0=A0=A0 it wrks=A0=A0=A0 dunt= know why it takes localhost automatically
=A0
=A0
=A0
=A0


On Wed, Oct 17, 2012 at 11:54 PM, Arpit Gupta <arpit@hortonworks.com> wrote:
does any other webhdfs call work for yo= u?=20

for example can you do this


I tried 0.23.4 and setup a single node cluster and was able to make th= e calls.

--
Arpit Gupta
Hortonworks Inc.
http://hortonworks.com/
=

On Oct 17, 2012, at 11:17 AM, Visioner Sadak <visioner.sadak@gmail.com> w= rote:

I guess my temporary redirect in webhdfs=A0is not= getting properly done=A0, its pointing to localhost instead of=A0 ip addre= ss am i missing any configurations all my conf files have ip address only..= .

On Wed, Oct 17, 2012 at 2:45 PM, Visioner Sadak = <visioner.sadak@gmail.com> wrote:
=A0
whn i use my linux box ip 112.30.123.711 it= points to
=A0
=A0
localhost hw to bring in linux box ip in here ???
=A0
=A0
=A0


=A0
On Wed, Oct 17, 2012 at 2:37 PM, Visioner Sadak = <visioner.sadak@gmail.com> wrote:
have configured webhdfs in hdfs-site.xml
=A0
as
=A0
=A0<property>
=A0=A0=A0=A0=A0=A0=A0 <name>dfs.webhdfs.e= nabled</name>
=A0=A0=A0=A0=A0=A0=A0 <value>true</value>= ;
=A0=A0=A0 </property>
but unable to access my file at
=A0
=A0
also tried
=A0
=A0
=A0
{"RemoteException":{"exception":"Illegal=
ArgumentException","javaClassName":
"java.lan=
g.IllegalArgumentException","message":"Expecting exactl=
y one of nameNodeAddr and rpcNamenode being null: nameNodeAddr=3Dnull, rpcN=
amenode=3Dnull"}}
=A0
=A0
=A0





--047d7b622570da0c7e04cc540778--