forked from gtoonstra/etl-with-airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-datavault2-bigdata.yml
62 lines (62 loc) · 2.62 KB
/
docker-compose-datavault2-bigdata.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
version: '2'
services:
postgres:
image: postgres:9.6
container_name: postgres-docker
environment:
- POSTGRES_USER=airflow
- POSTGRES_PASSWORD=airflow
- POSTGRES_DB=airflow
ports:
- 5432:5432
volumes:
- ./examples/datavault2-bigdata-example/setup/100_restore.sql:/docker-entrypoint-initdb.d/100_restore.sql
- ./examples/datavault2-bigdata-example/setup/200_users.sql:/docker-entrypoint-initdb.d/200_users.sql
- ./examples/datavault2-bigdata-example/setup/300_fixdata.sql:/docker-entrypoint-initdb.d/300_fixdata.sql
- ./examples/datavault2-bigdata-example/setup/data:/docker-entrypoint-initdb.d/data
hive:
image: cloudera/quickstart:latest
container_name: hive-docker
restart: always
depends_on:
- postgres
ports:
- 8888:8888
- 10000:10000
- 7180:7180
- 8020:8020
volumes:
- ./examples/datavault2-bigdata-example/hive-site.xml:/etc/hive/conf.dist/hive-site.xml
- ./jdbc/postgresql-42.2.5.jre7.jar:/usr/share/java/postgresql-42.2.5.jre7.jar
- /tmp/datavault2-bigdata-example:/external
- ./examples/datavault2-bigdata-example/setup/md5-1.0-SNAPSHOT.jar:/usr/lib/hive/lib/md5-1.0-SNAPSHOT.jar
- ./examples/datavault2-bigdata-example/hive-server2:/etc/default/hive-server2
hostname: quickstart.cloudera
privileged: true
tty: true
command: /usr/bin/docker-quickstart
webserver:
image: gtoonstra/docker-airflow:1.0
container_name: airflow
restart: always
depends_on:
- postgres
- hive
environment:
- LOAD_EX=n
- EXECUTOR=Local
- INSTALL_HIVE=y
volumes:
- ./examples/datavault2-bigdata-example/dags:/usr/local/airflow/dags
- ./examples/datavault2-bigdata-example/dataflow:/usr/local/airflow/dataflow
- ./examples/datavault2-bigdata-example/sql:/usr/local/airflow/sql
- ./examples/datavault2-bigdata-example/schema:/usr/local/airflow/schema
- ./examples/datavault2-bigdata-example/core-site.xml:/core-site.xml
- ./examples/datavault2-bigdata-example/hdfs-site.xml:/hdfs-site.xml
- ./examples/datavault2-bigdata-example/mapred-site.xml:/mapred-site.xml
- /tmp/datavault2-bigdata-example:/tmp/datavault2-bigdata-example
- ./examples/datavault2-bigdata-example/requirements.txt:/requirements.txt
- ./jdbc/postgresql-42.2.5.jre7.jar:/usr/lib/sqoop/lib/postgresql-42.2.5.jre7.jar
ports:
- 8080:8080
command: webserver