forked from YotpoLtd/metorikku
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (58 loc) · 1.68 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
version: '3'
services:
spark-submit:
image: metorikku/metorikku:standalone
environment:
- SUBMIT_COMMAND=spark-submit --conf spark.sql.warehouse.dir=/warehouse --class com.yotpo.metorikku.Metorikku metorikku.jar -c examples/hive/movies.yaml
- HIVE_METASTORE_URI=hive:9083
entrypoint:
- /scripts/entrypoint-submit.sh
volumes:
- ./output/:/examples/output/
depends_on:
- spark-master
- spark-worker
- hive
hive-tester:
image: metorikku/metorikku:standalone
environment:
- SUBMIT_COMMAND=spark-submit --conf spark.sql.warehouse.dir=/warehouse --class com.yotpo.metorikku.MetorikkuTester metorikku.jar --test-settings examples/hive/movies_test.yaml
- HIVE_METASTORE_URI=hive:9083
volumes:
- ./output/:/examples/output/
- ./warehouse:/warehouse
entrypoint:
- /scripts/entrypoint-submit.sh
depends_on:
- spark-master
- spark-worker
spark-master:
image: metorikku/metorikku:standalone
entrypoint:
- /scripts/entrypoint-master.sh
logging:
driver: none
spark-worker:
image: metorikku/metorikku:standalone
entrypoint:
- /scripts/entrypoint-worker.sh
volumes:
- ./output/:/examples/output/
- ./warehouse:/warehouse
logging:
driver: none
hive:
image: metorikku/hive
environment:
- CONNECTION_URL=jdbc:mysql://hive-db:3306/hive?useSSL=false
- CONNECTION_USER_NAME=root
- CONNECTION_PASSWORD=pass
- WAREHOUSE_DIR=file:///warehouse
- WAIT_HOSTS=hive-db:3306
depends_on:
- hive-db
hive-db:
image: mysql:5.7.25
environment:
- MYSQL_ROOT_PASSWORD=pass
- MYSQL_DATABASE=hive