Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 6B6B910F69 for ; Mon, 28 Oct 2013 10:31:51 +0000 (UTC) Received: (qmail 20272 invoked by uid 500); 28 Oct 2013 10:31:42 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 20181 invoked by uid 500); 28 Oct 2013 10:31:41 -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 20174 invoked by uid 99); 28 Oct 2013 10:31:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Oct 2013 10:31:40 +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 (nike.apache.org: domain of mirko.kaempf@gmail.com designates 209.85.192.182 as permitted sender) Received: from [209.85.192.182] (HELO mail-pd0-f182.google.com) (209.85.192.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Oct 2013 10:31:35 +0000 Received: by mail-pd0-f182.google.com with SMTP id q10so6843272pdj.13 for ; Mon, 28 Oct 2013 03:31:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Mgoya3Eb7ptIwQEhdpOCT5523MZvWbM6u+qoaX9RIU8=; b=uMHOQ4fgugV1oJY3Lr9EwOYLEhDnb51qWYy6C718NlYG94jgMxIV/aR6N01yjd4lKM ZmDxEMj3SLAA1KwWnMmykhyoUay8OdHzzTTs4KpTTrH2DjM8MmSGtD6/TOGSkC2Mx67B wAiSKzw6vUhWNwC1kJ0/k11XajVYz9mKBORFz/QfDgfxNHuTN+DOzDlKtYTQRAOCsyuW so4MLqDf0BEm3WYWQxyhBwTxP0gjHEI7529qfDsEqd4gLzsba2oOBcKtDOi43I59xOJb 5VyA4KPLN5OrdGUaTlT203mi5/VzICiEpztAabwpSD64etQrj3CwNveD+idAT/LPvqgL +hvw== X-Received: by 10.68.212.37 with SMTP id nh5mr20847112pbc.16.1382956273849; Mon, 28 Oct 2013 03:31:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.197.195 with HTTP; Mon, 28 Oct 2013 03:30:53 -0700 (PDT) In-Reply-To: References: From: =?ISO-8859-1?Q?Mirko_K=E4mpf?= Date: Mon, 28 Oct 2013 16:00:53 +0530 Message-ID: Subject: Re: Issues in emitting 2D double array to Reducer. To: "user@hadoop.apache.org" Content-Type: multipart/alternative; boundary=e89a8ff1c350715c7804e9ca9954 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff1c350715c7804e9ca9954 Content-Type: text/plain; charset=ISO-8859-1 Hi, you should create a custom data type, which contains two of the DoubleArrayWritable instances. This custom data type idea is also explained here: http://my.safaribooksonline.com/book/-/9781849517287/4dot-developing-complex-hadoop-mapreduce-applications/ch04s03_html Good luck. Mirko 2013/10/28 unmesha sreeveni > > http://stackoverflow.com/questions/19602692/java-lang-classcastexception-in-hadoop-mapreduce > > I tried out, but it is not working. > > I was able to emit 1 2D array..but When i cross checked once more, i am > not able to print the matrix(2D array) in reducer. > > Can anyone suggest me a gud way to emit 2 Matrices from mapper. > > > > -- > *Thanks & Regards* > * > * > Unmesha Sreeveni U.B* > * > *Junior Developer > * > *Amrita Center For Cyber Security > * > * > Amritapuri. > > www.amrita.edu/cyber/ > * > --e89a8ff1c350715c7804e9ca9954 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,=A0

you should create a custom= data type, which contains two of the=A0DoubleArrayWritable=A0instan= ces. This custom data type idea is also explained here: http://my.safaribooksonline.com/book/= -/9781849517287/4dot-developing-complex-hadoop-mapreduce-applications/ch04s= 03_html

Good luck.
Mirko
=A0


2013/10/28 unmesha sreeveni <unmeshabiju@gmail.com>
I tried out, but it is not working.

=
I was able to emit 1 2D array..but When i cross checked once more, i am not= able to print the matrix(2D array) in reducer.

Can anyone suggest me a gud way to emit 2 Matrices from mapper.



--
Thanks & = Regards

Unmesha Sreeveni U.B
Junior Developer
Amrita Center For Cyber Security

--e89a8ff1c350715c7804e9ca9954--