mesos / hadoop

Hadoop on Mesos
176 stars 80 forks source link

Add support for the native docker containerizer #68

Closed tarnfeld closed 8 years ago

tarnfeld commented 8 years ago

This is an implementation of #49, adding support for the "new" native docker containerized that mesos has had for almost 18 months. There's a new set of options, which should be used separately from the existing external containerizer configuration options.

Here's an example configuration...

<property>
  <name>mapred.mesos.docker.image</name>
  <value>my-registry.com/image/foo:tag</value>
</property>
<property>
  <name>mapred.mesos.docker.privileged</name>
  <value>true</value>
</property>
<property>
  <name>mapred.mesos.docker.force_pull_image</name>
  <value>false</value>
</property>
<property>
  <name>mapred.mesos.docker.parameters</name>
  <value>-e,MY_VAR=value</value>
</property>
<property>
  <name>mapred.mesos.docker.volumes</name>
  <value>/host/path:/container/path:rw</value>
</property>