Return-Path: Delivered-To: apmail-lucene-hadoop-user-archive@locus.apache.org Received: (qmail 38111 invoked from network); 28 Sep 2007 14:52:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Sep 2007 14:52:43 -0000 Received: (qmail 67789 invoked by uid 500); 28 Sep 2007 14:52:32 -0000 Delivered-To: apmail-lucene-hadoop-user-archive@lucene.apache.org Received: (qmail 67504 invoked by uid 500); 28 Sep 2007 14:52:30 -0000 Mailing-List: contact hadoop-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-user@lucene.apache.org Delivered-To: mailing list hadoop-user@lucene.apache.org Received: (qmail 67495 invoked by uid 99); 28 Sep 2007 14:52:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2007 07:52:30 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2007 14:52:30 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IbHCM-0000Ld-F9 for hadoop-user@lucene.apache.org; Fri, 28 Sep 2007 07:52:10 -0700 Message-ID: <12942118.post@talk.nabble.com> Date: Fri, 28 Sep 2007 07:52:10 -0700 (PDT) From: alex_ To: hadoop-user@lucene.apache.org Subject: novice question on sorting MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: alex.macmini@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I searched through the archives a bit and could not come up with a direct answer to this. How can I sort my output based on the value portion of the key/value pair from reduce? For example, the word count sample would be sorted in descending order with the word having the highest count appearing first, instead of alphabetical order of the key as it occurs now. Sorry if this is trivial detail that I am missing! -- View this message in context: http://www.nabble.com/novice-question-on-sorting-tf4535008.html#a12942118 Sent from the Hadoop Users mailing list archive at Nabble.com.