<?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 Apache Nifi not working with multiple notes in zookeeper string in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-not-working-with-multiple-notes-in-zookeeper/m-p/300919#M220439</link>
    <description>&lt;P&gt;I want to setup cluster of 3 nodes. Suppose below are the 3 nodes,&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Node 1&lt;/STRONG&gt; = 192.168.0.10&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Node 2&lt;/STRONG&gt; = 192.168.0.20&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Node 3&lt;/STRONG&gt; = 192.168.0.30&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I am able to setup the cluster by using below zookeeper string in the respective nodes,&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Node 1&lt;/STRONG&gt; = 192.168.0.10:2181&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Node 2&lt;/STRONG&gt; = 192.168.0.10:2181,192.168.0.20:2181&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Node 3&lt;/STRONG&gt; = 192.168.0.10:2181,192.168.0.20:2181,192.168.0.30:2181&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;If &lt;STRONG&gt;Node 1&lt;/STRONG&gt; is up and running and I am turning of any other node than &lt;STRONG&gt;Node 1&lt;/STRONG&gt;, then cluster is working without any issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But problem with above configuration is, if I am turning off the &lt;STRONG&gt;Node 1&lt;/STRONG&gt; (192.168.0.10), then cluster is failing with the connection loss status. As &lt;STRONG&gt;Node 2&lt;/STRONG&gt; and &lt;STRONG&gt;Node 3&lt;/STRONG&gt; waiting for &lt;STRONG&gt;Node 1&lt;/STRONG&gt; which is down which turns into cluster failure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I am trying to setup same zookeeper string for all the node at once and trying to start server one by one.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Node 1&lt;/STRONG&gt; = 192.168.0.10:2181,192.168.0.20:2181,192.168.0.30:2181&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Node 2&lt;/STRONG&gt; = 192.168.0.10:2181,192.168.0.20:2181,192.168.0.30:2181&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Node 3&lt;/STRONG&gt; = 192.168.0.10:2181,192.168.0.20:2181,192.168.0.30:2181&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;So now &lt;STRONG&gt;Node 2&lt;/STRONG&gt; and &lt;STRONG&gt;Node 3&lt;/STRONG&gt; is already down (like never started). And I am trying to start &lt;STRONG&gt;Node 1&lt;/STRONG&gt; with zookeeper string "&lt;STRONG&gt;&lt;FONT size="2"&gt;192.168.0.10:2181,192.168.0.20:2181,192.168.0.30:2181&lt;/FONT&gt;&lt;/STRONG&gt;".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Node 1&lt;/STRONG&gt; not starting it all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am kind of new to the Nifi and working on clustering part. I am able to achieve all the clustering activity by taking reference of available resources and by doing some POC work. But only this is problem where I stuck and not able to move ahead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using SSL Nifi Clustering. Can anyone please help me out with this ? Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Aug 2020 21:13:52 GMT</pubDate>
    <dc:creator>yogesh_shisode</dc:creator>
    <dc:date>2020-08-05T21:13:52Z</dc:date>
    <item>
      <title>Apache Nifi not working with multiple notes in zookeeper string</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-not-working-with-multiple-notes-in-zookeeper/m-p/300919#M220439</link>
      <description>&lt;P&gt;I want to setup cluster of 3 nodes. Suppose below are the 3 nodes,&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Node 1&lt;/STRONG&gt; = 192.168.0.10&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Node 2&lt;/STRONG&gt; = 192.168.0.20&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Node 3&lt;/STRONG&gt; = 192.168.0.30&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I am able to setup the cluster by using below zookeeper string in the respective nodes,&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Node 1&lt;/STRONG&gt; = 192.168.0.10:2181&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Node 2&lt;/STRONG&gt; = 192.168.0.10:2181,192.168.0.20:2181&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Node 3&lt;/STRONG&gt; = 192.168.0.10:2181,192.168.0.20:2181,192.168.0.30:2181&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;If &lt;STRONG&gt;Node 1&lt;/STRONG&gt; is up and running and I am turning of any other node than &lt;STRONG&gt;Node 1&lt;/STRONG&gt;, then cluster is working without any issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But problem with above configuration is, if I am turning off the &lt;STRONG&gt;Node 1&lt;/STRONG&gt; (192.168.0.10), then cluster is failing with the connection loss status. As &lt;STRONG&gt;Node 2&lt;/STRONG&gt; and &lt;STRONG&gt;Node 3&lt;/STRONG&gt; waiting for &lt;STRONG&gt;Node 1&lt;/STRONG&gt; which is down which turns into cluster failure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I am trying to setup same zookeeper string for all the node at once and trying to start server one by one.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Node 1&lt;/STRONG&gt; = 192.168.0.10:2181,192.168.0.20:2181,192.168.0.30:2181&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Node 2&lt;/STRONG&gt; = 192.168.0.10:2181,192.168.0.20:2181,192.168.0.30:2181&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Node 3&lt;/STRONG&gt; = 192.168.0.10:2181,192.168.0.20:2181,192.168.0.30:2181&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;So now &lt;STRONG&gt;Node 2&lt;/STRONG&gt; and &lt;STRONG&gt;Node 3&lt;/STRONG&gt; is already down (like never started). And I am trying to start &lt;STRONG&gt;Node 1&lt;/STRONG&gt; with zookeeper string "&lt;STRONG&gt;&lt;FONT size="2"&gt;192.168.0.10:2181,192.168.0.20:2181,192.168.0.30:2181&lt;/FONT&gt;&lt;/STRONG&gt;".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Node 1&lt;/STRONG&gt; not starting it all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am kind of new to the Nifi and working on clustering part. I am able to achieve all the clustering activity by taking reference of available resources and by doing some POC work. But only this is problem where I stuck and not able to move ahead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using SSL Nifi Clustering. Can anyone please help me out with this ? Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 21:13:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-not-working-with-multiple-notes-in-zookeeper/m-p/300919#M220439</guid>
      <dc:creator>yogesh_shisode</dc:creator>
      <dc:date>2020-08-05T21:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Nifi not working with multiple notes in zookeeper string</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-not-working-with-multiple-notes-in-zookeeper/m-p/301043#M220496</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80557"&gt;@yogesh_shisode&lt;/a&gt;&amp;nbsp;awesome that you are exploring NiFi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So just to be clear Apache Zookeeper can be considered an external service to help with state management / NiFi clustering&lt;/P&gt;&lt;P&gt;With that said and to make things "flow" better, NiFi allows us to start an embedded zookeeper cluster.&lt;/P&gt;&lt;P&gt;To me it seems that is what you are trying to connect to given the IP examples, so you are trying to use NiFi's embedded Zookeeper capability.&lt;/P&gt;&lt;P&gt;So let's delve a little into zookeeper, we have zookeeper the service that can be single node or multi node.&lt;/P&gt;&lt;P&gt;when in multi node we have a zookeeper ensemble and when we have that we need to maintain a quorum.&lt;/P&gt;&lt;P&gt;This answer is very eloquently explained&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/25174622/difference-between-ensemble-and-quorum-in-zookeeper" target="_blank"&gt;https://stackoverflow.com/questions/25174622/difference-between-ensemble-and-quorum-in-zookeeper&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And with that said please make sure you follow this guide:&amp;nbsp;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#embedded_zookeeper" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#embedded_zookeeper&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In it it discusses howe to configure the NiFi to start up as an embedded zookeeper service and the settings needed to accomplish this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For clarity port 2181 is the zookeeper listening port and depending on how many servers you configured to be your zookeeper servers based of this nifi.properties entry:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;nifi.state.management.embedded.zookeeper.start=false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if it is set to true, then Nifi will start a zookeeper service too and will depend on this setting:&lt;/P&gt;&lt;P&gt;nifi.state.management.embedded.zookeeper.properties=./conf/zookeeper.properties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which is all explained on the link I gave you&amp;nbsp;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#embedded_zookeeper" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#embedded_zookeeper&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AND once you decide who the member nodes of your zookeeper are then all the NiFi's regardless of wether they are zookeeper servers or not should have this property set:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;nifi.zookeeper.connect.string=&lt;/P&gt;&lt;P&gt;^^^ The same on all NiFi's&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And using your IP examples if you want 3 servers to be zookeeper servers, then I would expect this setting to be:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;nifi.zookeeper.connect.string=192.168.0.10:2181,192.168.0.20:2181,192.168.0.30:2181&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And on those servers this setting to be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;nifi.state.management.embedded.zookeeper.start=true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the additional configurations from the Apache NiFi admin guide linked above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 02:27:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-not-working-with-multiple-notes-in-zookeeper/m-p/301043#M220496</guid>
      <dc:creator>DigitalPlumber</dc:creator>
      <dc:date>2020-08-07T02:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Nifi not working with multiple notes in zookeeper string</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-not-working-with-multiple-notes-in-zookeeper/m-p/301048#M220498</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/69192"&gt;@DigitalPlumber&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. As I mentioned earlier I am able to achieve Secure Nifi Clustering. But the problem is if first node is removed out of 3 nodes cluster is getting impacted badly with connection loss.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I was trying one more solution like to have same zookeeper string across the cluster. So now in nifi.properties, zookeeper.properties and state-management.xml file having common entry compared to all other nodes. Like below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;nifi.properties&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;nifi.state.management.configuration.file=./conf/state-management.xml
