<?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 Re: NiFi Clustering Issue ConnectionLoss Error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/215782#M177692</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13600/johnmteabo.html" nodeid="13600"&gt;@John T&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Did the timeout changes help with the error you were seeing in your NiFi app log with regards to ZK connection loss?&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jun 2018 02:36:52 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2018-06-07T02:36:52Z</dc:date>
    <item>
      <title>NiFi Clustering Issue ConnectionLoss Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/215778#M177688</link>
      <description>&lt;P&gt;Hi Everyone!&lt;/P&gt;&lt;P&gt;I keep getting a: ERROR [Curator-Framework-0] o.a.c.f.imps.CuratorFrameworkImpl Background retry gave up org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss&lt;/P&gt;&lt;P&gt;My EDITABLE config files are here in the associated directories in my google drive below and attached, this is a 3 node cluster:&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/drive/folders/11xM-sz8mUvpaiOOS4aiZ94TQGHHzConF?usp=sharing" target="_blank"&gt;https://drive.google.com/drive/folders/11xM-sz8mUvpaiOOS4aiZ94TQGHHzConF?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I made sure FirewallD was off, all ports used are free, and I followed these guides:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.1.1/bk_administration/content/clustering.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.1.1/bk_administration/content/clustering.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/135820/configuring-an-external-zookeeper-to-work-with-apa.html" target="_blank"&gt;https://community.hortonworks.com/articles/135820/configuring-an-external-zookeeper-to-work-with-apa.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!!&lt;/P&gt;&lt;P&gt;Here's my configs in plain text for reference:&lt;/P&gt;&lt;PRE&gt;###################################################10.0.0.89 Server###################################################### 
 
####ZooKeeper.properties File##### 


clientPort=24489
initLimit=10
autopurge.purgeInterval=24
syncLimit=5
tickTime=2000
dataDir=./state/zookeeper
autopurge.snapRetainCount=30




server.1=10.0.0.89:2888:3888
 server.2=10.0.0.227:2888:3888
 server.3=10.0.0.228:2888:3888
 


 
 
 ####nifi.properties cluster section####
 
# cluster common properties (all nodes must have same values) #
nifi.cluster.protocol.heartbeat.interval=5 sec
nifi.cluster.protocol.is.secure=false


# cluster node properties (only configure for cluster nodes) #
nifi.cluster.is.node=true
nifi.cluster.node.address=10.0.0.89
nifi.cluster.node.protocol.port=24489
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=5 mins
nifi.cluster.flow.election.max.candidates=3


# zookeeper properties, used for cluster management #
nifi.zookeeper.connect.string=10.0.0.89:24489,10.0.0.227:24427,10.0.0.28:24428
nifi.zookeeper.connect.timeout=3 secs
nifi.zookeeper.session.timeout=3 secs
nifi.zookeeper.root.node=/nifi








 
 
###################################################################10.0.0.227 Server################################################################################################
 
####ZooKeeper.properties File#####  
 
 clientPort=24427
initLimit=10
autopurge.purgeInterval=24
syncLimit=5
tickTime=2000
dataDir=./state/zookeeper
autopurge.snapRetainCount=30




server.1=10.0.0.89:2888:3888
 server.2=10.0.0.227:2888:3888
 server.3=10.0.0.228:2888:3888
 
 
#####nifi.properties cluster section ###################


# cluster common properties (all nodes must have same values) #
nifi.cluster.protocol.heartbeat.interval=5 sec
nifi.cluster.protocol.is.secure=false


# cluster node properties (only configure for cluster nodes) #
nifi.cluster.is.node=true
nifi.cluster.node.address=10.0.0.227
nifi.cluster.node.protocol.port=24427
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=5 mins
nifi.cluster.flow.election.max.candidates=3


# zookeeper properties, used for cluster management #
nifi.zookeeper.connect.string=10.0.0.89:24489,10.0.0.227:24427,10.0.0.28:24428
nifi.zookeeper.connect.timeout=3 secs
nifi.zookeeper.session.timeout=3 secs
nifi.zookeeper.root.node=/nifi
 
 
 
 
 
 
##################################################################################10.0.0.228 Server####### ##############################################################################
 
####ZooKeeper.properties File##### 
 
clientPort=24428
initLimit=10
autopurge.purgeInterval=24
syncLimit=5
tickTime=2000
dataDir=./state/zookeeper
autopurge.snapRetainCount=30




server.1=10.0.0.89:2888:3888
 server.2=10.0.0.227:2888:3888
 server.3=10.0.0.228:2888:3888
 
 
 
 #####nifi.properties cluster section ##########
 
 # cluster common properties (all nodes must have same values) #
nifi.cluster.protocol.heartbeat.interval=5 sec
nifi.cluster.protocol.is.secure=false


# cluster node properties (only configure for cluster nodes) #
nifi.cluster.is.node=true
nifi.cluster.node.address=10.0.0.228
nifi.cluster.node.protocol.port=24428
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=5 mins
nifi.cluster.flow.election.max.candidates=3


# zookeeper properties, used for cluster management #
nifi.zookeeper.connect.string=10.0.0.89:24489,10.0.0.227:24427,10.0.0.28:24428
nifi.zookeeper.connect.timeout=3 secs
nifi.zookeeper.session.timeout=3 secs
nifi.zookeeper.root.node=/nifi


