<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question External zookeeper and nifi cluster connection issue in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/External-zookeeper-and-nifi-cluster-connection-issue/m-p/402614#M251723</link>
    <description>&lt;P&gt;i have issue in connecting external zookeeper and nifi cluster , i have 3 nodes like zookeepernode1&amp;nbsp;zookeepernode2&amp;nbsp;zookeepernode3 and nifinode1 and nifinode2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;nifiuser@zookeepernode3:~$&lt;/STRONG&gt; &lt;FONT color="#FF6600"&gt;/opt/zookeeper/bin/zkServer.sh status&lt;/FONT&gt;&lt;BR /&gt;/usr/bin/java&lt;BR /&gt;ZooKeeper JMX enabled by default&lt;BR /&gt;Using config: /opt/zookeeper/bin/../conf/zoo.cfg&lt;BR /&gt;myid could not be determined, will not able to locate clientPort in the server configs.&lt;BR /&gt;Client port found: 2181. Client address: localhost. Client SSL: false.&lt;BR /&gt;Mode: &lt;STRONG&gt;follower&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@zookeepernode1:~# &lt;/STRONG&gt;&lt;FONT color="#FF6600"&gt;/opt/zookeeper/bin/zkServer.sh status&lt;/FONT&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;ZooKeeper JMX enabled by default&lt;BR /&gt;Using config: /opt/zookeeper/bin/../conf/zoo.cfg&lt;BR /&gt;Client port not found in static config file. Looking in dynamic config file.&lt;BR /&gt;grep: : No such file or directory&lt;BR /&gt;Client port not found in the server configs&lt;BR /&gt;Client port found: 2181. Client address: localhost. Client SSL: false.&lt;BR /&gt;Mode: &lt;STRONG&gt;follower&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@zookeepernode2:/opt/zookeeper/logs# &lt;FONT color="#FF6600"&gt;/opt/zookeeper/bin/zkServer.sh status&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;ZooKeeper JMX enabled by default&lt;BR /&gt;Using config: /opt/zookeeper/bin/../conf/zoo.cfg&lt;BR /&gt;Client port not found in static config file. Looking in dynamic config file.&lt;BR /&gt;grep: : No such file or directory&lt;BR /&gt;Client port not found in the server configs&lt;BR /&gt;Client port found: 2181. Client address: localhost. Client SSL: false.&lt;BR /&gt;Mode: &lt;STRONG&gt;leader&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;checking nifi logs [since both nodes logs are same so pasting logs from nifinode2]&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@nifinode2:~# &lt;FONT color="#FF6600"&gt;tail -f /opt/nifi/logs/nifi-app.log&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;2025-02-17 16:05:41,069 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty channel is disconnected: [id: 0x41871c79&lt;BR /&gt;, L:/53.13.138.69:55258 ! R:zookeepernode2/53.13.138.72:2181]&lt;BR /&gt;2025-02-17 16:05:41,069 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty channel is told closing&lt;BR /&gt;2025-02-17 16:05:41,111 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty SSL handler added for channel: [id: 0x29&lt;BR /&gt;83cd7a]&lt;BR /&gt;2025-02-17 16:05:41,113 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty channel is connected: [id: 0x2983cd7a, L&lt;BR /&gt;:/53.13.138.69:57908 - R:zookeepernode1/53.13.138.71:2181]&lt;BR /&gt;2025-02-17 16:05:41,114 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty channel is disconnected: [id: 0x2983cd7a&lt;BR /&gt;, L:/53.13.138.69:57908 ! R:zookeepernode1/53.13.138.71:2181]&lt;BR /&gt;2025-02-17 16:05:41,114 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty channel is told closing&lt;BR /&gt;2025-02-17 16:05:41,157 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty SSL handler added for channel: [id: 0x80&lt;BR /&gt;2bf7fc]&lt;BR /&gt;2025-02-17 16:05:41,158 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty channel is connected: [id: 0x802bf7fc, L&lt;BR /&gt;:/53.13.138.69:38350 - R:zookeepernode3/53.13.247.198:2181]&lt;BR /&gt;2025-02-17 16:05:41,159 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty channel is disconnected: [id: 0x802bf7fc&lt;BR /&gt;, L:/53.13.138.69:38350 ! R:zookeepernode3/53.13.247.198:2181]&lt;BR /&gt;2025-02-17 16:05:41,159 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty channel is told closing&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;here are my configurations in Nifi.properties&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;# zookeeper properties, used for cluster management #&lt;/STRONG&gt;&lt;BR /&gt;nifi.zookeeper.connect.string=zookeepernode1:2181,zookeepernode2:2181,zookeepernode3:2181&lt;BR /&gt;nifi.zookeeper.connect.timeout=10 secs&lt;BR /&gt;nifi.zookeeper.session.timeout=10 secs&lt;BR /&gt;nifi.zookeeper.root.node=/nifi&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;root@nifinode1:/opt/nifi/conf# &lt;/STRONG&gt;&lt;FONT color="#FF6600"&gt;cat ./zookeeper.properties&lt;/FONT&gt;&lt;BR /&gt;initLimit=10&lt;BR /&gt;autopurge.purgeInterval=24&lt;BR /&gt;syncLimit=5&lt;BR /&gt;tickTime=2000&lt;BR /&gt;dataDir=./state/zookeeper&lt;BR /&gt;autopurge.snapRetainCount=30&lt;BR /&gt;server.1=zookeepernode1:2888:3888;2181&lt;BR /&gt;server.2=zookeepernode2:2888:3888;2181&lt;BR /&gt;server.3=zookeepernode3:2888:3888;2181&lt;BR /&gt;&lt;BR /&gt;also i have myid file created properly in all 3 zookeeper nodes as 1 2 and 3 and there&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@zookeepernode1:~# ls /var/lib/zookeeper/&lt;/STRONG&gt;&lt;BR /&gt;myid version-2&lt;BR /&gt;&lt;STRONG&gt;root@zookeepernode1:~# cat /var/lib/zookeeper/myid&lt;/STRONG&gt;&lt;BR /&gt;1&lt;BR /&gt;same but id will be 2 and 3 respectively in other nodes.&lt;BR /&gt;please do help me here . your response will be appreciated&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2025 11:06:47 GMT</pubDate>
    <dc:creator>pavanshettyg5</dc:creator>
    <dc:date>2025-02-20T11:06:47Z</dc:date>
    <item>
      <title>External zookeeper and nifi cluster connection issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/External-zookeeper-and-nifi-cluster-connection-issue/m-p/402614#M251723</link>
      <description>&lt;P&gt;i have issue in connecting external zookeeper and nifi cluster , i have 3 nodes like zookeepernode1&amp;nbsp;zookeepernode2&amp;nbsp;zookeepernode3 and nifinode1 and nifinode2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;nifiuser@zookeepernode3:~$&lt;/STRONG&gt; &lt;FONT color="#FF6600"&gt;/opt/zookeeper/bin/zkServer.sh status&lt;/FONT&gt;&lt;BR /&gt;/usr/bin/java&lt;BR /&gt;ZooKeeper JMX enabled by default&lt;BR /&gt;Using config: /opt/zookeeper/bin/../conf/zoo.cfg&lt;BR /&gt;myid could not be determined, will not able to locate clientPort in the server configs.&lt;BR /&gt;Client port found: 2181. Client address: localhost. Client SSL: false.&lt;BR /&gt;Mode: &lt;STRONG&gt;follower&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@zookeepernode1:~# &lt;/STRONG&gt;&lt;FONT color="#FF6600"&gt;/opt/zookeeper/bin/zkServer.sh status&lt;/FONT&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;ZooKeeper JMX enabled by default&lt;BR /&gt;Using config: /opt/zookeeper/bin/../conf/zoo.cfg&lt;BR /&gt;Client port not found in static config file. Looking in dynamic config file.&lt;BR /&gt;grep: : No such file or directory&lt;BR /&gt;Client port not found in the server configs&lt;BR /&gt;Client port found: 2181. Client address: localhost. Client SSL: false.&lt;BR /&gt;Mode: &lt;STRONG&gt;follower&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@zookeepernode2:/opt/zookeeper/logs# &lt;FONT color="#FF6600"&gt;/opt/zookeeper/bin/zkServer.sh status&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;ZooKeeper JMX enabled by default&lt;BR /&gt;Using config: /opt/zookeeper/bin/../conf/zoo.cfg&lt;BR /&gt;Client port not found in static config file. Looking in dynamic config file.&lt;BR /&gt;grep: : No such file or directory&lt;BR /&gt;Client port not found in the server configs&lt;BR /&gt;Client port found: 2181. Client address: localhost. Client SSL: false.&lt;BR /&gt;Mode: &lt;STRONG&gt;leader&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;checking nifi logs [since both nodes logs are same so pasting logs from nifinode2]&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@nifinode2:~# &lt;FONT color="#FF6600"&gt;tail -f /opt/nifi/logs/nifi-app.log&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;2025-02-17 16:05:41,069 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty channel is disconnected: [id: 0x41871c79&lt;BR /&gt;, L:/53.13.138.69:55258 ! R:zookeepernode2/53.13.138.72:2181]&lt;BR /&gt;2025-02-17 16:05:41,069 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty channel is told closing&lt;BR /&gt;2025-02-17 16:05:41,111 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty SSL handler added for channel: [id: 0x29&lt;BR /&gt;83cd7a]&lt;BR /&gt;2025-02-17 16:05:41,113 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty channel is connected: [id: 0x2983cd7a, L&lt;BR /&gt;:/53.13.138.69:57908 - R:zookeepernode1/53.13.138.71:2181]&lt;BR /&gt;2025-02-17 16:05:41,114 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty channel is disconnected: [id: 0x2983cd7a&lt;BR /&gt;, L:/53.13.138.69:57908 ! R:zookeepernode1/53.13.138.71:2181]&lt;BR /&gt;2025-02-17 16:05:41,114 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty channel is told closing&lt;BR /&gt;2025-02-17 16:05:41,157 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty SSL handler added for channel: [id: 0x80&lt;BR /&gt;2bf7fc]&lt;BR /&gt;2025-02-17 16:05:41,158 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty channel is connected: [id: 0x802bf7fc, L&lt;BR /&gt;:/53.13.138.69:38350 - R:zookeepernode3/53.13.247.198:2181]&lt;BR /&gt;2025-02-17 16:05:41,159 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty channel is disconnected: [id: 0x802bf7fc&lt;BR /&gt;, L:/53.13.138.69:38350 ! R:zookeepernode3/53.13.247.198:2181]&lt;BR /&gt;2025-02-17 16:05:41,159 INFO [epollEventLoopGroup-4-1] o.apache.zookeeper.ClientCnxnSocketNetty channel is told closing&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;here are my configurations in Nifi.properties&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;# zookeeper properties, used for cluster management #&lt;/STRONG&gt;&lt;BR /&gt;nifi.zookeeper.connect.string=zookeepernode1:2181,zookeepernode2:2181,zookeepernode3:2181&lt;BR /&gt;nifi.zookeeper.connect.timeout=10 secs&lt;BR /&gt;nifi.zookeeper.session.timeout=10 secs&lt;BR /&gt;nifi.zookeeper.root.node=/nifi&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;root@nifinode1:/opt/nifi/conf# &lt;/STRONG&gt;&lt;FONT color="#FF6600"&gt;cat ./zookeeper.properties&lt;/FONT&gt;&lt;BR /&gt;initLimit=10&lt;BR /&gt;autopurge.purgeInterval=24&lt;BR /&gt;syncLimit=5&lt;BR /&gt;tickTime=2000&lt;BR /&gt;dataDir=./state/zookeeper&lt;BR /&gt;autopurge.snapRetainCount=30&lt;BR /&gt;server.1=zookeepernode1:2888:3888;2181&lt;BR /&gt;server.2=zookeepernode2:2888:3888;2181&lt;BR /&gt;server.3=zookeepernode3:2888:3888;2181&lt;BR /&gt;&lt;BR /&gt;also i have myid file created properly in all 3 zookeeper nodes as 1 2 and 3 and there&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;root@zookeepernode1:~# ls /var/lib/zookeeper/&lt;/STRONG&gt;&lt;BR /&gt;myid version-2&lt;BR /&gt;&lt;STRONG&gt;root@zookeepernode1:~# cat /var/lib/zookeeper/myid&lt;/STRONG&gt;&lt;BR /&gt;1&lt;BR /&gt;same but id will be 2 and 3 respectively in other nodes.&lt;BR /&gt;please do help me here . your response will be appreciated&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 11:06:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/External-zookeeper-and-nifi-cluster-connection-issue/m-p/402614#M251723</guid>
      <dc:creator>pavanshettyg5</dc:creator>
      <dc:date>2025-02-20T11:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: External zookeeper and nifi cluster connection issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/External-zookeeper-and-nifi-cluster-connection-issue/m-p/403448#M252075</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/124166"&gt;@pavanshettyg5&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;But looking at the error messages when running zkServer.sh status on the ZooKeeper nodes: on zookeepernode1 and 2, there's a message: "Client port not found in static config file. Looking in dynamic config file." Then a grep error: "grep: : No such file or directory". This suggests that the static zoo.cfg is missing the clientPort entry, and the dynamic configuration file (which is probably specified via dynamicConfigFile in zoo.cfg) is either not present or misconfigured.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;To resolve the ZooKeeper and NiFi connectivity issues, follow these steps and hopefully that will resolve your nifi connectivity issue&lt;/P&gt;&lt;H3&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;Step 1: Configure ZooKeeper to Bind to All Interfaces&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ZooKeeper nodes are binding to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;localhost, preventing remote connections from NiFi.&lt;BR /&gt;&lt;STRONG&gt;Fix:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Update&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;zoo.cfg&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on each ZooKeeper node to bind to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;0..0.0.0&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(all interfaces).&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;Edit&amp;nbsp;&lt;/STRONG&gt;zoo.cfg&amp;nbsp;on each ZooKeeper node:&lt;/P&gt;&lt;LI-SPOILER&gt;vi /opt/zookeeper/conf/zoo.cfg&lt;/LI-SPOILER&gt;&lt;P&gt;2.&amp;nbsp;&lt;STRONG&gt;Add/Modify&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;these lines&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-SPOILER&gt;clientPort=2181&lt;BR /&gt;clientPortAddress=0.0.0.0&lt;/LI-SPOILER&gt;&lt;P&gt;3.&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;Restart ZooKeeper&lt;/STRONG&gt;&amp;nbsp;on each node:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-SPOILER&gt;/opt/zookeeper/bin/zkServer.sh restart&lt;/LI-SPOILER&gt;&lt;H3&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;Step 2: Verify ZooKeeper Configuration&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;After restarting, check the status&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-SPOILER&gt;/opt/zookeeper/bin/zkServer.sh status&lt;/LI-SPOILER&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Expected Output:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;Client address: 0.0.0.0(not localhost).&lt;SPAN&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;One node should beleader, others follower.&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;Step 3: Check ZooKeeper Network Connectivity&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;From&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;NiFi nodes&lt;/STRONG&gt;, test connectivity to ZooKeeper:&lt;/P&gt;&lt;LI-SPOILER&gt;telnet zookeepernode1 2181&lt;BR /&gt;telnet zookeepernode2 2181&lt;BR /&gt;telnet zookeepernode3 2181&lt;/LI-SPOILER&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;If connections fail, check&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;firewalls/security groups&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to allow traffic on port&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;2181.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;Step 4: Validate ZooKeeper Dynamic Configuration (If Applicable)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;If using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;dynamic reconfiguration&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;1. Ensure the dynamic config file (e.g.,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;zoo_dynamic.cfg) has entries like&lt;/P&gt;&lt;LI-SPOILER&gt;server.1=zookeepernode1:2888:3888:participant;zookeepernode1:2181&lt;BR /&gt;server.2=zookeepernode2:2888:3888:participant;zookeepernode2:2181&lt;BR /&gt;server.3=zookeepernode3:2888:3888:participant;zookeepernode3:2181&lt;/LI-SPOILER&gt;&lt;P&gt;&lt;SPAN&gt;2. Confirm the static&amp;nbsp;&lt;/SPAN&gt;zoo.cfg&lt;SPAN&gt;&amp;nbsp;references the dynamic file:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-SPOILER&gt;dynamicConfigFile=/opt/zookeeper/conf/zoo_dynamic.cfg&lt;/LI-SPOILER&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;Step 5: Verify NiFi Configuration&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Ensure&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;nifi.properties&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;points to the correct ZooKeeper ensemble:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;FONT size="3"&gt;nifi.zookeeper.connect.string=zookeepernode1:2181,zookeepernode2:2181,zookeepernode3:2181&lt;/FONT&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;Step 6: Restart NiFi Services&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Restart NiFi on all nodes:&lt;/P&gt;&lt;LI-SPOILER&gt;/opt/nifi/bin/nifi.sh restart&lt;/LI-SPOILER&gt;&lt;P&gt;&lt;SPAN&gt;Check logs for successful connections:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-SPOILER&gt;tail -f /opt/nifi/logs/nifi-app.log&lt;/LI-SPOILER&gt;&lt;H3&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;Troubleshooting Summary&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;ZooKeeper Binding:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Ensure ZooKeeper listens on&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;0.0.0.0:2181, not&amp;nbsp;localhost.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Firewall Rules:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Allow traffic between NiFi and ZooKeeper nodes on ports&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;2181,&amp;nbsp;2888, and&amp;nbsp;3888.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Hostname Resolution:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Confirm&amp;nbsp;zookeepernode1,&amp;nbsp;zookeepernode2, and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;zookeepernode3&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;resolve to correct IPs on NiFi nodes.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;By addressing ZooKeeper's binding configuration and network accessibility, NiFi should successfully connect to the ZooKeeper cluster.&lt;BR /&gt;&lt;BR /&gt;Happy hadooping&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 21:09:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/External-zookeeper-and-nifi-cluster-connection-issue/m-p/403448#M252075</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2025-03-03T21:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: External zookeeper and nifi cluster connection issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/External-zookeeper-and-nifi-cluster-connection-issue/m-p/403475#M252078</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20288"&gt;@Shelton&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks a a Lot , i did troubleshooting steps as mentioned above and did restart of the all zookeeper and did some configuration changes like in nifi.properties file&lt;BR /&gt;1. nifi.zookeeper.connect.string=zookeepernode1.x.x.x.net:2181,zookeepernode2.x.x.x.net:2181,zookeepernode3.x.x.x.net:2181&lt;BR /&gt;2.&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;nifi.zookeeper.ssl.client.auth&lt;/SPAN&gt;&lt;SPAN&gt;=none&lt;BR /&gt;&lt;/SPAN&gt;3.&lt;DIV&gt;&lt;SPAN&gt;nifi.state.management.embedded.zookeeper.start&lt;/SPAN&gt;&lt;SPAN&gt;=false&lt;BR /&gt;&lt;BR /&gt;in zookeeper nodes[1-3]:&lt;BR /&gt;1.&amp;nbsp;dataDir=/var/lib/zookeeper from this location myid file was unable to fetch then we did restart of the VM post that it read it.&lt;BR /&gt;2. added&amp;nbsp;&lt;BR /&gt;server.1=zookeepernode1.x.x.x.net:2888:3888&lt;BR /&gt;server.2=zookeepernode2.x.x.x.net:2888:3888&lt;BR /&gt;server.3=zookeepernode3.x.x.x.net:2888:3888&lt;BR /&gt;since this is clustered setup this is must .&lt;BR /&gt;&lt;BR /&gt;Network configuration:&lt;BR /&gt;1. in Network manager enabled all ports like 2181 , 2888 and 3888 in all servers.&lt;BR /&gt;with above changes made zookeeper to work and nifi is able to connect to external zookeeper cluster.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Mar 2025 08:22:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/External-zookeeper-and-nifi-cluster-connection-issue/m-p/403475#M252078</guid>
      <dc:creator>pavanshettyg5</dc:creator>
      <dc:date>2025-03-04T08:22:33Z</dc:date>
    </item>
  </channel>
</rss>

