-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·89 lines (89 loc) · 2.17 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: '2'
services:
nifi:
image: mkobit/nifi
ports:
- "8073:8080"
- "8074:8081"
volumes:
- ./nifi:/nifi
cassandra:
image: cassandra
hostname: cassandra
ports:
- "7000:7000"
volumes:
- ./cassandra:/cassandra
- ./cassandra/CassandraData:/var/lib/cassandra
master:
image: dylanmei/zeppelin
command: bash -c "/usr/spark-2.0.1/bin/spark-class org.apache.spark.deploy.master.Master -h master"
# & /usr/zeppelin/bin/zeppelin.sh"
# /usr/zeppelin/bin/install-interpreter.sh --name cassandra
hostname: master
environment:
ZEPPELIN_PORT: 8080
MASTER: spark://master:7077
#MASTER: local[*]
SPARK_CONF_DIR: /conf
SPARK_PUBLIC_DNS: localhost
SPARK_MASTER_WEBUI_PORT: 8075
SPARK_SUBMIT_OPTIONS: " --packages com.datastax.spark:spark-cassandra-connector_2.11:2.0.0-M3"
expose:
- 7001
- 7002
- 7003
- 7004
- 7005
- 7006
- 7077
- 6066
ports:
- 4040:4040
- 6066:6066
- 7077:7077
- 8078:8080
- 8075:8075
volumes:
- ./spark/conf/master:/conf
- ./spark/data:/tmp/data
- ./zeppelin/notebooks:/usr/zeppelin/notebook
- ./zeppelin/data:/usr/zeppelin/data
worker_1:
image: gettyimages/spark
command: bin/spark-class org.apache.spark.deploy.worker.Worker spark://master:7077
hostname: worker_1
environment:
SPARK_CONF_DIR: /conf
SPARK_WORKER_CORES: 1
SPARK_WORKER_MEMORY: 1g
SPARK_WORKER_PORT: 8881
SPARK_WORKER_WEBUI_PORT: 8081
SPARK_PUBLIC_DNS: localhost
links:
- master
expose:
- 7012
- 7013
- 7014
- 7015
- 7016
- 8881
volumes:
- ./spark/conf/worker:/conf
- ./spark/data:/tmp/data
kafka:
image: spotify/kafka
hostname: kafka
environment:
- KAFKA=localhost:9092
- ZOOKEEPER=localhost:2181
- KAFKA_CREATE_TOPICS="test"
expose:
- "2181"
- "9092"
ports:
- 2181:2181
- 9092:9092
volumes:
- ./kafka:/kafka