Hi guys,

I am trying to use FileInputStream object for accessing file on DFS
filesystem. But it is throwing exception "No Such file or directory". Though
that file is present on DFS.

The code line is - 

BufferedReader reader = new BufferedReader(new InputStreamReader(
                                        new
FileInputStream("/user/hadoop/input/inputfile")));

where file /user/hadoop/input/inputfile is present in on dfs file system.
This code is present in the mapper.

Please advise me know if i am making any mistake.

Thanks in advance.

Cheers,
Santosh
-- 
View this message in context: 
http://www.nabble.com/FileInputStream-object-in-DFS-tp21026325p21026325.html
Sent from the Hadoop core-dev mailing list archive at Nabble.com.

Reply via email to