title: Can a docker image use hadoop?
body: <p>Can a docker image access hadoop resources? Eg. submit YARN jobs and access HDFS; something like <a href="https://mapr.com/products/data-science-refinery/" rel="nofollow noreferrer">MapR's Datasci. Refinery</a>, but for Hortonworks HDP 3.1. (May assume that the image will be launched on a hadoop cluster node).</p>
  
  <p>Saw the hadoop <a href="https://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/DockerContainers.html" rel="nofollow noreferrer">docs</a> for launching docker applications from hadoop nodes, but was interested in whether could go the "other way" (ie. being able to start a docker image with the conventional <code>docker -ti ...</code> command and have that application be able to run hadoop jars etc. (assuming that the docker image host is a hadoop node itself)). I understand that MapR hadoop has docker images for doing <a href="https://mapr.com/products/data-science-refinery/" rel="nofollow noreferrer">this</a>, but am interested in using Hortonworks HDP 3.1. Ultimately trying to run <a href="http://h2o-release.s3.amazonaws.com/h2o/rel-yau/3/index.html#quickstart-hadoop" rel="nofollow noreferrer">h2o</a> hadoop in a docker container. </p>
  
  <p>Anyone know if this is possible or can confirm that this is not possible?</p>