# The ID of the local state provider
nifi.state.management.provider.local=local-provider
# The ID of the cluster-wide state provider. This will be ignored if NiFi is not clustered but must be populated if running in a cluster.
nifi.state.management.provider.cluster=zk-provider
# Specifies whether or not this instance of NiFi should run an embedded ZooKeeper server
nifi.state.management.embedded.zookeeper.start=true
# Properties file that provides the ZooKeeper properties to use if &amp;lt;nifi.state.management.embedded.zookeeper.start&amp;gt; is set to true
nifi.state.management.embedded.zookeeper.properties=./conf/zookeeper.properties

# web properties #
nifi.web.https.host=192.168.0.10
nifi.web.https.port=2520

# security properties #
nifi.security.keystore=./ext-lib/ssl/keystore.jks
nifi.security.keystoreType=jks
nifi.security.keystorePasswd=CskME7zgbZiR1k/vwlPJcOayK4VPl3+gVIq/ZgD9c
nifi.security.keyPasswd=CskME7zgbiR1k/vwlPJc3OayK4VP3+gVIq/ZgUD9c
nifi.security.truststore=./ext-lib/ssl/truststore.jks
nifi.security.truststoreType=jks
nifi.security.truststorePasswd=dHNilK1qAKsX5ee3e7gcbg/yQQsVSbUrxGG4Lhr7Y
nifi.security.needClientAuth=true
nifi.security.user.authorizer=managed-authorizer
nifi.security.user.login.identity.provider=file-identity-provider
nifi.security.ocsp.responder.url=
nifi.security.ocsp.responder.certificate=