&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Jun 2018 11:33:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/215778#M177688</guid>
      <dc:creator>johnmteabo</dc:creator>
      <dc:date>2018-06-05T11:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Clustering Issue ConnectionLoss Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/215779#M177689</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/641/mburgess.html" nodeid="641"&gt;@Matt Burgess&lt;/A&gt;&lt;P&gt; or &lt;A rel="user" href="https://community.cloudera.com/users/525/mclarke.html" nodeid="525"&gt;@Matt Clarke&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 00:53:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/215779#M177689</guid>
      <dc:creator>johnmteabo</dc:creator>
      <dc:date>2018-06-06T00:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Clustering Issue ConnectionLoss Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/215780#M177690</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/13600/johnmteabo.html" nodeid="13600"&gt;@John T&lt;/A&gt;&lt;P&gt;Note: We do not recommend using the embedded ZK in a production environment.&lt;/P&gt;&lt;P&gt;Aside from that connection issues can be expected during any NiFi shutdown/restart because the embedded ZK is shutdown also.  Also the default ZK connection and session timeouts are very aggressive for anything more then a basic setup in ideal environment.&lt;BR /&gt;-&lt;BR /&gt;I recommend changing those to at least 30 secs each.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;I also se that each of your embedded ZK servers are running in different ports (24489, 24427, and 24428), why?  Unusual, but should not be an issue.&lt;/P&gt;&lt;P&gt;Also confirm you created the unique "myid" files in the "./state/zookeeper" directory on each ZK server.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Of course any changes to any of NiFi's config files except logback.xml will require a restart for those changes to take affect.  Once all nodes are back up and connected to cluster, check to see fi you are still seeing connection issues with ZK.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 01:14:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/215780#M177690</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2018-06-06T01:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Clustering Issue ConnectionLoss Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/215781#M177691</link>
      <description>&lt;P&gt;@John how many znodes you have on zookeeper ? One of the reasons for Keeper Exceptions are bigger request / response size between zookeeper and its client component. &lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 03:36:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/215781#M177691</guid>
      <dc:creator>gsharma</dc:creator>
      <dc:date>2018-06-06T03:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Clustering Issue ConnectionLoss Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/215782#M177692</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13600/johnmteabo.html" nodeid="13600"&gt;@John T&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Did the timeout changes help with the error you were seeing in your NiFi app log with regards to ZK connection loss?&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 02:36:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/215782#M177692</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2018-06-07T02:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Clustering Issue ConnectionLoss Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/215783#M177693</link>
      <description>&lt;P&gt;Turns out I had: nifi.state.management.embedded.zookeeper.start=false&lt;/P&gt;&lt;P&gt;Once I changed that to true it worked&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 20:43:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/215783#M177693</guid>
      <dc:creator>johnmteabo</dc:creator>
      <dc:date>2018-06-07T20:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Clustering Issue ConnectionLoss Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/215784#M177694</link>
      <description>&lt;P&gt;@Matt Clarke Hi.I have the same error . Nifi 6 nodes and zk 6 embedded. Thanks in advice &lt;/P&gt;,&lt;P&gt;@Matt Clarke Hi.i have the same error.i have 6 nodes Nifi and 6 embedded Zk.&lt;/P&gt;&lt;P&gt;Thanks in advice &lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 01:05:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/215784#M177694</guid>
      <dc:creator>4pingwin</dc:creator>
      <dc:date>2018-08-31T01:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Clustering Issue ConnectionLoss Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/215785#M177695</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/93235/4pingwin.html" nodeid="93235"&gt;@Serhii
 K
&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Best recommendation I can make is to stop using the embedded ZK capability in NiFi and stand up an external ZK (on 3 different servers ideally) for your NiFi cluster to use.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;The issues come from using embedded ZK&lt;/P&gt;&lt;P&gt;1. If NiFi is stopped or rebooted, ZK also is stopped or restart which can easily cause connection issues across your cluster once you lose ZK quorum.&lt;/P&gt;&lt;P&gt;2. NiFi can be very resource intensive (disk, memory, and CPU) depending on your particular dataflows and data volumes.  This can become an issue when both the ZK and NiFi services are competing for the limited server resources.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 02:44:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/215785#M177695</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2018-08-31T02:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Clustering Issue ConnectionLoss Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/215786#M177696</link>
      <description>&lt;P&gt;@Matt Clarke Thx for answer &lt;/P&gt;&lt;P&gt;1.probably I should remove flow.tar.gz from each node ? And start again ?&lt;/P&gt;&lt;P&gt;2.it's new cluster .from scratch. 8cpu/32memory have each node&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 02:55:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/215786#M177696</guid>
      <dc:creator>4pingwin</dc:creator>
      <dc:date>2018-08-31T02:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Clustering Issue ConnectionLoss Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/293786#M216876</link>
      <description>&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class="tableblock"&gt;nifi.remote.input.http.enabled&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="tableblock"&gt;Specifies whether HTTP Site-to-Site should be enabled on this host. By default, it is set to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;true.&lt;BR /&gt;Whether a Site-to-Site client uses HTTP or HTTPS is determined by&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;nifi.remote.input.secure. If it is set to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;true, then requests are sent as HTTPS to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;nifi.web.https.port. If set to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;false, HTTP requests are sent to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;nifi.web.http.port.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sun, 12 Apr 2020 17:10:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/293786#M216876</guid>
      <dc:creator>Aminsh</dc:creator>
      <dc:date>2020-04-12T17:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Clustering Issue ConnectionLoss Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/293839#M216908</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/76715"&gt;@Aminsh&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am not sure where your response fits in to this thread.&lt;BR /&gt;&lt;BR /&gt;Are you asking a new question here?&lt;BR /&gt;I recommend you start a new thread if that is the case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 16:18:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Clustering-Issue-ConnectionLoss-Error/m-p/293839#M216908</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2020-04-13T16:18:58Z</dc:date>
    </item>
  </channel>
</rss>

