Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1BD7110FAA for ; Wed, 16 Oct 2013 18:51:55 +0000 (UTC) Received: (qmail 53774 invoked by uid 500); 16 Oct 2013 18:51:49 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 53603 invoked by uid 500); 16 Oct 2013 18:51:47 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 53524 invoked by uid 99); 16 Oct 2013 18:51:47 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Oct 2013 18:51:47 +0000 Date: Wed, 16 Oct 2013 18:51:46 +0000 (UTC) From: "Nick Dimiduk (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-7743) Replace *SortReducers with Hadoop Secondary Sort 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/HBASE-7743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13797120#comment-13797120 ] Nick Dimiduk commented on HBASE-7743: ------------------------------------- bq. Having reducers group all cells per row will not handle very large rows very well. That's precisely the reason I stumbled into this in the first place :) > Replace *SortReducers with Hadoop Secondary Sort > ------------------------------------------------ > > Key: HBASE-7743 > URL: https://issues.apache.org/jira/browse/HBASE-7743 > Project: HBase > Issue Type: Sub-task > Components: mapreduce, Performance > Reporter: Nick Dimiduk > > The mapreduce package provides two Reducer implementations, KeyValueSortReducer and PutSortReducer, which are used by Import, ImportTsv, and WALPlayer in conjunction with the HFileOutputFormat. Both of these implementations make use of a TreeSet to sort values matching a key. This reducer will OOM when rows are large. > A better solution would be to implement secondary sort of the values. That way hadoop sorts the records, spilling to disk when necessary. -- This message was sent by Atlassian JIRA (v6.1#6144)