You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.5 KiB
62 lines
1.5 KiB
5 years ago
|
version: "3"
|
||
|
|
||
|
services:
|
||
|
namenode:
|
||
|
image: bde2020/hadoop-namenode:2.0.0-hadoop3.2.1-java8
|
||
|
container_name: namenode
|
||
|
restart: always
|
||
|
ports:
|
||
|
- 9870:9870
|
||
|
- 9000:9000
|
||
|
volumes:
|
||
|
- hadoop_namenode:/hadoop/dfs/name
|
||
|
environment:
|
||
|
- CLUSTER_NAME=test
|
||
|
env_file:
|
||
|
- ./hadoop.env
|
||
|
|
||
|
datanode:
|
||
|
image: bde2020/hadoop-datanode:2.0.0-hadoop3.2.1-java8
|
||
|
container_name: datanode
|
||
|
restart: always
|
||
|
volumes:
|
||
|
- hadoop_datanode:/hadoop/dfs/data
|
||
|
environment:
|
||
|
SERVICE_PRECONDITION: "namenode:9870"
|
||
|
env_file:
|
||
|
- ./hadoop.env
|
||
|
|
||
|
resourcemanager:
|
||
|
image: bde2020/hadoop-resourcemanager:2.0.0-hadoop3.2.1-java8
|
||
|
container_name: resourcemanager
|
||
|
restart: always
|
||
|
environment:
|
||
|
SERVICE_PRECONDITION: "namenode:9000 namenode:9870 datanode:9864"
|
||
|
env_file:
|
||
|
- ./hadoop.env
|
||
|
|
||
|
nodemanager1:
|
||
|
image: bde2020/hadoop-nodemanager:2.0.0-hadoop3.2.1-java8
|
||
|
container_name: nodemanager
|
||
|
restart: always
|
||
|
environment:
|
||
|
SERVICE_PRECONDITION: "namenode:9000 namenode:9870 datanode:9864 resourcemanager:8088"
|
||
|
env_file:
|
||
|
- ./hadoop.env
|
||
|
|
||
|
historyserver:
|
||
|
image: bde2020/hadoop-historyserver:2.0.0-hadoop3.2.1-java8
|
||
|
container_name: historyserver
|
||
|
restart: always
|
||
|
environment:
|
||
|
SERVICE_PRECONDITION: "namenode:9000 namenode:9870 datanode:9864 resourcemanager:8088"
|
||
|
volumes:
|
||
|
- hadoop_historyserver:/hadoop/yarn/timeline
|
||
|
env_file:
|
||
|
- ./hadoop.env
|
||
|
|
||
|
volumes:
|
||
|
hadoop_namenode:
|
||
|
hadoop_datanode:
|
||
|
hadoop_historyserver:
|