在 docker 容器上运行一个 hadoop 集群

编程入门 行业动态 更新时间:2024-10-25 06:29:54
本文介绍了在 docker 容器上运行一个 hadoop 集群的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想运行一个多节点 hadoop 集群,每个节点都在不同主机上的 docker 容器内.此图像 - github/sequenceiq/hadoop-docker 可以很好地开始hadoop 在伪分布式模式下,修改它以使每个节点位于单独的 ec2 主机上的不同容器中的最简单方法是什么?

I want to run a multi-node hadoop cluster, with each node inside a docker container on a different host. This image - github/sequenceiq/hadoop-docker works well to start hadoop in a pseudo distributed mode, what is the easiest way to modify this to have each node in a different container on a separate ec2 host?

推荐答案

我使用两个容器在两个不同的 ubuntu 主机上运行主节点和从节点.我使用 weave 在容器之间建立了网络.我已经在 docker hub 帐户 div4 上添加了容器的图像.我以同样的方式安装了 hadoop,因为它安装在不同的主机上.我在此处添加了带有 coomands 的两个图像以在它们上运行 haddop:

I did this with two containers running master and slave nodes on two different ubuntu hosts. I did the networking between containers using weave. I have added the images of the containers on docker hub account div4. I installed hadoop in the same way, as its installed on different hosts. I have added the two images with coomands to run haddop on them here:

registry.hub.docker/u/div4/hadoop_master/registry.hub.docker/u/div4/hadoop_slave/.

更多推荐

在 docker 容器上运行一个 hadoop 集群

本文发布于:2023-11-24 10:26:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1624833.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:集群   容器   docker   hadoop

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!