Hi
I have a jar file which takes input from stdin and writes something on
stdout. i.e. When I run
java -jar A.jar < input
It prints the required output.
However, when I run it as a mapper in hadoop streaming using the command
$HADOOP_HOME/bin/hadoop jar streaming.jar -input .. -output .
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--tp19687785p19687785.html
Sent from the Hadoop core-user mailing list archive at Nabble.com.