[
https://issues.apache.org/jira/browse/YARN-9562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16898350#comment-16898350
]
Eric Badger commented on YARN-9562:
-----------------------------------
Hey [~eyang], thanks for trying out the patch! Here are what I believe are the
bare minimum configs necessary to get things up and running. For now, the C
code in YARN-9561 uses docker configs from container-executor.cfg, so the only
thing that you will need to add to that is {{feature.oci.enabled=1}} and then
of course make sure that the mount lists are in line with the mounts you set in
yarn-site.xml
Additionally, I have uploaded the docker-to-squash tool to YARN-9564 which
should help you create the squashFS images on HDFS. It will also set up the
image-tag-to-hash file. See YARN-9564 for more details on that.
{noformat:title=Required Configs}
<property>
<name>yarn.nodemanager.runtime.linux.allowed-runtimes</name>
<value>docker,default,runc</value>
</property>
<property>
<name>yarn.nodemanager.runtime.linux.runc.allowed-images</name>
<value>$Name of image tag</value>
</property>
<property>
<name>yarn.nodemanager.runtime.linux.runc.image-name</name>
<value>$Name of image tag</value>
</property>
<property>
<name>yarn.nodemanager.runtime.linux.runc.image-tag-to-manifest-plugin.image-toplevel-dir</name>
<value>/runc-root</value>
</property>
{noformat}
{noformat:title=Doesn't need to be nscd, but you need some strategy to make
sure that your username can be resolved in the container via its uid.}
<property>
<name>yarn.nodemanager.runtime.linux.runc.default-rw-mounts</name>
<value>/var/run/nscd:/var/run/nscd</value>
</property>
{noformat}
{noformat:title=At least 1 of the following 2 configs needs to be set. If you
use the docker-to-squash tool from YARN 9564 then you should only need to set
the hdfs hash file}
<property>
<name>yarn.nodemanager.runtime.linux.runc.image-tag-to-manifest-plugin.local-hash-file</name>
<value>/home/ebadger/image-tag-to-hash</value>
</property>
<property>
<name>yarn.nodemanager.runtime.linux.runc.image-tag-to-manifest-plugin.hdfs-hash-file</name>
<value>/runc-root/image-tag-to-hash</value>
</property>
{noformat}
> Add Java changes for the new RuncContainerRuntime
> -------------------------------------------------
>
> Key: YARN-9562
> URL: https://issues.apache.org/jira/browse/YARN-9562
> Project: Hadoop YARN
> Issue Type: Sub-task
> Reporter: Eric Badger
> Assignee: Eric Badger
> Priority: Major
> Attachments: YARN-9562.001.patch, YARN-9562.002.patch
>
>
> This JIRA will be used to add the Java changes for the new
> RuncContainerRuntime. This will work off of YARN-9560 to use much of the
> existing DockerLinuxContainerRuntime code once it is moved up into an
> abstract class that can be extended.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]