version: '2.1'
services:
zookeeper-1:
hostname: zookeeper-1
container_name: zookeeper-1
image: zookeeper:3.6
ports:
- 2181:2181
environment:
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=zookeeper-1:2888:3888;2181 server.2=zookeeper-2:2888:3888;2181 server.3=zookeeper-3:2888:3888;2181
volumes:
- type: bind
source: ./zk-cluster/zookeeper-1/data
target: /data
read_only: false
zookeeper-2:
hostname: zookeeper-2
container_name: zookeeper-2
image: zookeeper:3.6
ports:
- 2182:2181
environment:
ZOO_MY_ID: 2
ZOO_SERVERS: server.1=zookeeper-1:2888:3888;2181 server.2=zookeeper-2:2888:3888;2181 server.3=zookeeper-3:2888:3888;2181
volumes:
- type: bind
source: ./zk-cluster/zookeeper-2/data
target: /data
read_only: false
zookeeper-3:
hostname: zookeeper-3
container_name: zookeeper-3
image: zookeeper:3.6
ports:
- 2183:2181
environment:
ZOO_MY_ID: 3
ZOO_SERVERS: server.1=zookeeper-1:2888:3888;2181 server.2=zookeeper-2:2888:3888;2181 server.3=zookeeper-3:2888:3888;2181
volumes:
- type: bind
source: ./zk-cluster/zookeeper-3/data
target: /data
read_only: false
zoo-navi:
image: elkozmon/zoonavigator:1.1.2
ports:
- 9000:9000
environment:
HTTP_PORT: 9000
'Data Engineering > Spark' 카테고리의 다른 글
[Spark] spark cluster + zookeeper 고가용성 테스트 (0) | 2022.06.05 |
---|---|
[Spark] spark standalone cluster + zookeeper cluster 로 고가용성 확보하기 (0) | 2022.06.05 |
[Spark] To set up memory in a spark session (0) | 2022.06.04 |
[Spark] How to use the Global Temporary View (0) | 2022.06.04 |
[Spark] Basic way to use spark data frames with sql query (0) | 2022.06.04 |