-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (71 loc) · 1.35 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
version: "3"
services:
master:
container_name: master
hostname: master
image: xuybin/hbase
ports:
- 50070:50070
- 8080:8080
- 8088:8088
- 16010:16010
volumes:
- hdfs-master:/hdfs
networks:
- hbase
environment:
- BKMS=slave1
- ZKS=slave1,slave2,slave3
- SLAVES=slave1,slave2,slave3
slave1:
container_name: slave1
hostname: slave1
image: xuybin/hbase
ports:
- 16031:16030
- 8421:8042
volumes:
- hdfs-slave1:/hdfs
networks:
- hbase
environment:
- BKMS=slave1
- ZKS=slave1,slave2,slave3
- SLAVES=slave1,slave2,slave3
slave2:
container_name: slave2
hostname: slave2
image: xuybin/hbase
ports:
- 16032:16030
- 8422:8042
volumes:
- hdfs-slave2:/hdfs
networks:
- hbase
environment:
- BKMS=slave1
- ZKS=slave1,slave2,slave3
- SLAVES=slave1,slave2,slave3
slave3:
container_name: slave3
hostname: slave3
image: xuybin/hbase
ports:
- 16033:16030
- 8423:8042
volumes:
- hdfs-slave3:/hdfs
networks:
- hbase
environment:
- BKMS=slave1
- ZKS=slave1,slave2,slave3
- SLAVES=slave1,slave2,slave3
networks:
hbase:
volumes:
hdfs-master:
hdfs-slave1:
hdfs-slave2:
hdfs-slave3: