41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
version: "3"
|
|
services:
|
|
namenode:
|
|
image: flokkr/hadoop-runner:latest
|
|
hostname: namenode
|
|
volumes:
|
|
- ../../../hadoop-dist/target/hadoop-${VERSION}:/opt/hadoop
|
|
ports:
|
|
- 50070:50070
|
|
- 9870:9870
|
|
environment:
|
|
ENSURE_NAMENODE_DIR: /data/namenode
|
|
env_file:
|
|
- ./docker-config
|
|
command: ["/opt/hadoop/bin/hdfs","namenode"]
|
|
datanode:
|
|
image: flokkr/hadoop-runner:latest
|
|
volumes:
|
|
- ../../../hadoop-dist/target/hadoop-${VERSION}:/opt/hadoop
|
|
ports:
|
|
- 9864
|
|
command: ["/opt/hadoop/bin/hdfs","datanode"]
|
|
ksm:
|
|
image: flokkr/hadoop-runner:latest
|
|
volumes:
|
|
- ../../../hadoop-dist/target/hadoop-${VERSION}:/opt/hadoop
|
|
ports:
|
|
- 9874:9874
|
|
env_file:
|
|
- ./docker-config
|
|
command: ["/opt/hadoop/bin/hdfs","ksm"]
|
|
scm:
|
|
image: flokkr/hadoop-runner:latest
|
|
volumes:
|
|
- ../../../hadoop-dist/target/hadoop-${VERSION}:/opt/hadoop
|
|
ports:
|
|
- 9876:9876
|
|
env_file:
|
|
- ./docker-config
|
|
command: ["/opt/hadoop/bin/hdfs","scm"]
|