Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 24CB7E043 for ; Thu, 6 Dec 2012 16:37:22 +0000 (UTC) Received: (qmail 60598 invoked by uid 500); 6 Dec 2012 16:37:11 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 60489 invoked by uid 500); 6 Dec 2012 16:37:10 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 60420 invoked by uid 99); 6 Dec 2012 16:37:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2012 16:37:09 +0000 Date: Thu, 6 Dec 2012 16:37:09 +0000 (UTC) From: "Radim Kolar (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MAPREDUCE-4851) add lifecycle to Comparators 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/MAPREDUCE-4851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13511499#comment-13511499 ] Radim Kolar commented on MAPREDUCE-4851: ---------------------------------------- for example you can not use datagrid in comparator because if you start it in setConf() you can shut it down, which is kinda huge memory leak if JVM reuse is enabled. It will also block JVM exit unless hadoop is using System.exit() call. > add lifecycle to Comparators > ---------------------------- > > Key: MAPREDUCE-4851 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-4851 > Project: Hadoop Map/Reduce > Issue Type: Improvement > Reporter: Radim Kolar > Labels: mrv2 > > current mapreduce api is using RawComparator interface in: > setGroupingComparatorClass > setSortComparatorClass > This interface has no lifecycle support. I propose to change that methods to take argument new class implements RawComparator with setup and cleanup methods. > This will leave existing code with RawComparator alone, Providing some backward compatibility. > new class: > class SortComparator implements RawComparator -- 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