DP_IPS=(
127.0.0.1
192.168.1.11
192.168.1.12
192.168.1.13
192.168.1.14
# $NODE1
# $NODE2
# $NODE3
)
for ((i=0; i<${#DP_IPS[*]}; i++)); do
echo ${DP_IPS[$i]}
# zk_id=$(docker ps | grep zookeeper | awk '{print $1}')
# if docker exec $zk_id bash -c "echo mntr | nc ${DP_IPS[$i]} 2181" | grep "zk_version"; then
# result="${result}\n zookeeper ${DP_IPS[$i]} 2181 ok"
# else
# result="${result}\n zookeeper ${DP_IPS[$i]} 2181 error"
# fi
done
for ip in ${MANAGERS[*]} ${WORKERS[*]}; do
done