You should use FileSystem methods to do it..
E.g. 
FSDataInputStream  open(Path f)


On 9/8/09 9:54 PM, "Bill Yu" <[email protected]> wrote:

> Hi everyone,
> 
>      when I run the following code:
> 
>      ObjectInputStream in = new ObjectInputStream(new
> FileInputStream("hdfs://localhost:9000/myDir/trajectory/test.obj"));
> 
>      it throws an error that the directory is not exist, how can I define
> the its path ?
>      Any suggestion is appreciate !
> 
> Thanks,
> Austin

Reply via email to