Skip to content

YARN-1964 Launching containers from docker #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,23 @@ public class YarnConfiguration extends Configuration {
/** The arguments to pass to the health check script.*/
public static final String NM_HEALTH_CHECK_SCRIPT_OPTS =
NM_PREFIX + "health-checker.script.opts";


/** The Docker image name(For DockerContainerExecutor).*/
public static final String NM_DOCKER_CONTAINER_EXECUTOR_IMAGE_NAME =
NM_PREFIX + "docker-container-executor.image-name";

/** Args passed to docker run(For DockerContainerExecutor).*/
public static final String NM_DOCKER_CONTAINER_EXECUTOR_RUN_ARGS =
NM_PREFIX + "docker-container-executor.run-args";

/** The name of the docker executor (For DockerContainerExecutor).*/
public static final String NM_DOCKER_CONTAINER_EXECUTOR_EXEC_NAME =
NM_PREFIX + "docker-container-executor.exec-name";

/** The default docker executor (For DockerContainerExecutor).*/
public static final String NM_DEFAULT_DOCKER_CONTAINER_EXECUTOR_EXEC_NAME =
"docker -H=tcp://0.0.0.0:4243";

/** The path to the Linux container executor.*/
public static final String NM_LINUX_CONTAINER_EXECUTOR_PATH =
NM_PREFIX + "linux-container-executor.path";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<!-- there. If yarn-site.xml does not already exist, create it. -->

<configuration>

<!-- IPC Configs -->
<property>
<description>Factory to create client IPC classes.</description>
Expand Down Expand Up @@ -1113,6 +1113,32 @@
<value>${hadoop.tmp.dir}/yarn-nm-recovery</value>
</property>

<!--Docker configuration-->
<property>
<name>yarn.nodemanager.docker-container-executor.image-name</name>
<value>centos</value>
<description>
This image is used by all nodemanagers to launch containers.
This maybe modified by the users(see below)
</description>
</property>

<property>
<name>yarn.nodemanager.docker-container-executor.run-args</name>
<value>--rm --net=host</value>
<description>
This arguments to pass to the 'docker run' invocation.
</description>
</property>

<property>
<name>yarn.nodemanager.docker-container-executor.exec-name</name>
<value>docker</value>
<description>
Name or path to the Docker client.
</description>
</property>

<!--Map Reduce configuration-->
<property>
<name>yarn.nodemanager.aux-services.mapreduce_shuffle.class</name>
Expand Down
Loading