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 9A8759F6F for ; Fri, 5 Oct 2012 10:18:38 +0000 (UTC) Received: (qmail 81826 invoked by uid 500); 5 Oct 2012 10:18:34 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 81263 invoked by uid 500); 5 Oct 2012 10:18:28 -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 81205 invoked by uid 99); 5 Oct 2012 10:18:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2012 10:18:26 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cordioli.alberto@gmail.com designates 209.85.220.176 as permitted sender) Received: from [209.85.220.176] (HELO mail-vc0-f176.google.com) (209.85.220.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2012 10:18:20 +0000 Received: by mail-vc0-f176.google.com with SMTP id gb22so2129573vcb.35 for ; Fri, 05 Oct 2012 03:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=Lj5U8Et6HDLqk2iwrHN1U2htYcWM3ezFxFnIVp1jO9o=; b=vRRUck41enY7NhIKr42pQbJAOrgUiBoSYFkMuNj0bOcM74t4YQzvoqr35/jcSyigWw hIeq3VRoNyyjwpH2guHYrNIVYSuFjPrLNf5XVG3bHb1K2rXaem5rxFDkjBZzIgFjuGHL VnuPC0VpCKtOp+uhpTiZsPCujEC5cneTPbVJIQGoBHBGln5wDHOtL4xsDrHWLTnT/8Ta ypxUo8F0uzgCiRm/PxkwAVOMRsa8PzzdgsY+5GVOznsz+egibOrkpqVW19/oFjjkx0jW jtiM9RXqfbIq8tH+soJsTMEECTA+CzlBBWTelgFHmE7vC2C+HTYXm8T6CdH2mJUoF/vW ejkw== Received: by 10.220.226.7 with SMTP id iu7mr4876122vcb.64.1349432279267; Fri, 05 Oct 2012 03:17:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.16.136 with HTTP; Fri, 5 Oct 2012 03:17:44 -0700 (PDT) From: Alberto Cordioli Date: Fri, 5 Oct 2012 12:17:44 +0200 Message-ID: Subject: Problem in Matrix creation To: user@hadoop.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I am trying to create a matrix NxN with a MapReduce routine. To do so I need to iterate on a list of values and compare all the items of the list with each other. The problem is that in the reduce method only an Iterable is given and with such object you cannot compute all the possible pairs because I need 2 indexes. Moreover the Iterable is not clonable. How can I solve this problem? Is there any standard technique to use? Thanks, Alberto -- Alberto Cordioli