[ https://issues.apache.org/jira/browse/MAPREDUCE-1772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12889768#action_12889768 ]
Ravi Gummadi commented on MAPREDUCE-1772: ----------------------------------------- In documentation, many occurences of "$HADOOP_HOME/hadoop-streaming.jar" is seen. Would you please modify it to hadoop-streaming.jar sothat we don't mention wrong path of the jar ? > Hadoop streaming doc should not use IdentityMapper as an example > ---------------------------------------------------------------- > > Key: MAPREDUCE-1772 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-1772 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: contrib/streaming, documentation > Reporter: Marco Nicosia > Assignee: Amareshwari Sriramadasu > Priority: Minor > Fix For: 0.22.0 > > Attachments: patch-1772.txt > > > From the URL http://hadoop.apache.org/core/docs/current/streaming.html > This example doesn't work: > {quote} > You can supply a Java class as the mapper and/or the reducer. The above > example is equivalent to: > $HADOOP_HOME/bin/hadoop jar $HADOOP_HOME/hadoop-streaming.jar \ > -input myInputDirs \ > -output myOutputDir \ > -mapper org.apache.hadoop.mapred.lib.IdentityMapper \ > -reducer /bin/wc > {quote} > This will produce the following exception: > {quote} > java.io.IOException: Type mismatch in key from map: expected > org.apache.hadoop.io.Text, recieved org.apache.hadoop.io.LongWritable > {quote} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.