Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5F5E61113D for ; Wed, 18 Jun 2014 12:45:32 +0000 (UTC) Received: (qmail 63812 invoked by uid 500); 18 Jun 2014 12:45:27 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 63695 invoked by uid 500); 18 Jun 2014 12:45:27 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 63682 invoked by uid 99); 18 Jun 2014 12:45:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jun 2014 12:45:27 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [67.231.157.48] (HELO mx0b-00176a03.pphosted.com) (67.231.157.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jun 2014 12:45:19 +0000 Received: from pps.filterd (m0048204.ppops.net [127.0.0.1]) by m0048204.ppops.net-00176a03. (8.14.7/8.14.7) with SMTP id s5IChjgK043985 for ; Wed, 18 Jun 2014 08:44:57 -0400 Received: from alpmlip13.e2k.ad.ge.com ([12.43.191.1]) by m0048204.ppops.net-00176a03. with ESMTP id 1mkae4r6jb-1 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 18 Jun 2014 08:44:57 -0400 Received: from unknown (HELO CINMBHT01.e2k.ad.ge.com) ([3.159.212.194]) by alpmlip13.e2k.ad.ge.com with ESMTP/TLS/AES128-SHA; 18 Jun 2014 08:40:29 -0400 Received: from BANURBNA11.e2k.ad.ge.com (3.159.222.66) by CINMBHT01.e2k.ad.ge.com (3.159.212.194) with Microsoft SMTP Server (TLS) id 14.3.174.2; Wed, 18 Jun 2014 08:44:56 -0400 Received: from BANURBNA06.e2k.ad.ge.com ([169.254.6.194]) by BANURBNA11.e2k.ad.ge.com ([169.254.174.5]) with mapi id 14.03.0174.002; Wed, 18 Jun 2014 18:14:54 +0530 From: "Shrivastava, Himnshu (GE Global Research, Non-GE)" To: "user@hadoop.apache.org" Subject: Query map reduce Thread-Topic: Query map reduce Thread-Index: Ac+K8tTyVzoJL+iAQxqUy2KNrdfrLQ== Date: Wed, 18 Jun 2014 12:44:53 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [3.159.222.245] Content-Type: multipart/alternative; boundary="_000_B1E20F6A36805B45A5EC6A54F1B729B601468995BANURBNA06e2kad_" MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52,1.0.14,0.0.0000 definitions=2014-06-18_04:2014-06-17,2014-06-18,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1406180153 X-Virus-Checked: Checked by ClamAV on apache.org --_000_B1E20F6A36805B45A5EC6A54F1B729B601468995BANURBNA06e2kad_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I am writing a simple map reduce code in java. How can I get multiple key- = value pairs as output from a single mapper. If there is any preferred link = for that, please let me know. I tried using hash map for it but there exist= some errors in the same. Can an object of output collector emit multiple k= ey value pairs ? Regards, --_000_B1E20F6A36805B45A5EC6A54F1B729B601468995BANURBNA06e2kad_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I am writing a simple map reduce code in java. How c= an I get multiple key- value pairs as output from a single mapper. If there= is any preferred link for that, please let me know. I tried using hash map= for it but there exist some errors in the same. Can an object of output collector emit multiple key value pai= rs ?

 

Regards,

--_000_B1E20F6A36805B45A5EC6A54F1B729B601468995BANURBNA06e2kad_--