<?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 on 3-node Docker cluster in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-on-3-node-Docker-cluster/m-p/333386#M231429</link>
    <description>&lt;P&gt;I am also seeing the same issue, Any update on this issue ?&lt;/P&gt;</description>
    <pubDate>Sat, 08 Jan 2022 20:13:28 GMT</pubDate>
    <dc:creator>samarsimha</dc:creator>
    <dc:date>2022-01-08T20:13:28Z</dc:date>
    <item>
      <title>Nifi on 3-node Docker cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-on-3-node-Docker-cluster/m-p/318865#M227566</link>
      <description>&lt;P&gt;I am using nifi in production environment and I need to run it in a 3-node cluster on docker (3 separate VMs).&lt;/P&gt;
&lt;P&gt;Have used the following environment variables for Nifi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;version: '3.2'&lt;BR /&gt;&amp;nbsp; services:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; zookeeper:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; hostname: zookeeper&lt;BR /&gt;&amp;nbsp; &amp;nbsp; image: bitnami/zookeeper:latest&lt;BR /&gt;&amp;nbsp; &amp;nbsp; container_name: collections_zookeeper&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ports:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - "22181:2181"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; environment:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - ALLOW_ANONYMOUS_LOGIN=yes&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp; nifi:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; build:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; context: ./nifi&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; dockerfile: Dockerfile&lt;BR /&gt;&amp;nbsp; &amp;nbsp; image: apache/nifi:custom&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ports:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - 8080&lt;BR /&gt;&amp;nbsp; &amp;nbsp; environment:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - NIFI_WEB_HTTP_PORT=8080&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - NIFI_CLUSTER_IS_NODE=true&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - NIFI_CLUSTER_NODE_ADDRESS=1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - NIFI_CLUSTER_NODE_PROTOCOL_PORT=8082&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - NIFI_ZK_CONNECT_STRING=zookeeper:22181&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - NIFI_ELECTION_MAX_WAIT=1 min&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Through this method, I am able to scale up nifi on a single VM, but need to run multiple instances of this on other nodes and run the same in the same cluster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I use the property:&lt;BR /&gt;NIFI_ZK_CONNECT_STRING=&amp;lt;ip_1&amp;gt;:2181,&amp;lt;ip_2:2181&amp;gt;,&amp;lt;ip_3:2181&amp;gt;&lt;/P&gt;
&lt;P&gt;it renders the following stack:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;2021-06-17 07:57:02,424 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;BR /&gt;&lt;STRONG&gt;2021-06-17 07:57:02,424 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;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Any way to run nifi, zookeeper in 3 separate VMs in a cluster?&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 13:55:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-on-3-node-Docker-cluster/m-p/318865#M227566</guid>
      <dc:creator>yashratan</dc:creator>
      <dc:date>2021-06-17T13:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi on 3-node Docker cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-on-3-node-Docker-cluster/m-p/325968#M229760</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am having the same issue. Did you solved it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 08:22:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-on-3-node-Docker-cluster/m-p/325968#M229760</guid>
      <dc:creator>GPol</dc:creator>
      <dc:date>2021-10-01T08:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi on 3-node Docker cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-on-3-node-Docker-cluster/m-p/326128#M229783</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/89568"&gt;@yashratan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible your nifi is configured to run the embedded zookeeper despite your trying to connect to your own zookeepers? Check if the nifi.state.management.embedded.zookeeper.start property in your nifi.properties file is set to true.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check if you are able to communicate with all your zookeepers from each of your nodes. This definitely seems like an issue communicating with your ZKs.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 22:56:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-on-3-node-Docker-cluster/m-p/326128#M229783</guid>
      <dc:creator>Green_</dc:creator>
      <dc:date>2021-10-02T22:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi on 3-node Docker cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-on-3-node-Docker-cluster/m-p/333386#M231429</link>
      <description>&lt;P&gt;I am also seeing the same issue, Any update on this issue ?&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jan 2022 20:13:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-on-3-node-Docker-cluster/m-p/333386#M231429</guid>
      <dc:creator>samarsimha</dc:creator>
      <dc:date>2022-01-08T20:13:28Z</dc:date>
    </item>
  </channel>
</rss>

