hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Visioner Sadak <visioner.sa...@gmail.com>
Subject Re: unable to access using webhdfs in 0.23.3
Date Thu, 18 Oct 2012 11:53:07 GMT
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
<visioner.sadak@gmail.com>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 <arpit@hortonworks.com>wrote:
>
>> does any other webhdfs call work for you?
>>
>> for example can you do this
>>
>> http://localhost:50070/webhdfs/v1/user/test.jpg<http://localhost:50070/webhdfs/v1/user/test.jpg?op=>
>> ?OP=liststatus<http://localhost:50070/webhdfs/v1/tmp/passwd12/?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/
>> <http://www.hadoopsummit.org/>
>>
>>  On Oct 17, 2012, at 11:17 AM, Visioner Sadak <visioner.sadak@gmail.com>
>> 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 <visioner.sadak@gmail.com
>> > 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
>>>>
>>>>  <property>
>>>>         <name>dfs.webhdfs.enabled</name>
>>>>         <value>true</value>
>>>>     </property>
>>>> 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"}}
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>

Mime
View raw message