# cluster common properties (all nodes must have same values) #
nifi.cluster.protocol.heartbeat.interval=5 sec
nifi.cluster.protocol.is.secure=true

# cluster node properties (only configure for cluster nodes) #
nifi.cluster.is.node=true
nifi.cluster.node.address=192.168.0.10
nifi.cluster.node.protocol.port=2510
nifi.cluster.node.protocol.threads=10
nifi.cluster.node.protocol.max.threads=50
nifi.cluster.node.event.history.size=25
nifi.cluster.node.connection.timeout=5 sec
nifi.cluster.node.read.timeout=5 sec
nifi.cluster.node.max.concurrent.requests=100
nifi.cluster.firewall.file=
nifi.cluster.flow.election.max.wait.time=1 mins
nifi.cluster.flow.election.max.candidates=10

# cluster load balancing properties #
nifi.cluster.load.balance.host=
nifi.cluster.load.balance.port=6343
nifi.cluster.load.balance.connections.per.node=4
nifi.cluster.load.balance.max.thread.count=8
nifi.cluster.load.balance.comms.timeout=30 sec

# zookeeper properties, used for cluster management #
nifi.zookeeper.connect.string=192.168.0.10:2182,192.168.0.20:2182,192.168.0.30:2182
nifi.zookeeper.connect.timeout=3 secs
nifi.zookeeper.session.timeout=3 secs
nifi.zookeeper.root.node=/nifi&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;zookeeper.properties&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;initLimit=10
autopurge.purgeInterval=24
syncLimit=5
tickTime=2000
dataDir=./ext-lib/zookeeper-home/zookeeper
autopurge.snapRetainCount=30

