Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Accessing znodes on nifi

avatar

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

1 ACCEPTED SOLUTION

avatar
Super Guru

@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

1 REPLY 1

avatar
Super Guru

@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