-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
198 lines (183 loc) · 5.02 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
version: "3"
services:
airflow:
image: public.ecr.aws/jampp/airflow:3.0.0
volumes:
- ./airflow/conf:/home/airflow/conf/
# Mount these for interactive editing:
# - ./dags:/opt/airflow/dags
# - ./plugins:/opt/airflow/plugins
env_file:
# Override this with your credentials for external services:
- ./airflow/conf/credentials-dev.env
environment:
AWS_ACCESS_KEY_ID: $MINIO_ACCESS_KEY
AWS_SECRET_ACCESS_KEY: $MINIO_SECRET_KEY
S3_ACCESS_KEY: $MINIO_ACCESS_KEY
S3_SECRET_KEY: $MINIO_SECRET_KEY
S3_ENDPOINT: $MINIO_HOST
AIRFLOW__SCHEDULER__STATSD_ON: "True"
AIRFLOW__SCHEDULER__STATSD_HOST: metrics
AIRFLOW__SCHEDULER__STATSD_PREFIX: airflow
AIRFLOW__SCHEDULER__STATSD_PORT: 9125
ports:
- "8080:8080"
networks:
- default
metrics:
image: prom/statsd-exporter
ports:
- "9102:9102"
restart: always
livy:
image: public.ecr.aws/jampp/livy:2.4.0
ports:
- "8998:8998"
restart: always
networks:
- default
namenode:
image: public.ecr.aws/jampp/hdfs-namenode:2.4.0
environment:
CLUSTER_NAME: test
env_file:
- ./hive/hadoop-hive.env
ports:
- "9870:9870"
networks:
- default
datanode:
image: public.ecr.aws/jampp/hdfs-datanode:2.4.0
env_file:
- ./hive/hadoop-hive.env
environment:
SERVICE_PRECONDITION: "namenode:9870"
ports:
- "9864:9864"
networks:
- default
hive-server:
image: public.ecr.aws/jampp/hive:2.4.0
env_file:
- ./hive/hadoop-hive.env
environment:
HIVE_CORE_CONF_javax_jdo_option_ConnectionURL: "jdbc:postgresql://hive-metastore/metastore"
SERVICE_PRECONDITION: "hive-metastore:9083"
HADOOP_CLASSPATH: "/opt/hadoop-3.2.1/share/hadoop/tools/lib/*"
ports:
- "10000:10000"
- "8088:8088"
networks:
- default
hive-metastore:
hostname: hivemetastore
container_name: hive-metastore
image: public.ecr.aws/jampp/hive:2.4.0
env_file:
- ./hive/hadoop-hive.env
command: /opt/hive/bin/hive --service metastore
environment:
SERVICE_PRECONDITION: "namenode:9870 datanode:9864 hive-metastore-postgresql:5432"
ports:
- "9083:9083"
networks:
default:
aliases:
- hivemetastore
hive-metastore-postgresql:
image: bde2020/hive-metastore-postgresql:3.1.0
ports:
- "5432:5432"
networks:
- default
trino:
image: trinodb/trino:370
restart: always
environment:
S3_ACCESS_KEY: $MINIO_ACCESS_KEY
S3_SECRET_KEY: $MINIO_SECRET_KEY
S3_ENDPOINT: $MINIO_HOST
volumes:
- ./trino/conf:/usr/lib/trino/etc
ports:
- "8083:8080"
networks:
- default
minio:
image: minio/minio:RELEASE.2020-10-18T21-54-12Z
entrypoint: sh
command: -c '/usr/bin/minio server /data'
environment:
MINIO_ACCESS_KEY: $MINIO_ACCESS_KEY
MINIO_SECRET_KEY: $MINIO_SECRET_KEY
ports:
- "9000:9000"
networks:
- default
create_buckets:
image: minio/mc:RELEASE.2020-11-17T00-39-14Z
depends_on:
- minio
networks:
- default
volumes:
- ./minio/create_buckets.sh:/create_buckets.sh
# Override this with your own bucket list:
- ./minio/buckets.txt:/buckets.txt
environment:
MINIO_ACCESS_KEY: $MINIO_ACCESS_KEY
MINIO_SECRET_KEY: $MINIO_SECRET_KEY
MINIO_HOST: $MINIO_HOST
entrypoint: sh
command: -c '/create_buckets.sh'
migratron:
image: public.ecr.aws/jampp/migratron:2.4.0
depends_on:
- minio
- hive-metastore-postgresql
- trino
- hive-server
networks:
- default
volumes:
- ./migratron/run_migrations.sh:/run_migrations.sh
# Override this with your own migration paths:
- ./migratron/migration_paths.sh:/migration_paths.sh
# Override with your migrations directory
- ./data/db:/db
entrypoint: [ "sh", "-c", "/run_migrations.sh" ]
download_s3_data:
image: minio/mc:latest
environment:
MINIO_ACCESS_KEY: $MINIO_ACCESS_KEY
MINIO_SECRET_KEY: $MINIO_SECRET_KEY
MINIO_HOST: $MINIO_HOST
S3_ACCESS_KEY: $S3_ACCESS_KEY
S3_SECRET_KEY: $S3_SECRET_KEY
S3_HOST: $S3_HOST
depends_on:
- minio
networks:
- default
volumes:
- ./minio/download_s3_data/download_s3_data.sh:/download_s3_data.sh
# Override this with your own file paths to downdload:
- ./minio/download_s3_data/file_paths.txt:/file_paths.txt
entrypoint: /download_s3_data.sh
create_partitions:
image: public.ecr.aws/jampp/hive:2.4.0
depends_on:
- hive-server
networks:
- default
volumes:
- ./hive/create_partitions/create_partitions.sh:/create_partitions.sh
# Override this with your own table names to repair:
- ./hive/create_partitions/table_names.txt:/opt/table_names.txt
entrypoint: /create_partitions.sh
networks:
default:
name: default-docker-env
ipam:
config:
- subnet: 192.168.241.0/24