hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andras Bokor (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HADOOP-9697) Mapper example
Date Fri, 26 Jan 2018 14:40:00 GMT

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

Andras Bokor resolved HADOOP-9697.
    Resolution: Not A Problem

It this example the key is not used. It's a common think that the key is Object when it is
not used.

I think we should force the users to use WritableComparable with generics but that is out
of this ticket's scope.

> Mapper example
> --------------
>                 Key: HADOOP-9697
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9697
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: DeepakVohra
>            Priority: Minor
> The org.apache.hadoop.mapreduce 
> has an example with 
> public void map(Object key, Text value, Context context)
> But, "Any type which is to be used as a key in the Hadoop Map-Reduce framework should
implement this interface."
> org.apache.hadoop.io 
> Interface WritableComparable<T>
> The example has Object for key type. Object doesn't implement WritableComparable.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org

View raw message