forked from vladErmakov07/bigdata-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
149 lines (136 loc) · 3.31 KB
/
docker-compose.yaml
File metadata and controls
149 lines (136 loc) · 3.31 KB
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
version: "3.8"
services:
namenode:
build:
context: hadoop/.
target: build_hadoop
hostname: namenode
# Сначала запусти меня
# command: ["hdfs", "namenode", "-format", "-force"]
# А уже потом спокойно запускай меня
command: ["hdfs", "namenode"]
env_file:
- ./hadoop.env
ports:
- 9870:9870
volumes:
- hadoop_namenode:/tmp/hadoop-root/
- ./hadoop_conf/etc:/opt/hadoop/etc
datanode1:
build:
context: hadoop/.
target: build_hadoop
hostname: datanode
command: ["hdfs", "datanode"]
env_file:
- ./hadoop.env
ports:
- 9864:9864
volumes:
- hdfs1:/tmp/hadoop-hadoop
- ./hadoop_conf/etc:/opt/hadoop/etc
resourcemanager:
build:
context: hadoop/.
target: build_hadoop
hostname: resourcemanager
command: ["yarn", "resourcemanager"]
ports:
- 8088:8088
volumes:
- resourcemanager:/tmp/hadoop-hadoop
- ./hadoop_conf/etc:/opt/hadoop/etc
nodemanager1:
build:
context: hadoop/.
target: build_hadoop
hostname: nodemanager1
command: ["yarn", "nodemanager"]
ports:
- 19888:19888
- 8042:8042
expose:
- 19888
- 8042
volumes:
- nodemanager1:/tmp/hadoop-hadoop
- ./hadoop_conf/etc:/opt/hadoop/etc
postgres:
image: postgres:10
hostname: postgres
environment:
POSTGRES_DB: 'metastore_db'
POSTGRES_USER: 'hive'
POSTGRES_PASSWORD: 'password'
ports:
- '5432:5432'
volumes:
- hive-db:/var/lib/postgresql
metastore:
build:
context: hadoop/.
target: hive_hadoop
hostname: metastore
# Сначала запусти меня
# command: ["schematool", "--dbType", "postgres", "--initSchema"]
# А уже потом спокойно запускай меня
command: [ "hive", "--service", "metastore" ]
environment:
- HIVE_SERVER2_THRIFT_PORT=10000
ports:
- 9083:9083
expose:
- 9083
volumes:
- ./hadoop_conf/etc:/opt/hadoop/etc
- ./hive_conf:/opt/hive/conf
hiveserver2:
build:
context: hadoop/.
target: hive_hadoop
environment:
- HIVE_SERVER2_THRIFT_PORT=10000
command: [ "hive", "--service", "hiveserver2" , "--hiveconf", "hive.root.logger=INFO,console"]
ports:
- 10000:10000
- 10002:10002
expose:
- 10000
- 10002
volumes:
- ./hadoop_conf/etc:/opt/hadoop/etc
- ./hive_conf:/opt/hive/conf
jupyter:
build:
context: hadoop/.
target: jupyter_hadoop
env_file:
- ./hadoop.env
ports:
- 8888:8888
volumes:
- ./hadoop_conf/etc:/opt/hadoop/etc
- ./notebooks:/opt/notebooks
command: ["jupyter", "notebook", "--allow-root", "--ip", "0.0.0.0"]
# Вот этого монстра запускай на свой страх и риск
# zeppelin:
# build:
# context: hadoop/.
# target: zeppelin_hadoop
# env_file:
# - ./hadoop.env
# ports:
# - 8080:8080
# volumes:
# - ./hadoop_conf/etc:/opt/hadoop/etc
# - ./hive_conf:/opt/hive/conf
# command: ["bash", "/opt/zeppelin/bin/zeppelin.sh"]
networks:
default:
name: yohoho
volumes:
hive-db:
hdfs1:
resourcemanager:
nodemanager1:
hadoop_namenode: