Did you try adding *file://* in front of the path?

On Wed, Apr 4, 2012 at 5:43 PM, Pedro Costa <psdc1...@gmail.com> wrote:

>  I'm trying to open a local file with the FileSystem class.
>
> FileSystem rfs = FileSystem.get(conf);
> FSDataInputStream i = srcFs.open(p);
>
>
> but I get file not found. The path is correct, but I think that my class
> is accessing hdfs, instead of my local filesystem. Can I use the FileSystem
> to access local filesystem?
>
> --
> Best regards,
>



-- 

Ashwanth Kumar / ashwanthkumar.in

Reply via email to