-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.hive.yaml
79 lines (71 loc) · 1.76 KB
/
docker-compose.hive.yaml
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
networks:
default:
name: cartolafc_network
services:
hadoop:
build: hadoop
healthcheck:
test: wget --spider localhost:9870 || exit 1
timeout: 90s
ports:
- 9870:9870
- 8020:8020
volumes:
- ./config:/etc/hadoop
hadoop_datanode:
build: hadoop
command: hdfs datanode
healthcheck:
test: wget --spider localhost:9864 || exit 1
timeout: 90s
depends_on:
- hadoop
volumes:
- ./config:/etc/hadoop
hadoop_setup:
build: hadoop
command: ./start-folders.sh
depends_on:
- hadoop_datanode
volumes:
- ./config:/etc/hadoop
hive:
build: hive
command: hive --service hiveserver2
depends_on:
- hive_postgres
- hive_metastore
- hadoop_datanode
healthcheck:
test: nc -z localhost 10000
ports:
- 10000:10000
- 10002:10002
volumes:
- ./config:/etc/hive
hive_metastore:
build: hive
command: ./start-metastore.sh
depends_on:
- hive_postgres
- hadoop_datanode
healthcheck:
test: nc -z localhost 9083
volumes:
- ./config:/etc/hive
hive_postgres:
environment:
POSTGRES_USER: hive
POSTGRES_PASSWORD: hive
POSTGRES_DB: hive
healthcheck:
test: pg_isready -U postgres
image: postgres:13-alpine
hive_setup:
build: hive
command: ./start-tables.sh
depends_on:
- hive
volumes:
- ./config:/etc/hive
version: '3.8'