Created 12-20-2017 05:29 AM
I am using the zookeeper provided by HDF for nifi and i do see znodes created for nifi as shown below.
ls /nifi/leaders [Primary Node, Cluster Coordinator]
How can i access the znodes Primary Node and Cluster Coordinator
Any help would be great
Created 12-20-2017 06:59 AM
@ARUN,
You can use the below commands
/usr/hdp/current/zookeeper-client/bin/zkCli.sh -server {zk-host} -c ls "/nifi/leaders/Primary Node" /usr/hdp/current/zookeeper-client/bin/zkCli.sh -server {zk-host} -c ls "/nifi/leaders/Cluster Coordinator" /usr/hdp/current/zookeeper-client/bin/zkCli.sh -server {zk-host} -c get "/nifi/leaders/Primary Node" /usr/hdp/current/zookeeper-client/bin/zkCli.sh -server {zk-host} -c get "/nifi/leaders/Cluster Coordinator"
Thanks,
Aditya
View solution in original post