hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Döring (JIRA) <j...@apache.org>
Subject [jira] [Created] (YARN-5730) Improve setting of environment variable HOME in containers
Date Thu, 13 Oct 2016 14:01:20 GMT
Markus Döring created YARN-5730:

             Summary: Improve setting of environment variable HOME in containers
                 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öring
            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 obviously 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 changes.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org

View raw message