#!/usr/bin/env bash

W_ITERATIONS=${W_ITERATIONS:-60}
W_PERIOD_SECS=${W_PERIOD_SECS:-1}
W_ZK_ADDRESS=${w_ZK_ADDRESS:-localhost}
W_ZK_PORT=${W_ZK_PORT:-$ZK_PORT}
W_ZK_PORT=${W_ZK_PORT:-2181}

for ((i=0;i<$W_ITERATIONS;i++)); do
    sleep $W_PERIOD_SECS
    echo ruok | nc $W_ZK_ADDRESS $W_ZK_PORT | grep imok && break
done


#!/usr/bin/env bash

W_ITERATIONS=${W_ITERATIONS:-60}
W_PERIOD_SECS=${W_PERIOD_SECS:-1}
W_ZK_ADDRESS=${W_ZK_ADDRESS:-localhost}
W_ZK_PORT=${W_ZK_PORT:-$ZK_PORT}
W_ZK_PORT=${W_ZK_PORT:-2181}

for ((i=0;i<$W_ITERATIONS;i++)); do
    sleep $W_PERIOD_SECS
    echo ruok | nc $W_ZK_ADDRESS $W_ZK_PORT | grep imok && break
done


Fix for zookeeper wait script. A small font issue can lead to so many bugs!
Fix for zookeeper wait script. A small font issue can lead to so many bugs!

Signed-off-by: Marios Andreopoulos <279a4cf6d7f8da1ddc113bb946b9273d9d938683@andmarios.com>
