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

Eric Yang commented on YARN-7654:
---------------------------------

[~ebadger]
{quote}
Don't we need the workdir to be defined in the image? If not, the container 
will write as a user that the NM won't be able to clean up after.
{quote}

It appears that we need to support two modes of operation.  The current mode 
where workdir is bind-mounted into the same location as host to allow Hadoop 
native apps to work.  The second mode will launch container and bind-mount HDFS 
via NFS gateway for non-Hadoop workload.  Image can write to HDFS and follows 
hdfs permission rules.  There is no workdir used to write output.  Hence, the 
clean up will not be a problem.

{quote}
This approach could overwrite variables that are defined by the image. If 
variables are in the whitelist, then we want them to be set, but only if they 
aren't in the docker image. However, this would always overwrite whatever the 
image had defined
{quote}

I plan to retain the current behavior. If USE_ENTRY_POINT is enabled, then it 
follows the second method for environment construction, and user defined 
environment variable may override image supplied environment.  This depends on 
how the image is arranged.

> Support ENTRY_POINT for docker container
> ----------------------------------------
>
>                 Key: YARN-7654
>                 URL: https://issues.apache.org/jira/browse/YARN-7654
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: yarn
>    Affects Versions: 3.1.0
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>            Priority: Blocker
>
> Docker image may have ENTRY_POINT predefined, but this is not supported in 
> the current implementation.  It would be nice if we can detect existence of 
> {{launch_command}} and base on this variable launch docker container in 
> different ways:
> h3. Launch command exists
> {code}
> docker run [image]:[version]
> docker exec [container_id] [launch_command]
> {code}
> h3. Use ENTRY_POINT
> {code}
> docker run [image]:[version]
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to