I would imagine something like: FSDataInputStream inFileStream = dfsFileSystem.open(dfsFilePath);
Don't forget to close after. Thanks, Htin -----Original Message----- From: Amit_Gupta [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2008 5:47 AM To: core-user@hadoop.apache.org Subject: How to input a hdfs file inside a mapper? How can I get an Input stream on a file stored in HDFS inside a mapper or a reducer? thanks Amit -- View this message in context: http://www.nabble.com/How-to-input-a-hdfs-file-inside-a-mapper--tp19687785 p19687785.html Sent from the Hadoop core-user mailing list archive at Nabble.com.