<?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: Unable to setup NiFi Cluster due to an Error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-setup-NiFi-Cluster-due-to-an-Error/m-p/401584#M251236</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/122439"&gt;@BK84&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The exception is caused by:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Caused by: java.lang.IllegalStateException: The specified class 'org.apache.nifi.controller.state.providers.raft.RaftStateProvider' is not known to this nifi.&lt;/LI-CODE&gt;&lt;P&gt;Your NiFi knows nothing about this class meanung the nifi lib directory does not contain any nar that includes this class:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;org.apache.nifi.controller.state.providers.raft.RaftStateProvider&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;I also see nothing in Apache NiFi Jira nor in the NiFi 2 documentation mentioning this class or any type of raft state provider.&lt;BR /&gt;&lt;BR /&gt;Looking at the properties configured with this provider class, they match the zookeeper properties.&amp;nbsp; So I suspect you should be using this class instead in your stet provider:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;org.apache.nifi.controller.state.providers.zookeeper.ZooKeeperStateProvider&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow and 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;</description>
    <pubDate>Thu, 06 Feb 2025 15:00:22 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2025-02-06T15:00:22Z</dc:date>
    <item>
      <title>Unable to setup NiFi Cluster due to an Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-setup-NiFi-Cluster-due-to-an-Error/m-p/401547#M251216</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Team,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Need help in setting up NiFi Cluster with 3 nodes, while i am trying to setup with below parameters, i am getting error. Please suggest where i am going wrong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NiFi Version:&amp;nbsp;&lt;/STRONG&gt;nifi-2.2.0&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;state-management.xml&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;cluster-provider&amp;gt;&lt;BR /&gt;&amp;lt;id&amp;gt;cluster-provider&amp;lt;/id&amp;gt;&lt;BR /&gt;&amp;lt;class&amp;gt;org.apache.nifi.controller.state.providers.raft.RaftStateProvider&amp;lt;/class&amp;gt;&lt;BR /&gt;&amp;lt;property name="Connect String"&amp;gt;Host1_IPAddress:2181,Host2_IPAddress:2181,Host3_IPAddress:2181&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property name="Root Node"&amp;gt;/nifi&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property name="Session Timeout"&amp;gt;10 seconds&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property name="Access Control"&amp;gt;Open&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;/cluster-provider&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NiFi Properties:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;nifi.cluster.is.node=true&lt;BR /&gt;nifi.cluster.node.address=Host1_IPAddress&lt;BR /&gt;nifi.cluster.node.protocol.port=9999&lt;BR /&gt;nifi.cluster.flow.election.max.candidates=3&lt;BR /&gt;nifi.sensitive.props.key=KeyValue&lt;/P&gt;&lt;P&gt;nifi.state.management.provider.cluster=cluster-provider&lt;BR /&gt;nifi.web.https.host=localhost&lt;BR /&gt;nifi.web.https.port=8444&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.nifi.components.state.StateManagerProvider]: Factory method 'stateManagerProvider' threw exception with message: Cannot create CLUSTER Provider of type org.apache.nifi.controller.state.providers.raft.RaftStateProvider&lt;BR /&gt;at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:199)&lt;BR /&gt;at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:88)&lt;BR /&gt;at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:168)&lt;BR /&gt;at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)&lt;BR /&gt;... 65 common frames omitted&lt;BR /&gt;Caused by: java.lang.RuntimeException: Cannot create CLUSTER Provider of type org.apache.nifi.controller.state.providers.raft.RaftStateProvider&lt;BR /&gt;at org.apache.nifi.controller.state.manager.StandardStateManagerProvider.createStateProvider(StandardStateManagerProvider.java:289)&lt;BR /&gt;at org.apache.nifi.controller.state.manager.StandardStateManagerProvider.createClusteredStateProvider(StandardStateManagerProvider.java:156)&lt;BR /&gt;at org.apache.nifi.controller.state.manager.StandardStateManagerProvider.create(StandardStateManagerProvider.java:122)&lt;BR /&gt;at org.apache.nifi.framework.configuration.ManagerConfiguration.stateManagerProvider(ManagerConfiguration.java:83)&lt;BR /&gt;at org.apache.nifi.framework.configuration.ManagerConfiguration$$SpringCGLIB$$0.CGLIB$stateManagerProvider$2(&amp;lt;generated&amp;gt;)&lt;BR /&gt;at org.apache.nifi.framework.configuration.ManagerConfiguration$$SpringCGLIB$$FastClass$$1.invoke(&amp;lt;generated&amp;gt;)&lt;BR /&gt;at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)&lt;BR /&gt;at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:348)&lt;BR /&gt;at org.apache.nifi.framework.configuration.ManagerConfiguration$$SpringCGLIB$$0.stateManagerProvider(&amp;lt;generated&amp;gt;)&lt;BR /&gt;at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)&lt;BR /&gt;at java.base/java.lang.reflect.Method.invoke(Method.java:580)&lt;BR /&gt;at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:171)&lt;BR /&gt;... 68 common frames omitted&lt;BR /&gt;Caused by: java.lang.IllegalStateException: The specified class 'org.apache.nifi.controller.state.providers.raft.RaftStateProvider' is not known to this nifi.&lt;BR /&gt;at org.apache.nifi.controller.state.manager.StandardStateManagerProvider.instantiateStateProvider(StandardStateManagerProvider.java:389)&lt;BR /&gt;at org.apache.nifi.controller.state.manager.StandardStateManagerProvider.createStateProvider(StandardStateManagerProvider.java:287)&lt;BR /&gt;... 79 common frames omitted&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 05:09:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-setup-NiFi-Cluster-due-to-an-Error/m-p/401547#M251216</guid>
      <dc:creator>BK84</dc:creator>
      <dc:date>2025-02-06T05:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to setup NiFi Cluster due to an Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-setup-NiFi-Cluster-due-to-an-Error/m-p/401584#M251236</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/122439"&gt;@BK84&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The exception is caused by:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Caused by: java.lang.IllegalStateException: The specified class 'org.apache.nifi.controller.state.providers.raft.RaftStateProvider' is not known to this nifi.&lt;/LI-CODE&gt;&lt;P&gt;Your NiFi knows nothing about this class meanung the nifi lib directory does not contain any nar that includes this class:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;org.apache.nifi.controller.state.providers.raft.RaftStateProvider&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;I also see nothing in Apache NiFi Jira nor in the NiFi 2 documentation mentioning this class or any type of raft state provider.&lt;BR /&gt;&lt;BR /&gt;Looking at the properties configured with this provider class, they match the zookeeper properties.&amp;nbsp; So I suspect you should be using this class instead in your stet provider:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;org.apache.nifi.controller.state.providers.zookeeper.ZooKeeperStateProvider&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow and 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;</description>
      <pubDate>Thu, 06 Feb 2025 15:00:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-setup-NiFi-Cluster-due-to-an-Error/m-p/401584#M251236</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-02-06T15:00:22Z</dc:date>
    </item>
  </channel>
</rss>

