Can map/reduce read local file system? My map/reduce cannot read localhost file, is there any wrong in my code ?
protected void map(Object arg0, Object arg1, Context context) throws IOException, InterruptedException { Configuration conf = context.getConfiguration(); LocalFileSystem lfs = FileSystem.getLocal(conf); FSDataOutputStream out = lfs.create(new Path("abc.txt")); out.writeUTF("abc"); out.close(); } Thanks and Regards!