Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 1926 invoked from network); 12 Sep 2010 21:00:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Sep 2010 21:00:12 -0000 Received: (qmail 1649 invoked by uid 500); 12 Sep 2010 21:00:12 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 1621 invoked by uid 500); 12 Sep 2010 21:00:12 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 1613 invoked by uid 99); 12 Sep 2010 21:00:11 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Sep 2010 21:00:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Sep 2010 20:59:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8CKxX3r018419 for ; Sun, 12 Sep 2010 20:59:33 GMT Message-ID: <4473814.143871284325173454.JavaMail.jira@thor> Date: Sun, 12 Sep 2010 16:59:33 -0400 (EDT) From: "Clarence Gardner (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Created: (MAPREDUCE-2064) Tutorial should mention SetMapOutputKeyClass MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Tutorial should mention SetMapOutputKeyClass -------------------------------------------- Key: MAPREDUCE-2064 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2064 Project: Hadoop Map/Reduce Issue Type: Improvement Components: documentation Affects Versions: 0.21.0 Reporter: Clarence Gardner Priority: Minor The official tutorial (mapred_tutorial.html) (and all other tutorials I've seen on the web) show a program that has the same datatypes for the key/value pairs emitted by the mapper and by the reducer, and shows a configuration call to Job.setOutput{Key,Value}Class but doesn't say that it refers to both the mapper and the reducer. It sounds like it refers to the reducer output. This might be mentioned in the "Job Configuration" section. Here is a possible addition, after the "The Job is used to specify ..." paragraph. The job also configures the types of its key/value pairs with setOutputKeyClass(type) andsetOutputValueClass(type), which appy to both the mapper and reducer classes. If the types output by the mapper and reducer are not the same, that should be followed with setMapOutputKeyClass(type) and setMapOutputValueClass(type). (I'm assuming that at least a call to setOutput{Key,Value}Class is required.) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.