Return-Path: X-Original-To: apmail-crunch-dev-archive@www.apache.org Delivered-To: apmail-crunch-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 520D310DD9 for ; Wed, 21 Aug 2013 03:48:03 +0000 (UTC) Received: (qmail 55023 invoked by uid 500); 21 Aug 2013 03:48:03 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 54888 invoked by uid 500); 21 Aug 2013 03:48:03 -0000 Mailing-List: contact dev-help@crunch.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@crunch.apache.org Delivered-To: mailing list dev@crunch.apache.org Received: (qmail 53892 invoked by uid 500); 21 Aug 2013 03:47:56 -0000 Delivered-To: apmail-incubator-crunch-dev@incubator.apache.org Received: (qmail 53752 invoked by uid 99); 21 Aug 2013 03:47:54 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Aug 2013 03:47:54 +0000 Date: Wed, 21 Aug 2013 03:47:53 +0000 (UTC) From: "Chao Shi (JIRA)" To: crunch-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CRUNCH-251) HFileUtils#sortAndPartition does not work when two instances exist in the same pipeline MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CRUNCH-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13745755#comment-13745755 ] Chao Shi commented on CRUNCH-251: --------------------------------- Pushed to master. > HFileUtils#sortAndPartition does not work when two instances exist in the same pipeline > --------------------------------------------------------------------------------------- > > Key: CRUNCH-251 > URL: https://issues.apache.org/jira/browse/CRUNCH-251 > Project: Crunch > Issue Type: Bug > Components: IO > Reporter: Chao Shi > Assignee: Chao Shi > Fix For: 0.8.0 > > Attachments: crunch-251.patch > > > This bug happens when generating some data and write them to two HTables (which different number of regions) in a single pipeline. The job fails because of "Wrong number of partitions in keyset". > This is because it is using TotalOrderPartitioner#setPartitionFile, which sets the path to partition file to a global conf. The correct approach should be only change the reducer's conf (as it is done in Sort#configureReducers). So the fix is straightforward. > This has been tested on a real HBase cluster. I will make a patch soon. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira