You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Amareshwari Sriramadasu (JIRA)" <ji...@apache.org> on 2010/07/08 11:47:50 UTC
[jira] Updated: (MAPREDUCE-1772) Hadoop streaming doc should not
use IdentityMapper as an example
[ https://issues.apache.org/jira/browse/MAPREDUCE-1772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amareshwari Sriramadasu updated MAPREDUCE-1772:
-----------------------------------------------
Attachment: patch-1772.txt
Attached patch corrects the documentation.
> 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.