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 40B721056D for ; Wed, 24 Jul 2013 20:27:51 +0000 (UTC) Received: (qmail 58977 invoked by uid 500); 24 Jul 2013 20:27:51 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 58940 invoked by uid 500); 24 Jul 2013 20:27:50 -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 58926 invoked by uid 99); 24 Jul 2013 20:27:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jul 2013 20:27:50 +0000 Date: Wed, 24 Jul 2013 20:27:50 +0000 (UTC) From: "Bikas Saha (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MAPREDUCE-5403) yarn.application.classpath requires client to know service internals 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-5403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13718797#comment-13718797 ] Bikas Saha commented on MAPREDUCE-5403: --------------------------------------- why are we using a literal string instead of a programming friendly constant? Literal string is error-prone and hard to maintain. Why have we changed YARN_APPLICATION_CLASSPATH to NM_APPLICATION_CLASSPATH? The config will be identical across NM's in the common case. Regardless, is this a configuration for the yarn application or the NM? Mixing NM_APPLICATION_CLASSPATH with YARN_APPLICATION_CLASSPATH_DEFAULT??? {code} + classPathEnv.append(File.pathSeparatorChar) + .append("$YARN_APPLICATION_CLASSPATH"); {code} {code} - Map environment = launchContext.getEnvironment(); + LinkedHashMap environment = new LinkedHashMap(); + for (String c : conf.getStrings( + YarnConfiguration.NM_APPLICATION_CLASSPATH, + YarnConfiguration.DEFAULT_YARN_APPLICATION_CLASSPATH)) { + Apps.addToEnvironment(environment, "YARN_APPLICATION_CLASSPATH", c + .trim()); + } + environment.putAll(launchContext.getEnvironment()); {code} > yarn.application.classpath requires client to know service internals > -------------------------------------------------------------------- > > Key: MAPREDUCE-5403 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-5403 > Project: Hadoop Map/Reduce > Issue Type: Improvement > Components: client > Affects Versions: 2.0.5-alpha > Reporter: Sandy Ryza > Assignee: Sandy Ryza > Attachments: MAPREDUCE-5403-1.patch, MAPREDUCE-5403.patch > > > yarn.application.classpath is a confusing property because it is used by MapReduce and not YARN, and MapReduce already has mapreduce.application.classpath, which provides the same functionality. -- 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