<?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 Provenance, Flowfiles and Processor State persisting through docker container upgrade in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Provenance-Flowfiles-and-Processor-State-persisting/m-p/225767#M187628</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18214/anthonymurphy.html" nodeid="18214"&gt;@Anthony Murphy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;NiFi stores state differently depending on whether your NiFi is installed as cluster or a standalone instance.&lt;/P&gt;&lt;P&gt;With a cluster, NiFi stores state in zookeeper.  As long as your new Nifi points to the same zookeeper or the zookeeper content has been moved to a new zookeeper you are using, state will be preserved.&lt;/P&gt;&lt;P&gt;In a Standalone Nifi install, state is recorded on disk.&lt;/P&gt;&lt;P&gt;You can look in your NiFi's state-management.xml file to see/change the configuration of both the "local-provider" (used by standalone NiFi) or "cluster-provider" (used by Clustered NiFi).  You van change where state is being written to here.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2017 19:44:42 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2017-05-10T19:44:42Z</dc:date>
    <item>
      <title>Nifi Provenance, Flowfiles and Processor State persisting through docker container upgrade</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Provenance-Flowfiles-and-Processor-State-persisting/m-p/225766#M187627</link>
      <description>&lt;P&gt;Hi, I'm running Nifi 1.1.2 on docker and I have some questions about preserving state. We're using ListSFTP and GetSFTP to get some files from a client of ours. At the moment we have nifi.database.directory, nifi.flowfile.repository.directory, nifi.provenance.repository.directory.default pointing to a docker volume that resides on shared storage. Our aim is to make sure that if we need to kill a docker host, or a container that we can pick up where we left off with a new container. At the moment this seems to be working with data provenance, but not with the state of ListSFTP or with the flowfiles themselves. Is there a supported method of doing this with nifi and docker? Or is there some other kind of mechanism that will let us preserve ListSFTP state, Flowfiles and Data Provenance through a reinstall of a nifi docker container?&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 06:51:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Provenance-Flowfiles-and-Processor-State-persisting/m-p/225766#M187627</guid>
      <dc:creator>anthony_murphy</dc:creator>
      <dc:date>2017-05-10T06:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Provenance, Flowfiles and Processor State persisting through docker container upgrade</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Provenance-Flowfiles-and-Processor-State-persisting/m-p/225767#M187628</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18214/anthonymurphy.html" nodeid="18214"&gt;@Anthony Murphy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;NiFi stores state differently depending on whether your NiFi is installed as cluster or a standalone instance.&lt;/P&gt;&lt;P&gt;With a cluster, NiFi stores state in zookeeper.  As long as your new Nifi points to the same zookeeper or the zookeeper content has been moved to a new zookeeper you are using, state will be preserved.&lt;/P&gt;&lt;P&gt;In a Standalone Nifi install, state is recorded on disk.&lt;/P&gt;&lt;P&gt;You can look in your NiFi's state-management.xml file to see/change the configuration of both the "local-provider" (used by standalone NiFi) or "cluster-provider" (used by Clustered NiFi).  You van change where state is being written to here.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 19:44:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Provenance-Flowfiles-and-Processor-State-persisting/m-p/225767#M187628</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-05-10T19:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Provenance, Flowfiles and Processor State persisting through docker container upgrade</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Provenance-Flowfiles-and-Processor-State-persisting/m-p/225768#M187629</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18214/anthonymurphy.html" nodeid="18214"&gt;@Anthony Murphy&lt;/A&gt; &lt;/P&gt;&lt;P&gt;This should be fine if you have the appropriate volumes mapping to the specified directories.  In this case, you should have three separate Docker volumes mapping your host-based shared location to the three directories in question.  This will allow the Docker daemon to write to the external mappings and free it from the container.  You would then invoke a new container with these same mappings and it will pick up where things left off.&lt;/P&gt;&lt;P&gt;If this is how you are attempting things, if you could please comment with your run command, we can certainly debug why things might be coming up short, but running a quick trial on my system, it looks like things are behaving as anticipated.&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 21:52:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Provenance-Flowfiles-and-Processor-State-persisting/m-p/225768#M187629</guid>
      <dc:creator>apiri</dc:creator>
      <dc:date>2017-05-17T21:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Provenance, Flowfiles and Processor State persisting through docker container upgrade</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Provenance-Flowfiles-and-Processor-State-persisting/m-p/225769#M187630</link>
      <description>&lt;P&gt;I tried to run below command to mount a volume for the content repository. However, it always after a few minutes.&lt;/P&gt;&lt;P&gt;$ docker run -it --rm -v ~/nifi-content:/opt/nifi/nifi-1.2.0/content_repository -p 8080-8081:8080-8081 apache/nifi:1.2.0&lt;/P&gt;&lt;P&gt;It seems like file permission issue related with uid.&lt;/P&gt;&lt;P&gt;Would you please suggest how to make the docker container work?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 02:20:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Provenance-Flowfiles-and-Processor-State-persisting/m-p/225769#M187630</guid>
      <dc:creator>alvinuw</dc:creator>
      <dc:date>2017-05-30T02:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Provenance, Flowfiles and Processor State persisting through docker container upgrade</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Provenance-Flowfiles-and-Processor-State-persisting/m-p/269825#M207113</link>
      <description>&lt;P&gt;Is it possible to share your Docker Compose volume mappings for the three directories?&lt;/P&gt;&lt;P&gt;Trying this doesn't work when the container is removed then recreated:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;nifi&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;image&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;apache/nifi:latest&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ports&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;8443:8443&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;environment&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;JAVA_OPTS&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"-Xmx4g"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;volumes&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;nifi-current:/opt/nifi/nifi-current&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I'm trying to maintain templates and state in a standalone Nifi running in Docker Compose&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Sep 2019 12:47:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Provenance-Flowfiles-and-Processor-State-persisting/m-p/269825#M207113</guid>
      <dc:creator>tomp</dc:creator>
      <dc:date>2019-09-05T12:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Provenance, Flowfiles and Processor State persisting through docker container upgrade</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Provenance-Flowfiles-and-Processor-State-persisting/m-p/302774#M221247</link>
      <description>&lt;P&gt;I have put detailed solution description&amp;nbsp;&lt;A title="Docker Solution" href="https://stackoverflow.com/a/63734814/6730346" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should be able to start NiFi &amp;amp; its registry with this docker compose file. It persists several folders on the local disk &amp;amp; rest will be persisted in the docker volume called 'nifi_data' so that it retains the previous state of other folders like&amp;nbsp;content_repository, database_repository, flowfile_repository, provenance_repository, state&amp;nbsp; and work.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 07:49:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Provenance-Flowfiles-and-Processor-State-persisting/m-p/302774#M221247</guid>
      <dc:creator>Maqbool</dc:creator>
      <dc:date>2020-09-14T07:49:30Z</dc:date>
    </item>
  </channel>
</rss>

