<?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: Can't enable cluster option for NIFI container in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Can-t-enable-cluster-option-for-NIFI-container/m-p/397761#M249973</link>
    <description>&lt;P&gt;Thank you for your reply. I just tried deploying a NiFi container without modifying the start.sh script, and I found that when I set &lt;STRONG&gt;NIFI_CLUSTER_IS_NODE&lt;/STRONG&gt; to true, the container still gets stuck and then stops. I find this strange—if the container doesn’t support clustering, why does the official image allow this environment variable to be set? I think this is misleading.&lt;/P&gt;&lt;P&gt;I noticed that version 2.0.0 supports setting &lt;STRONG&gt;nifi.cluster.leader.election.implementation&lt;/STRONG&gt; to &lt;STRONG&gt;KubernetesLeaderElectionManager&lt;/STRONG&gt;. Does this require NiFi to be deployed at the same level as Kubernetes, or does NiFi need to be deployed as a pod within Kubernetes? I look forward to your response. Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2024 05:01:25 GMT</pubDate>
    <dc:creator>ZNFY</dc:creator>
    <dc:date>2024-11-20T05:01:25Z</dc:date>
    <item>
      <title>Can't enable cluster option for NIFI container</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-enable-cluster-option-for-NIFI-container/m-p/397713#M249957</link>
      <description>&lt;P&gt;Hi，&lt;/P&gt;&lt;P&gt;I have now deployed NiFi on my Kubernetes cluster, and for ease of learning, I modified the contents of the &lt;STRONG&gt;start.sh&lt;/STRONG&gt; script in the &lt;STRONG&gt;scripts&lt;/STRONG&gt; folder to enable HTTP access. I set all certificate-related content to be empty.&lt;/P&gt;&lt;P&gt;Now, I am encountering an issue: when I try to change the environment variable "&lt;STRONG&gt;NIFI_CLUSTER_IS_NODE"&lt;/STRONG&gt; to "&lt;STRONG&gt;true&lt;/STRONG&gt;", my container fails to start. Strangely, there are no errors in the logs.&lt;/P&gt;&lt;P&gt;When such content appears in the logs, the container stops and attempts to restart, repeatedly going through this restart loop.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZNFY_1-1732018214253.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/42679iAD560288274383FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="ZNFY_1-1732018214253.png" alt="ZNFY_1-1732018214253.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It looks all right, doesn't it? But after this the container just stops.&lt;/P&gt;&lt;P&gt;I am wondering if this is because I enabled HTTP access?&lt;/P&gt;&lt;P&gt;By the way, can I start a NiFi cluster using the embedded ZooKeeper? I didn’t see an option to configure "&lt;STRONG&gt;nifi.state.management.embedded.zookeeper.start&lt;/STRONG&gt;" in the environment variables of the NiFi docker image.&lt;/P&gt;&lt;P&gt;I hope to get your help, thank you very much！&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 12:17:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-enable-cluster-option-for-NIFI-container/m-p/397713#M249957</guid>
      <dc:creator>ZNFY</dc:creator>
      <dc:date>2024-11-19T12:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can't enable cluster option for NIFI container</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-enable-cluster-option-for-NIFI-container/m-p/397721#M249960</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/120782"&gt;@ZNFY&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You may find this other community thread useful for setting up a Docker NiFi cluster:&lt;BR /&gt;&lt;A href="https://community.cloudera.com/t5/Community-Articles/NiFi-cluster-sandbox-on-Docker/ta-p/346271" target="_blank"&gt;https://community.cloudera.com/t5/Community-Articles/NiFi-cluster-sandbox-on-Docker/ta-p/346271&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The Apache NiFi Docker is built around setting up a standalone (non-clustered) instance of NiFi.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community thrive. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 15:00:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-enable-cluster-option-for-NIFI-container/m-p/397721#M249960</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-11-19T15:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can't enable cluster option for NIFI container</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-enable-cluster-option-for-NIFI-container/m-p/397761#M249973</link>
      <description>&lt;P&gt;Thank you for your reply. I just tried deploying a NiFi container without modifying the start.sh script, and I found that when I set &lt;STRONG&gt;NIFI_CLUSTER_IS_NODE&lt;/STRONG&gt; to true, the container still gets stuck and then stops. I find this strange—if the container doesn’t support clustering, why does the official image allow this environment variable to be set? I think this is misleading.&lt;/P&gt;&lt;P&gt;I noticed that version 2.0.0 supports setting &lt;STRONG&gt;nifi.cluster.leader.election.implementation&lt;/STRONG&gt; to &lt;STRONG&gt;KubernetesLeaderElectionManager&lt;/STRONG&gt;. Does this require NiFi to be deployed at the same level as Kubernetes, or does NiFi need to be deployed as a pod within Kubernetes? I look forward to your response. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 05:01:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-enable-cluster-option-for-NIFI-container/m-p/397761#M249973</guid>
      <dc:creator>ZNFY</dc:creator>
      <dc:date>2024-11-20T05:01:25Z</dc:date>
    </item>
  </channel>
</rss>

