[ 
https://issues.apache.org/jira/browse/YARN-9053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16698386#comment-16698386
 ] 

Charo Zhang commented on YARN-9053:
-----------------------------------

[~eyang] we tested in non-entry point mode, due to be lack of 
{code:java}
runCommand.addEnv(environment);
{code}
Environment variables are not written to docker container. After we added it in 
non-entry point mode, all -shell_env values are added to containers. Maybe it's 
really a bug, addEnv method only used in entry point mode by searching.

> Support set environment variables for Docker Containers In nonEntryPoint mode
> -----------------------------------------------------------------------------
>
>                 Key: YARN-9053
>                 URL: https://issues.apache.org/jira/browse/YARN-9053
>             Project: Hadoop YARN
>          Issue Type: New Feature
>          Components: nodemanager
>    Affects Versions: 3.1.1
>            Reporter: Charo Zhang
>            Priority: Major
>              Labels: Docker
>         Attachments: YARN-9053.patch
>
>
> In yarn 3.1.1, users can only set environment variables with "-shell_env" in 
> ENTRYPOINT mode, and variables must be registered in 
> yarn.nodemanager.env-whitelist.
> But in nonEntryPoint mode, we should allow users to set environment variables 
> like "-e KEY=VAULE" in docker run command, too.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to