Ensure you also initialize the FileSystem object (fs) against the
right FS URI. It may be trying to resolve /data as a LocalFS path.
On Sat, Aug 3, 2013 at 7:08 AM, Huy Pham <[EMAIL PROTECTED]> wrote:
> So I am trying to get the content of a HDFS dir. The instruction gives an
> example like this:
> FileStatus status = fs.listStatus(new
> But now I need to apply this example to my local host, which has HDFS dir
> "/data". I tried putting "/data" and "hdfs://localhost/data" but it still
> said "file not found" in the output.
> The code I use can be found here:
> Can someone explain how to put the right string for the path?