hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yasuko Komiyama (JIRA)" <j...@apache.org>
Subject [jira] Created: (HADOOP-6251) Incorrect sample code in javadoc for org.apache.hadoop.mapreduce.Mapper
Date Thu, 10 Sep 2009 18:20:57 GMT
Incorrect sample code in javadoc for org.apache.hadoop.mapreduce.Mapper
-----------------------------------------------------------------------

                 Key: HADOOP-6251
                 URL: https://issues.apache.org/jira/browse/HADOOP-6251
             Project: Hadoop Common
          Issue Type: Bug
    Affects Versions: 0.20.0
            Reporter: Yasuko Komiyama
            Priority: Trivial


In the javadoc description about mapreduce.Mapper class, there is an example code "TokenCounterMapper",
and it calls context.collect() in the map() method.  It should call context.write().

  context.collect(word, one);  ---->  context.write(word, one);

-- 
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