forked from gtoonstra/etl-with-airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-hive.yml
50 lines (50 loc) · 1.53 KB
/
docker-compose-hive.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
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/do-this-first/database_user.sql:/docker-entrypoint-initdb.d/database_user.sql
- ./examples/do-this-first/populate_tables.sql:/docker-entrypoint-initdb.d/populate_tables.sql
hive:
image: cloudera/quickstart:latest
container_name: hive-docker
restart: always
depends_on:
- postgres
ports:
- 8888:8888
- 10000:10000
- 7180:7180
- 8020:8020
hostname: quickstart.cloudera
privileged: true
tty: true
command: /usr/bin/docker-quickstart
webserver:
image: gtoonstra/docker-airflow:1.8.1
container_name: airflow
restart: always
depends_on:
- postgres
- hive
environment:
- LOAD_EX=n
- EXECUTOR=Local
- INSTALL_HIVE=y
volumes:
- ./examples/hive-example/dags:/usr/local/airflow/dags
- ./examples/hive-example/sql:/usr/local/airflow/sql
- ./examples/hive-example/hql:/usr/local/airflow/hql
- ./examples/hive-example/core-site.xml:/core-site.xml
- ./examples/hive-example/hdfs-site.xml:/hdfs-site.xml
- ./examples/hive-example/mapred-site.xml:/mapred-site.xml
ports:
- 8080:8080
command: webserver