forked from SingularitiesCR/spark-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
27 lines (26 loc) · 948 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
version: "2"
services:
master:
image: derrickoswald/spark-docker
command: start-spark master
hostname: master
ports:
- "4040:4040" # Cluster Manager Web UI
- "6066:6066" # Standalone Master REST port (spark.master.rest.port)
- "7077:7077" # Driver to Standalone Master, as in master = spark://sandbox:7077
- "8020:8020" # DFS Namenode IPC, e.g. hdfs dfs -fs hdfs://sandbox:8020 -ls
- "8080:8080" # Standalone Master Web UI
- "8081:8081" # Standalone Worker Web UI
- "10000:10000" # Thriftserver JDBC port
- "10001:10001" # Thriftserver HTTP protocol JDBC port
- "9866:9866" # DFS Datanode data transfer
- "9870:9870" # DFS Namenode Web UI
- "9864:9864" # DFS Datanode Web UI
worker:
image: derrickoswald/spark-docker
command: start-spark worker master
environment:
SPARK_WORKER_CORES: 1
SPARK_WORKER_MEMORY: 2g
links:
- master