oh,i add the conf in this thrift server's classpath and it works.
Thanks dhruba.

On Wed, Oct 13, 2010 at 3:49 AM, Ying Tang <ivytang0...@gmail.com> wrote:

> But if i add the conf in thrift server 's classpath .the same exception
> will be thrown.
> Should i add some special conf property in conf?
>
> On Wed, Oct 13, 2010 at 3:43 AM, Ying Tang <ivytang0...@gmail.com> wrote:
>
>> Oh,yes.
>> If i made the pahname='testtxt' , a file named 'testtxt' wil be created in
>> the directory of the start server thrift.sh.
>>
>> On Wed, Oct 13, 2010 at 3:35 AM, Dhruba Borthakur <dhr...@gmail.com>wrote:
>>
>>> The thrift server needs to pick up the Hadoop configuration from a config
>>> directory. This conf directory should be in the CLASSPATH of the thrift
>>> server. It appears that ur thrift server is unable to find the right
>>> configuration directory and is defaulting to the local file system (as
>>> specified by file:///)
>>>
>>> thanks,
>>> dhruba
>>>
>>>
>>> On Wed, Oct 13, 2010 at 12:31 AM, Ying Tang <ivytang0...@gmail.com>wrote:
>>>
>>>> i've seen many posts on the internet about this aspect , but i still
>>>> don't know how to do .
>>>>
>>>> I've run the thrift server on hadoop namenode , and then run the python
>>>> thrift client.
>>>>
>>>> i',m trying the create a file in the hdfs , and my pathname.pathname is
>>>> 'hdfs://namenode:9000/user/hadoop/test'
>>>>
>>>> But the server thrift throws the exception:
>>>>
>>>> java.lang.IllegalArgumentException: Wrong FS:
>>>> hdfs://namenode:9000/user/hadoop/test, expected: file:///
>>>>
>>>> And change this pathname to 'file:///user/hadoop/test'' also didn't
>>>> work.
>>>>
>>>> Is there any examples of pathname and thrift client implementation?
>>>>
>>>>
>>>>
>>>> --
>>>> Best regards,
>>>>
>>>> Ivy Tang
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Connect to me at http://www.facebook.com/dhruba
>>>
>>
>>
>>
>> --
>> Best regards,
>>
>> Ivy Tang
>>
>>
>>
>>
>
>
> --
> Best regards,
>
> Ivy Tang
>
>
>
>


-- 
Best regards,

Ivy Tang

Reply via email to