hadoop-mapreduce-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amareshwari Sriramadasu (JIRA)" <j...@apache.org>
Subject [jira] Created: (MAPREDUCE-1888) Streaming overrides user given output key and value types.
Date Wed, 23 Jun 2010 04:33:50 GMT
Streaming overrides user given output key and value types.
----------------------------------------------------------

                 Key: MAPREDUCE-1888
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1888
             Project: Hadoop Map/Reduce
          Issue Type: Bug
          Components: contrib/streaming
    Affects Versions: 0.21.0
            Reporter: Amareshwari Sriramadasu
             Fix For: 0.22.0


The following code in StreamJob.java overrides user given output key and value types.
{code}
    idResolver.resolve(conf.get(StreamJobConfig.MAP_OUTPUT,
        IdentifierResolver.TEXT_ID));
    conf.setClass(StreamJobConfig.MAP_OUTPUT_READER_CLASS,
      idResolver.getOutputReaderClass(), OutputReader.class);
    job.setMapOutputKeyClass(idResolver.getOutputKeyClass());
    job.setMapOutputValueClass(idResolver.getOutputValueClass());
    
    idResolver.resolve(conf.get(StreamJobConfig.REDUCE_OUTPUT,
        IdentifierResolver.TEXT_ID));
    conf.setClass(StreamJobConfig.REDUCE_OUTPUT_READER_CLASS,
      idResolver.getOutputReaderClass(), OutputReader.class);
    job.setOutputKeyClass(idResolver.getOutputKeyClass());
    job.setOutputValueClass(idResolver.getOutputValueClass());
{code}


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