docker 图像可以使用 hadoop 吗?

Can a docker image use hadoop?

docker图片可以访问hadoop资源吗?例如。提交 YARN 作业并访问 HDFS;类似于 MapR's Datasci. Refinery,但适用于 Hortonworks HDP 3.1。 (可能假设图像将在 hadoop 集群节点上启动)。

在 docker 容器中看到了 hadoop docs 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 docker -ti ... 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 this, but am interested in using Hortonworks HDP 3.1. Ultimately trying to run h2o hadoop。

有人知道这是否可能或可以确认这不可能吗?

是的。只要您有客户端 jar 和适当的配置,类似于容器的边缘节点,它就应该可以工作。