forked from lucasmsp/docker-ranger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
173 lines (157 loc) · 4.24 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
version: '3.7'
volumes:
ranger_db_data: {}
es_data: {}
hadoop_namenode: {}
hadoop_datanode: {}
hive_db_data: {}
networks:
default:
external:
name: ranger-env
services:
# ------------
# Serviços para o Ranger
# ------------
db:
image: mysql:5.7
volumes:
- ranger_db_data:/var/lib/mysql
restart: always
container_name: ranger-db
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ranger
MYSQL_USER: ranger
MYSQL_PASSWORD: ranger
expose:
- "3306"
ranger-admin:
image: kadensungbincho/ranger-admin:2.1.0
container_name: ranger-admin
hostname: ranger
depends_on:
- db
volumes:
- ./ranger/admin/bootstrap.sh:/opt/ranger_admin/bootstrap.sh
- ./ranger/admin/install.properties:/opt/ranger_admin/install.properties
command: ["./bootstrap.sh"]
ports:
- "6080:6080"
restart: always
ranger-usersync:
image: kadensungbincho/ranger-usersync:2.1.0
container_name: ranger-usersync
hostname: usersync
depends_on:
- ranger-admin
volumes:
- ./ranger/usersync/bootstrap.sh:/opt/ranger_usersync/bootstrap.sh
- ./ranger/usersync/install.properties:/opt/ranger_usersync/install.properties
command: ["./bootstrap.sh"]
restart: always
es:
image: docker.elastic.co/elasticsearch/elasticsearch:7.5.0
container_name: ranger-es
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "ELASTIC_PASSWORD=elasticsearch"
volumes:
- es_data:/usr/share/elasticsearch/data
ports:
- 9200:9200
# ------------
# Serviços para o HDFS
# ------------
namenode:
image: kadensungbincho/ranger-hadoop-namenode:2.0.0-hadoop3.2.1-java8-ranger2.1.0
container_name: namenode
hostname: namenode
restart: always
ports:
- 9870:9870
- 9000:9000
volumes:
- hadoop_namenode:/hadoop/dfs/name
- ./hdfs/install.properties:/opt/ranger-hdfs-plugin/install.properties
environment:
- CLUSTER_NAME=test
env_file:
- hadoop.env
datanode:
image: bde2020/hadoop-datanode:2.0.0-hadoop3.2.1-java8
container_name: datanode
hostname: datanode
restart: always
volumes:
- hadoop_datanode:/hadoop/dfs/data
environment:
SERVICE_PRECONDITION: "namenode:9870"
env_file:
- hadoop.env
# ------------
# Serviços para o Yarn
# ------------
resourcemanager:
image: bde2020/hadoop-resourcemanager:2.0.0-hadoop3.2.1-java8
container_name: resourcemanager
hostname: resourcemanager
restart: always
environment:
SERVICE_PRECONDITION: "namenode:9000 namenode:9870 datanode:9864"
env_file:
- hadoop.env
nodemanager1:
image: bde2020/hadoop-nodemanager:2.0.0-hadoop3.2.1-java8
container_name: nodemanager
hostname: nodemanager
restart: always
environment:
SERVICE_PRECONDITION: "namenode:9000 namenode:9870 datanode:9864 resourcemanager:8088"
env_file:
- hadoop.env
# ------------
# Serviços para o Hive
# ------------
hive-server:
image: kadensungbincho/ranger-hive:2.0.0-hadoop3.2.1-java8-ranger2.1.0
container_name: hive-server
hostname: hive-server
volumes:
- ./hive/install.properties:/opt/ranger-hive-plugin/install.properties
env_file:
- ./hadoop.env
environment:
SERVICE_PRECONDITION: "hive-metastore:9083"
ports:
- "10000:10000"
hive-metastore:
image: kadensungbincho/ranger-hive:2.0.0-hadoop3.2.1-java8-ranger2.1.0
container_name: hive-metastore
hostname: hive-metastore
env_file:
- ./hadoop.env
command: ["/run.sh", "metastore"]
environment:
SERVICE_PRECONDITION: "namenode:9000 datanode:9864 hive-db:3306"
ports:
- "9083:9083"
hive-db:
image: mysql:8.0.21
container_name: hive-db
hostname: hive-db
volumes:
- hive_db_data:/var/lib/mysql
command: --default-authentication-plugin=mysql_native_password --lower-case-table-names=1
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: metastore
MYSQL_USER: hive
MYSQL_PASSWORD: hive
zoo:
image: zookeeper:3.4.14
restart: always
hostname: zookeeper
ports:
- 2181:2181