Fix zk_status check target znode

This commit is contained in:
Joshua Boniface 2023-10-22 00:42:25 -04:00
parent 5764695699
commit c11f896a60
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
# {{ ansible_managed }}
echo "<<<zookeeper>>>"
zk_stat=$( /usr/share/zookeeper/bin/zkCli.sh -server $(hostname -s):2181 -q get /primary_node 2>/dev/null )
zk_stat=$( /usr/share/zookeeper/bin/zkCli.sh -server $(hostname -s):2181 -q get /zookeeper 2>/dev/null )
zk_retcode=$?
if [[ ${zk_retcode} -eq 0 ]]; then
echo "Connection succeeded"