[ 
https://issues.apache.org/jira/browse/MAPREDUCE-1772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12889809#action_12889809
 ] 

Ravi Gummadi commented on MAPREDUCE-1772:
-----------------------------------------

Patch looks good.
+1

> 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-1.txt, patch-1772-2.txt, 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.

Reply via email to