server.1=192.168.0.10:2777:3777;2182
server.2=192.168.0.20:2777:3777;2182
server.3=192.168.0.30:2777:3777;2182&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;state-management.xml&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;
&amp;lt;stateManagement&amp;gt;
    &amp;lt;local-provider&amp;gt;
        &amp;lt;id&amp;gt;local-provider&amp;lt;/id&amp;gt;
        &amp;lt;class&amp;gt;org.apache.nifi.controller.state.providers.local.WriteAheadLocalStateProvider&amp;lt;/class&amp;gt;
        &amp;lt;property name="Directory"&amp;gt;./state/local&amp;lt;/property&amp;gt;
        &amp;lt;property name="Always Sync"&amp;gt;false&amp;lt;/property&amp;gt;
        &amp;lt;property name="Partitions"&amp;gt;16&amp;lt;/property&amp;gt;
        &amp;lt;property name="Checkpoint Interval"&amp;gt;2 mins&amp;lt;/property&amp;gt;
    &amp;lt;/local-provider&amp;gt;
	
    &amp;lt;cluster-provider&amp;gt;
        &amp;lt;id&amp;gt;zk-provider&amp;lt;/id&amp;gt;
        &amp;lt;class&amp;gt;org.apache.nifi.controller.state.providers.zookeeper.ZooKeeperStateProvider&amp;lt;/class&amp;gt;
        &amp;lt;property name="Connect String"&amp;gt;192.168.0.10:2182,192.168.0.20:2182,192.168.0.30:2182&amp;lt;/property&amp;gt;
        &amp;lt;property name="Root Node"&amp;gt;/nifi&amp;lt;/property&amp;gt;
        &amp;lt;property name="Session Timeout"&amp;gt;10 seconds&amp;lt;/property&amp;gt;
        &amp;lt;property name="Access Control"&amp;gt;Open&amp;lt;/property&amp;gt;
    &amp;lt;/cluster-provider&amp;gt;
&amp;lt;/stateManagement&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now after these configuration if I am moved ahead to start the server then I am getting below continuous errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2020-08-06 22:55:21,397 ERROR [Curator-Framework-0] o.a.c.f.imps.CuratorFrameworkImpl Background operation retry gave up
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss
at org.apache.zookeeper.KeeperException.create(KeeperException.java:102)
at org.apache.curator.framework.imps.CuratorFrameworkImpl.checkBackgroundRetry(CuratorFrameworkImpl.java:862)
at org.apache.curator.framework.imps.CuratorFrameworkImpl.performBackgroundOperation(CuratorFrameworkImpl.java:990)
at org.apache.curator.framework.imps.CuratorFrameworkImpl.backgroundOperationsLoop(CuratorFrameworkImpl.java:943)
at org.apache.curator.framework.imps.CuratorFrameworkImpl.access$300(CuratorFrameworkImpl.java:66)
at org.apache.curator.framework.imps.CuratorFrameworkImpl$4.call(CuratorFrameworkImpl.java:346)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2020-08-06 22:55:21,397 ERROR [Curator-Framework-0] o.a.c.f.imps.CuratorFrameworkImpl Background retry gave up
org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss
at org.apache.curator.framework.imps.CuratorFrameworkImpl.performBackgroundOperation(CuratorFrameworkImpl.java:972)
at org.apache.curator.framework.imps.CuratorFrameworkImpl.backgroundOperationsLoop(CuratorFrameworkImpl.java:943)
at org.apache.curator.framework.imps.CuratorFrameworkImpl.access$300(CuratorFrameworkImpl.java:66)
at org.apache.curator.framework.imps.CuratorFrameworkImpl$4.call(CuratorFrameworkImpl.java:346)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2020-08-06 22:55:21,399 ERROR [Curator-Framework-0] o.a.c.f.imps.CuratorFrameworkImpl Background operation retry gave up
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss
at org.apache.zookeeper.KeeperException.create(KeeperException.java:102)
at org.apache.curator.framework.imps.CuratorFrameworkImpl.checkBackgroundRetry(CuratorFrameworkImpl.java:862)
at org.apache.curator.framework.imps.CuratorFrameworkImpl.performBackgroundOperation(CuratorFrameworkImpl.java:990)
at org.apache.curator.framework.imps.CuratorFrameworkImpl.backgroundOperationsLoop(CuratorFrameworkImpl.java:943)
at org.apache.curator.framework.imps.CuratorFrameworkImpl.access$300(CuratorFrameworkImpl.java:66)
at org.apache.curator.framework.imps.CuratorFrameworkImpl$4.call(CuratorFrameworkImpl.java:346)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above are infinite logs and even it will start the Nifi. Once I am trying to access the nifi from the browser then I am getting cluster connection error message. Please see below screenshot for your reference.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="NiFi Flow - Google Chrome 07-08-2020 10_00_32 (2)_LI.jpg" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/28497i019A4396B4154F91/image-size/large?v=v2&amp;amp;px=999" role="button" title="NiFi Flow - Google Chrome 07-08-2020 10_00_32 (2)_LI.jpg" alt="NiFi Flow - Google Chrome 07-08-2020 10_00_32 (2)_LI.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Its quite surprising for me. As If I am starting the server with in cluster with single zookeeper string, I am able to start without any issue. Single node is getting into cluster properly.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;nifi.properties
nifi.zookeeper.connect.string=192.168.0.10:2182

