Fix zk_status check target znode
This commit is contained in:
parent
5764695699
commit
c11f896a60
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue