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

Reply via email to