zookeeper.properties
server.1=192.168.0.10:2777:3777;2182

state-management.xml
&amp;lt;property name="Connect String"&amp;gt;192.168.0.10:2182&amp;lt;/property&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;But When I am moving ahead to add more than one node it is failing.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;nifi.properties
nifi.zookeeper.connect.string=192.168.0.10:2182,192.168.0.20:2182,192.168.0.30:2182


zookeeper.properties
server.1=192.168.0.10:2777:3777;2182
server.2=192.168.0.20:2777:3777;2182
server.3=192.168.0.30:2777:3777;2182


state-management.xml
&amp;lt;property name="Connect String"&amp;gt;192.168.0.10:2182,192.168.0.20:2182,192.168.0.30:2182&amp;lt;/property&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have followed all the steps for the same. If I missed out any of the step then even I won't be able to achieve 1 scenario. Please let me know if I am missing anything. If I am missing any of the configuration then of course it will be really very silly mistake which I am not able to figure it out for now. :).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again thanks&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/69192"&gt;@DigitalPlumber&lt;/a&gt;&amp;nbsp; for taking out time and replying on this thread. Please let me know what solution will work for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 05:14:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-not-working-with-multiple-notes-in-zookeeper/m-p/301048#M220498</guid>
      <dc:creator>yogesh_shisode</dc:creator>
      <dc:date>2020-08-07T05:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Nifi not working with multiple notes in zookeeper string</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-not-working-with-multiple-notes-in-zookeeper/m-p/301119#M220517</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/69192"&gt;@DigitalPlumber&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to give few more details to above my reply. Below is the version of the Nifi I am using for clustering,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NiFi Flow - Google Chrome 08-08-2020 09_25_41 (2)_LI.jpg" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/28524iDD3F46475E7D8C58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NiFi Flow - Google Chrome 08-08-2020 09_25_41 (2)_LI.jpg" alt="NiFi Flow - Google Chrome 08-08-2020 09_25_41 (2)_LI.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also if you can see in the screenshot, this nifi is in clustered with below entries in configuration file,&lt;/P&gt;&lt;PRE&gt;nifi.properties
nifi.zookeeper.connect.string=192.168.0.10:2182

zookeeper.properties
server.1=192.168.0.10:2777:3777;2182

state-management.xml
&amp;lt;property name="Connect String"&amp;gt;192.168.0.10:2182&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;Below below is the screenshot of the clustered node,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NiFi Flow - Google Chrome 08-08-2020 09_25_56 (2)_LI.jpg" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/28525iF43B89603C366DD5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NiFi Flow - Google Chrome 08-08-2020 09_25_56 (2)_LI.jpg" alt="NiFi Flow - Google Chrome 08-08-2020 09_25_56 (2)_LI.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;These all screenshot which I have shared in reply in my both the comments are latest (like are of same day or day before I am commenting).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also on top of it, can you please give me more clarity on zookeeper.properties file node entry. I want to know more about port range which we are providing for node entry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;zookeeper.properties
server.1=192.168.0.10:2777:3777;2182&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2777:3777&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is use of above port range value ?&lt;/P&gt;&lt;P&gt;What is minimum and maximum value for this ?&lt;/P&gt;&lt;P&gt;Is it necessary to have difference of 1000 between these ports ?&amp;nbsp; (3777 - 2777 = 1000)&lt;/P&gt;&lt;P&gt;If we want to change the value of these port range then what is range of it ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 04:02:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-not-working-with-multiple-notes-in-zookeeper/m-p/301119#M220517</guid>
      <dc:creator>yogesh_shisode</dc:creator>
      <dc:date>2020-08-08T04:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Nifi not working with multiple notes in zookeeper string</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-not-working-with-multiple-notes-in-zookeeper/m-p/301445#M220676</link>
      <description>&lt;P&gt;This issue resolved. External ZK did the trick. I am not able to figure the solution with embedded ZK. But using External ZK I am able to achieve the use case which I was trying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is link where you will get few more details on this thread,&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/63339452/apache-nifi-not-working-with-multiple-notes-in-zookeeper-string" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/63339452/apache-nifi-not-working-with-multiple-notes-in-zookeeper-string&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 14:16:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-not-working-with-multiple-notes-in-zookeeper/m-p/301445#M220676</guid>
      <dc:creator>yogesh_shisode</dc:creator>
      <dc:date>2020-08-13T14:16:08Z</dc:date>
    </item>
  </channel>
</rss>

