hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amareshwari Sriramadasu (JIRA)" <j...@apache.org>
Subject [jira] Moved: (MAPREDUCE-1772) Hadoop streaming doc should not use IdentityMapper as an example
Date Fri, 07 May 2010 05:21:50 GMT

     [ https://issues.apache.org/jira/browse/MAPREDUCE-1772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Amareshwari Sriramadasu moved HADOOP-4452 to MAPREDUCE-1772:
------------------------------------------------------------

              Project: Hadoop Map/Reduce  (was: Hadoop Common)
                  Key: MAPREDUCE-1772  (was: HADOOP-4452)
    Affects Version/s:     (was: 0.18.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
>            Priority: Minor
>
> 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.


Mime
View raw message