Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Accessing znodes on nifi

Solved Go to solution

Accessing znodes on nifi

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

Accepted Solutions
Highlighted

Re: Accessing znodes on nifi

@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
Highlighted

Re: Accessing znodes on nifi

@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

Don't have an account?
Coming from Hortonworks? Activate your account here