Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 62218 invoked from network); 15 Mar 2007 00:09:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Mar 2007 00:09:33 -0000 Received: (qmail 78022 invoked by uid 500); 15 Mar 2007 00:09:39 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 78006 invoked by uid 500); 15 Mar 2007 00:09:39 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 77826 invoked by uid 99); 15 Mar 2007 00:09:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2007 17:09:38 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2007 17:09:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 82B2C71407A for ; Wed, 14 Mar 2007 17:09:09 -0700 (PDT) Message-ID: <5959599.1173917349532.JavaMail.jira@brutus> Date: Wed, 14 Mar 2007 17:09:09 -0700 (PDT) From: "Runping Qi (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Created: (HADOOP-1120) Contribute some code helping implement map/reduce apps for joining data from multiple sources MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Contribute some code helping implement map/reduce apps for joining data from multiple sources --------------------------------------------------------------------------------------------- Key: HADOOP-1120 URL: https://issues.apache.org/jira/browse/HADOOP-1120 Project: Hadoop Issue Type: New Feature Components: contrib/streaming Reporter: Runping Qi With the current Hadoop, it is a bit hard for the user to implement data joining apps. HADOOP-475/485 attempt to provide some support for data joining jobs, but it seems to be had to implement. This Jira rather calls for a application level support. The idea is to provide a generic map/reduce classes implementing data join jobs, and allows the user to extend those classes to add their special logic. In particular, the user needs to define a mapper class that extends DataJoinMapperBase class to implement methods for the following functionalities: 1. Compute the source tag of input values 2. Compute the map output value object 3. Compute the map output key object The source tag will be used by the reducer to determine from which source (which table in SQL terminology) a value comes. Computing the map output value object amounts to performing projecting/filtering work in a SQL statement (through the select/where clauses). Computing the map output key amounts to choosing the join key. This class provides the appropriate plugin points for the user defined subclasses to implement the appropriate logic. The the user needs to define a reducer class that extends DataJoinReduceBase class to implement the following: protected abstract TaggedMapOutput combine(Object[] tags, Object[] values); The above method is expected to produce one output value from an array of records of different sources. The user code can also perform filtering here. It can return null if it decides to the records do not meet certain conditions. That is pretty much the user need to do in order to create a map/reduce job to join data from different sources. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.