<?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 Configuration Error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Cluster-Configuration-Error/m-p/338885#M232957</link>
    <description>&lt;P&gt;Version 1.15.3&lt;/P&gt;
&lt;P&gt;Windows Server 2019 Standard&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;# zookeeper properties, used for cluster management #&lt;BR /&gt;nifi.zookeeper.connect.string=nifi-inf-02:2181,nifi-inf-03:2181&lt;BR /&gt;nifi.zookeeper.connect.timeout=10 secs&lt;BR /&gt;nifi.zookeeper.session.timeout=10 secs&lt;BR /&gt;nifi.zookeeper.root.node=/nifi&lt;BR /&gt;nifi.zookeeper.client.secure=false&lt;BR /&gt;nifi.zookeeper.security.keystore=&lt;BR /&gt;nifi.zookeeper.security.keystoreType=&lt;BR /&gt;nifi.zookeeper.security.keystorePasswd=&lt;BR /&gt;nifi.zookeeper.security.truststore=&lt;BR /&gt;nifi.zookeeper.security.truststoreType=&lt;BR /&gt;nifi.zookeeper.security.truststorePasswd=&lt;BR /&gt;nifi.zookeeper.jute.maxbuffer=&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After configuration of cluster the service spits the following error on startup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the configuration of the Cluster State Provider with ID [zk-provider] in the file D:\nifi-1.15.3\.\conf\state-management.xml&lt;BR /&gt;at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:176)&lt;BR /&gt;at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:101)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1884)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getObjectForBeanInstance(AbstractAutowireCapableBeanFactory.java:1284)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:345)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)&lt;BR /&gt;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:330)&lt;BR /&gt;... 121 common frames omitted&lt;BR /&gt;Caused by: java.lang.IllegalStateException: Could not initialize State Providers because the Cluster State Provider is not valid. The following 1 Validation Errors occurred:&lt;BR /&gt;'Connect String' validated against '' is invalid because Connect String must contain at least one character that is not white space&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2022 20:43:39 GMT</pubDate>
    <dc:creator>Tra</dc:creator>
    <dc:date>2022-03-17T20:43:39Z</dc:date>
    <item>
      <title>NIFI Cluster Configuration Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Cluster-Configuration-Error/m-p/338885#M232957</link>
      <description>&lt;P&gt;Version 1.15.3&lt;/P&gt;
&lt;P&gt;Windows Server 2019 Standard&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;# zookeeper properties, used for cluster management #&lt;BR /&gt;nifi.zookeeper.connect.string=nifi-inf-02:2181,nifi-inf-03:2181&lt;BR /&gt;nifi.zookeeper.connect.timeout=10 secs&lt;BR /&gt;nifi.zookeeper.session.timeout=10 secs&lt;BR /&gt;nifi.zookeeper.root.node=/nifi&lt;BR /&gt;nifi.zookeeper.client.secure=false&lt;BR /&gt;nifi.zookeeper.security.keystore=&lt;BR /&gt;nifi.zookeeper.security.keystoreType=&lt;BR /&gt;nifi.zookeeper.security.keystorePasswd=&lt;BR /&gt;nifi.zookeeper.security.truststore=&lt;BR /&gt;nifi.zookeeper.security.truststoreType=&lt;BR /&gt;nifi.zookeeper.security.truststorePasswd=&lt;BR /&gt;nifi.zookeeper.jute.maxbuffer=&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After configuration of cluster the service spits the following error on startup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the configuration of the Cluster State Provider with ID [zk-provider] in the file D:\nifi-1.15.3\.\conf\state-management.xml&lt;BR /&gt;at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:176)&lt;BR /&gt;at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:101)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1884)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getObjectForBeanInstance(AbstractAutowireCapableBeanFactory.java:1284)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:345)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)&lt;BR /&gt;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:330)&lt;BR /&gt;... 121 common frames omitted&lt;BR /&gt;Caused by: java.lang.IllegalStateException: Could not initialize State Providers because the Cluster State Provider is not valid. The following 1 Validation Errors occurred:&lt;BR /&gt;'Connect String' validated against '' is invalid because Connect String must contain at least one character that is not white space&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 20:43:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Cluster-Configuration-Error/m-p/338885#M232957</guid>
      <dc:creator>Tra</dc:creator>
      <dc:date>2022-03-17T20:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI Cluster Configuration Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Cluster-Configuration-Error/m-p/338887#M232958</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/96647"&gt;@Tra&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you start NiFi in cluster mode (no-standalone), besides configuring ZooKeeper properties in nifi.properties you also need to configure it for State Management in the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;conf/state-management.xml&lt;/FONT&gt; file.&lt;/P&gt;&lt;P&gt;Make sure your zk-provider in that file looks like the example below:&lt;/P&gt;&lt;LI-CODE lang="markup"&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;nifi-inf-02:2181,nifi-inf-03:2181&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;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;P&gt;&lt;EM&gt;--&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Was your question answered? Please take some time to click on "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" below this post.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;If you find a reply useful, say thanks by clicking on the thumbs up button.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 21:33:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Cluster-Configuration-Error/m-p/338887#M232958</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-03-17T21:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI Cluster Configuration Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Cluster-Configuration-Error/m-p/338888#M232959</link>
      <description>&lt;P&gt;Thank you so much!&amp;nbsp; I couldn't find anything on the web about this.&amp;nbsp; You saved the day!!!!!!!!!!!!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 22:01:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Cluster-Configuration-Error/m-p/338888#M232959</guid>
      <dc:creator>Tra</dc:creator>
      <dc:date>2022-03-17T22:01:18Z</dc:date>
    </item>
  </channel>
</rss>

