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.

Reply via email to