You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Yasuko Komiyama (JIRA)" <ji...@apache.org> on 2009/09/10 20:20:57 UTC
[jira] Created: (HADOOP-6251) Incorrect sample code in javadoc for
org.apache.hadoop.mapreduce.Mapper
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.