Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Solved
Go to solution
Accessing znodes on nifi
Labels:
- Labels:
-
Apache NiFi
-
Cloudera DataFlow (CDF)
Guru
Created ‎12-20-2017 05:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Super Guru
Created ‎12-20-2017 06:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
1 REPLY 1
Super Guru
Created ‎12-20-2017 06:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
