Return-Path: X-Original-To: apmail-incubator-chukwa-dev-archive@www.apache.org Delivered-To: apmail-incubator-chukwa-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 6C2D710168 for ; Sun, 18 Aug 2013 17:58:53 +0000 (UTC) Received: (qmail 74376 invoked by uid 500); 18 Aug 2013 17:58:51 -0000 Delivered-To: apmail-incubator-chukwa-dev-archive@incubator.apache.org Received: (qmail 74353 invoked by uid 500); 18 Aug 2013 17:58:50 -0000 Mailing-List: contact chukwa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chukwa-dev@incubator.apache.org Delivered-To: mailing list chukwa-dev@incubator.apache.org Received: (qmail 74304 invoked by uid 99); 18 Aug 2013 17:58:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Aug 2013 17:58:49 +0000 Date: Sun, 18 Aug 2013 17:58:49 +0000 (UTC) From: "Eric Yang (JIRA)" To: chukwa-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CHUKWA-581) Demux do not support user custom reducer package name. 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/CHUKWA-581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Yang updated CHUKWA-581: ----------------------------- Status: Patch Available (was: Reopened) > Demux do not support user custom reducer package name. > ------------------------------------------------------- > > Key: CHUKWA-581 > URL: https://issues.apache.org/jira/browse/CHUKWA-581 > Project: Chukwa > Issue Type: Improvement > Components: MR Data Processors > Affects Versions: 0.5.0, 0.4.0, 0.6.0 > Environment: Ubuntu 10.0.4,Hadoop 0.20 > Reporter: Yingzhong Xu > Assignee: IvyTang > Priority: Critical > Labels: patch > Fix For: 0.6.0 > > Attachments: CHUKWA-581-update.patch, custom_reducer_backwardcompatible.patch, custom_reducer_conf_backwardcompatible.patch > > Original Estimate: 24h > Remaining Estimate: 24h > > In ReduceProcessorFactory.java, > it only gets {reduceType}.class from this package,as following: > bq. String path = "org.apache.hadoop.chukwa.extraction.demux.processor.reducer." + reduceType; > So our custom reducer could only be placed in that package. > Thus, When we add our {demux}.jar to Hadoop classpath, since the Hadoop framework will not be able to merge the class files from multiple jar files with the same package name, custom reduce class can not be found. > I get a way to overcome this defect.Put custom reducer into a package named with "org.apache.hadoop.chukwa.extraction.demux.processor.reducer."+{custom} > Here,{custom} is a part of package name.Then in parser,we can write like this: > bq. Key.setReducerType("{custom}.YourReducer") > In this way, Hadoop framework could be able to find our reduce class in this partial user defined new package. > But I think it will be better to fix chukwa to remove the default package name and fully support custom package name for reducer. > Thanks for Eric Yang's help. -- 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