<?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 Nifi Cluster - Problem to elect a Cluster Coordinator in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Cluster-Problem-to-elect-a-Cluster-Coordinator/m-p/345164#M234400</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having some troubles with Nifi Cluster configuraition (version 1.16.2). Actually, the nodes are up and I can access them via https. But then:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nifi-result.PNG" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34521iDB44F6EBEEEC89F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nifi-result.PNG" alt="nifi-result.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i checked the logs, the error was:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WARN [main] o.a.nifi.controller.StandardFlowService There is currently no Cluster Coordinator. This often happens upon restart of NiFi when running an embedded ZooKeeper. Will register this node to become the active Cluster Coordinator and will attempt to connect to cluster again&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INFO [main] o.a.n.c.l.e.CuratorLeaderElectionManager CuratorLeaderElectionManager[stopped=false] Attempted to register Leader Election for role 'Cluster Coordinator' but this role is already registered&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WARN [Heartbeat Monitor Thread-1] o.a.n.c.l.e.CuratorLeaderElectionManager Unable to determine leader for role 'Cluster Coordinator'; returning null&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried a lot of possible solutions, but i still got the problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My nifi.properties configuration:&lt;/P&gt;&lt;P&gt;nifi.cluster.is.node=true&lt;/P&gt;&lt;P&gt;nifi.cluster.node.address=node1&lt;/P&gt;&lt;P&gt;nifi.cluster.node.protocol.port=9999&lt;/P&gt;&lt;P&gt;nifi.cluster.node.protocol.max.threads=50&lt;/P&gt;&lt;P&gt;nifi.cluster.node.event.history.size=25&lt;/P&gt;&lt;P&gt;nifi.cluster.node.connection.timeout=5 sec&lt;/P&gt;&lt;P&gt;nifi.cluster.node.read.timeout=5 sec&lt;/P&gt;&lt;P&gt;nifi.cluster.node.max.concurrent.requests=100&lt;/P&gt;&lt;P&gt;nifi.cluster.firewall.file=&lt;/P&gt;&lt;P&gt;nifi.cluster.flow.election.max.wait.time=5 mins&lt;/P&gt;&lt;P&gt;nifi.cluster.flow.election.max.candidates=3&lt;/P&gt;&lt;P&gt;nifi.cluster.load.balance.host=&lt;/P&gt;&lt;P&gt;nifi.cluster.load.balance.port=6342&lt;/P&gt;&lt;P&gt;nifi.zookeeper.connect.string=node1:2181,node2:2181,node3:2181&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My zookeeper.propeties configuration&lt;/P&gt;&lt;P&gt;server.1=0.0.0.0:2888:3888;2181&lt;/P&gt;&lt;P&gt;server.2=node2:2888:3888;2181&lt;/P&gt;&lt;P&gt;server.3=node3:2888:3888;2181&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My stage-management.xml configurations:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cluster-provider&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;id&amp;gt;zk-provider&amp;lt;/id&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;class&amp;gt;org.apache.nifi.controller.state.providers.zookeeper.ZooKeeperStateProvider&amp;lt;/class&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="Connect String"&amp;gt;node1:2181,node2:2181,node3:2181&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="Root Node"&amp;gt;/nifi&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="Session Timeout"&amp;gt;10 seconds&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="Access Control"&amp;gt;Open&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/cluster-provider&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2022 21:21:19 GMT</pubDate>
    <dc:creator>_anjos</dc:creator>
    <dc:date>2022-06-07T21:21:19Z</dc:date>
    <item>
      <title>Nifi Cluster - Problem to elect a Cluster Coordinator</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Cluster-Problem-to-elect-a-Cluster-Coordinator/m-p/345164#M234400</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having some troubles with Nifi Cluster configuraition (version 1.16.2). Actually, the nodes are up and I can access them via https. But then:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nifi-result.PNG" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34521iDB44F6EBEEEC89F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nifi-result.PNG" alt="nifi-result.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i checked the logs, the error was:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WARN [main] o.a.nifi.controller.StandardFlowService There is currently no Cluster Coordinator. This often happens upon restart of NiFi when running an embedded ZooKeeper. Will register this node to become the active Cluster Coordinator and will attempt to connect to cluster again&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INFO [main] o.a.n.c.l.e.CuratorLeaderElectionManager CuratorLeaderElectionManager[stopped=false] Attempted to register Leader Election for role 'Cluster Coordinator' but this role is already registered&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WARN [Heartbeat Monitor Thread-1] o.a.n.c.l.e.CuratorLeaderElectionManager Unable to determine leader for role 'Cluster Coordinator'; returning null&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried a lot of possible solutions, but i still got the problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My nifi.properties configuration:&lt;/P&gt;&lt;P&gt;nifi.cluster.is.node=true&lt;/P&gt;&lt;P&gt;nifi.cluster.node.address=node1&lt;/P&gt;&lt;P&gt;nifi.cluster.node.protocol.port=9999&lt;/P&gt;&lt;P&gt;nifi.cluster.node.protocol.max.threads=50&lt;/P&gt;&lt;P&gt;nifi.cluster.node.event.history.size=25&lt;/P&gt;&lt;P&gt;nifi.cluster.node.connection.timeout=5 sec&lt;/P&gt;&lt;P&gt;nifi.cluster.node.read.timeout=5 sec&lt;/P&gt;&lt;P&gt;nifi.cluster.node.max.concurrent.requests=100&lt;/P&gt;&lt;P&gt;nifi.cluster.firewall.file=&lt;/P&gt;&lt;P&gt;nifi.cluster.flow.election.max.wait.time=5 mins&lt;/P&gt;&lt;P&gt;nifi.cluster.flow.election.max.candidates=3&lt;/P&gt;&lt;P&gt;nifi.cluster.load.balance.host=&lt;/P&gt;&lt;P&gt;nifi.cluster.load.balance.port=6342&lt;/P&gt;&lt;P&gt;nifi.zookeeper.connect.string=node1:2181,node2:2181,node3:2181&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My zookeeper.propeties configuration&lt;/P&gt;&lt;P&gt;server.1=0.0.0.0:2888:3888;2181&lt;/P&gt;&lt;P&gt;server.2=node2:2888:3888;2181&lt;/P&gt;&lt;P&gt;server.3=node3:2888:3888;2181&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My stage-management.xml configurations:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cluster-provider&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;id&amp;gt;zk-provider&amp;lt;/id&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;class&amp;gt;org.apache.nifi.controller.state.providers.zookeeper.ZooKeeperStateProvider&amp;lt;/class&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="Connect String"&amp;gt;node1:2181,node2:2181,node3:2181&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="Root Node"&amp;gt;/nifi&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="Session Timeout"&amp;gt;10 seconds&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="Access Control"&amp;gt;Open&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/cluster-provider&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 21:21:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Cluster-Problem-to-elect-a-Cluster-Coordinator/m-p/345164#M234400</guid>
      <dc:creator>_anjos</dc:creator>
      <dc:date>2022-06-07T21:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Cluster - Problem to elect a Cluster Coordinator</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Cluster-Problem-to-elect-a-Cluster-Coordinator/m-p/345241#M234443</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98437"&gt;@_anjos&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried setting server.1=node1:2888:3888;2181&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 19:33:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Cluster-Problem-to-elect-a-Cluster-Coordinator/m-p/345241#M234443</guid>
      <dc:creator>Wynner</dc:creator>
      <dc:date>2022-06-08T19:33:57Z</dc:date>
    </item>
  </channel>
</rss>

