Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 06-29-2017 06:49 PM
Was reading this - https://nifi.apache.org/docs.html ( Configuring State Providers )
Can we specify more than one directory for WriteAheadLocalStateProvider?
E.g. By default it has below property in state-management.xml
<local-provider>
<id>local-provider</id>
<class>org.apache.nifi.controller.state.providers.local.WriteAheadLocalStateProvider</class>
<property name="Directory">/var/lib/nifi/state/local</property>
</local-provider>Can I add one more disk partition as a value of Directory in above xml? If yes, How to do that?
FYI: Below does not work.
<local-provider>
<id>local-provider</id>
<class>org.apache.nifi.controller.state.providers.local.WriteAheadLocalStateProvider</class>
<property name="Directory">/var/lib/nifi/state/local</property>
<property name="Directory">/blahblah</property>
</local-provider>
Created 06-29-2017 06:54 PM
No you can not specify more then one local state directory. There is not much in the way of local state that is store by NiFi, so i am not sure the use case for needing more then one.
Thanks,
Matt
Created 06-29-2017 06:50 PM
Created 06-29-2017 06:54 PM
No you can not specify more then one local state directory. There is not much in the way of local state that is store by NiFi, so i am not sure the use case for needing more then one.
Thanks,
Matt
Created 06-29-2017 06:58 PM
@Matt Clarke - Perfect! Thanks.
Created 06-29-2017 06:59 PM
NiFi allows you to specify multiple of the following:
- Content repositories directories
- Provenance repositories directories
- NiFi lib directories
- Variable registry files
Having multiple of any of these does not mean cloning of any data I going on.
Thanks,
Matt
Created 06-29-2017 07:09 PM
You already answered my next question 🙂
For all above mentioned directories, it stores data in round robin manner like Datanode stores blocks on local disks. Got it.