Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id ED9BD200B9D for ; Thu, 13 Oct 2016 16:01:21 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EC113160AF6; Thu, 13 Oct 2016 14:01:21 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 65DE3160AE3 for ; Thu, 13 Oct 2016 16:01:21 +0200 (CEST) Received: (qmail 27777 invoked by uid 500); 13 Oct 2016 14:01:20 -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 27756 invoked by uid 99); 13 Oct 2016 14:01:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Oct 2016 14:01:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 688562C0086 for ; Thu, 13 Oct 2016 14:01:20 +0000 (UTC) Date: Thu, 13 Oct 2016 14:01:20 +0000 (UTC) From: =?utf-8?Q?Markus_D=C3=B6ring_=28JIRA=29?= To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (YARN-5730) Improve setting of environment variable HOME in containers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 13 Oct 2016 14:01:22 -0000 Markus D=C3=B6ring created YARN-5730: ----------------------------------- Summary: Improve setting of environment variable HOME in conta= iners Key: YARN-5730 URL: https://issues.apache.org/jira/browse/YARN-5730 Project: Hadoop YARN Issue Type: Improvement Components: nodemanager Environment: ContainerLaunch.java Reporter: Markus D=C3=B6ring Priority: Minor Currently, the HOME environment variable for a YARN container is determined= as follows[1]: # if the (undocumented) configuration {{yarn.nodemanager.user-home-dir}} is= set, HOME is set to its value # otherwise, HOME is set to {{"/home/"}} Option 1 is suboptimal in a multi-user environment, while the default does = not help at all. It would be nice if we could do one of the following: # default to HOME unset # default to {{"/home/" + container.getUser()}} # get HOME from container Option 1 would at least inform the process about the problem, but would obv= iously cause some problems in programs that assume HOME to be set. Option 2= might point to the correct home, at least it's not more incorrect than {{= "/home/"}}. Option 3 might be the best choice, but it also requires API cha= nges. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org