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 49E37CDC6 for ; Fri, 27 Apr 2012 08:36:24 +0000 (UTC) Received: (qmail 5782 invoked by uid 500); 27 Apr 2012 08:36:24 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 5342 invoked by uid 500); 27 Apr 2012 08:36:20 -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 4514 invoked by uid 99); 27 Apr 2012 08:36:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Apr 2012 08:36:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Apr 2012 08:36:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D3D1F423E2E for ; Fri, 27 Apr 2012 08:35:57 +0000 (UTC) Date: Fri, 27 Apr 2012 08:35:57 +0000 (UTC) From: "Radim Kolar (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <432329605.2086.1335515757869.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1480145560.640.1335478851279.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MAPREDUCE-4204) Refactor ProcfsBasedProcessTree to make the resource collection object pluggable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MAPREDUCE-4204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263509#comment-13263509 ] Radim Kolar commented on MAPREDUCE-4204: ---------------------------------------- ResourceCalculatorProcessTree should be merged with existing ResourceCalculatorPlugin infractructure. It means: 1. remove ResourceCalculatorProcessTree getResourceCalculatorProcessTree and move it to ResourceCalculatorPlugin as abstract member method. 2. LinuxResourceCalculatorPlugin will return procfsBasedProcessTree 3. method isAvailable() should not be needed, it is checked at lot of places. Removing it will simplify code. Unsupported operation systems get null from getResourceCalculatorPlugin and no plugin means no ResourceCalculatorProcessTree as well. 4. org.apache.hadoop.yarn.server.nodemanager.containermanager.monitor.ContainerMemoryMonitorImpl must be modified to work with ResourceCalculatorPlugin > Refactor ProcfsBasedProcessTree to make the resource collection object pluggable > -------------------------------------------------------------------------------- > > Key: MAPREDUCE-4204 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-4204 > Project: Hadoop Map/Reduce > Issue Type: Improvement > Reporter: Bikas Saha > Assignee: Bikas Saha > Attachments: MAPREDUCE-4204.patch > > > Making it a pluggable interface will allow replacing the procfs based implementation with ones for other platforms. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira