From yarn-issues-return-140682-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Tue Mar 27 17:07:06 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id BA1E3180671 for ; Tue, 27 Mar 2018 17:07:05 +0200 (CEST) Received: (qmail 46035 invoked by uid 500); 27 Mar 2018 15:07:04 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 45988 invoked by uid 99); 27 Mar 2018 15:07:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2018 15:07:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 26A3418048C for ; Tue, 27 Mar 2018 15:07:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id gnTkytPhbDPC for ; Tue, 27 Mar 2018 15:07:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id F38125FB6A for ; Tue, 27 Mar 2018 15:07:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 1837FE0E4C for ; Tue, 27 Mar 2018 15:07:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 69ECB21518 for ; Tue, 27 Mar 2018 15:07:00 +0000 (UTC) Date: Tue, 27 Mar 2018 15:07:00 +0000 (UTC) From: "Jim Brennan (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-8071) Provide Spark-like API for setting Environment Variables to enable vars with commas MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-8071?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16415= 782#comment-16415782 ]=20 Jim Brennan commented on YARN-8071: ----------------------------------- [~jlowe], yes I think this will affect mapreduce, yarn, and common code.=C2= =A0 =C2=A0I haven't done the analysis yet to figure out everything this wil= l affect.=C2=A0 Should this be refiled in hadoop common, or or should we ad= d additional components to this Jira? > Provide Spark-like API for setting Environment Variables to enable vars w= ith commas > -------------------------------------------------------------------------= ---------- > > Key: YARN-8071 > URL: https://issues.apache.org/jira/browse/YARN-8071 > Project: Hadoop YARN > Issue Type: Bug > Components: yarn > Affects Versions: 3.0.0 > Reporter: Jim Brennan > Assignee: Jim Brennan > Priority: Major > > YARN-6830=C2=A0describes a problem where environment variables that conta= in commas cannot be specified via {{-Dmapreduce.map.env}}. > For example: > {{-Dmapreduce.map.env=3D"MODE=3Dbar,IMAGE_NAME=3Dfoo,MOUNTS=3D/tmp/foo,/t= mp/bar"}} > will set {{MOUNTS}} to {{/tmp/foo}} > In that Jira, [~aw] suggested that we change the API to provide a way to = specify environment variables individually, the same way that Spark does. > {quote}Rather than fight with a regex why not redefine the API instead? > =C2=A0 > -Dmapreduce.map.env.MODE=3Dbar > -Dmapreduce.map.env.IMAGE_NAME=3Dfoo > -Dmapreduce.map.env.MOUNTS=3D/tmp/foo,/tmp/bar > ... > e.g, mapreduce.map.env.[foo]=3Dbar gets turned into foo=3Dbar > This greatly simplifies the input validation needed and makes it clear wh= at is actually being defined. > {quote} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org