# docker-hadoop **Repository Path**: liumiao-code/docker-hadoop ## Basic Information - **Project Name**: docker-hadoop - **Description**: 基于Ubuntu14.04,openjdk1.8,hadoop3.3.6,实现docker部署hadoop三节点集权 支持Mac Intel M4芯片 - **Primary Language**: Docker - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-05 - **Last Updated**: 2025-08-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 配置说明 1. 软件版本 1. Ubuntu:14.04 2. open-jdk-8 3. hadoop-3.3.6 4. 访问web需要桌面版Ubuntu docker镜像,因为涉及到的各个容器端口相同,会有冲突的问题。 2. 各节点分配 | hadoop101 | NameNode | JobHistoryServer | NodeManager | | --------- | -------- | ---------------- | ----------------- | | hadoop102 | DataNode | NodeManager | ResourceManager | | hadoop103 | DataNode | NodeManager | SecondaryNameNode | # 使用 1. 构建镜像 ```bash docker build -t hadoop:1.0 . ``` 2. 启动容器 ```bash ./start-container.sh ``` 1. 测试 1. 宿主机浏览器访问并进入Ubuntu桌面版:http://localhost:6080 root/mypassword 2. 打开Ubuntu桌面版浏览器【火狐】:访问 http://hadoop101:9870/explorer.html 1. ![image-20250805154438067](image-20250805154418827.png) 3. 打开Ubuntu桌面版浏览器【火狐】:访问 http://hadoop102:8088 1. ![image-20250805154418827](image-20250805154418827.png)