hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pedro Costa <psdc1...@gmail.com>
Subject Accessing local filesystem with org.apache.hadoop.fs.FileSystem
Date Wed, 04 Apr 2012 12:13:25 GMT
 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,

Mime
View raw message