<?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 start nifi automatically when system boots in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/start-nifi-automatically-when-system-boots/m-p/372241#M241190</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running Nifi on a single Development server. (NAME="Debian GNU/Linux" VERSION_ID="10")&lt;/P&gt;&lt;P&gt;I start the service using command line&amp;nbsp; -&amp;nbsp;&amp;nbsp;bin/nifi.sh start&lt;/P&gt;&lt;P&gt;During the initial phases as i experiment with RAM, CPU and disk i need to restart machine sometimes.&lt;/P&gt;&lt;P&gt;When machine restarted I use above command to start Nifi and I go to UI and start the jobs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way that&lt;/P&gt;&lt;P&gt;1. Nifi process starts automatically when ever system reboots or restarts ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Nifi jobs also start automatically without me running from UI ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can I use startup scripts for this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get ready with production mindset as i soon will be launching.&lt;/P&gt;&lt;P&gt;I want to understand how it is handled in realtime production servers..&lt;/P&gt;&lt;P&gt;Please suggest.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2023 09:49:36 GMT</pubDate>
    <dc:creator>SandyClouds</dc:creator>
    <dc:date>2023-06-07T09:49:36Z</dc:date>
    <item>
      <title>start nifi automatically when system boots</title>
      <link>https://community.cloudera.com/t5/Support-Questions/start-nifi-automatically-when-system-boots/m-p/372241#M241190</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running Nifi on a single Development server. (NAME="Debian GNU/Linux" VERSION_ID="10")&lt;/P&gt;&lt;P&gt;I start the service using command line&amp;nbsp; -&amp;nbsp;&amp;nbsp;bin/nifi.sh start&lt;/P&gt;&lt;P&gt;During the initial phases as i experiment with RAM, CPU and disk i need to restart machine sometimes.&lt;/P&gt;&lt;P&gt;When machine restarted I use above command to start Nifi and I go to UI and start the jobs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way that&lt;/P&gt;&lt;P&gt;1. Nifi process starts automatically when ever system reboots or restarts ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Nifi jobs also start automatically without me running from UI ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can I use startup scripts for this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get ready with production mindset as i soon will be launching.&lt;/P&gt;&lt;P&gt;I want to understand how it is handled in realtime production servers..&lt;/P&gt;&lt;P&gt;Please suggest.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 09:49:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/start-nifi-automatically-when-system-boots/m-p/372241#M241190</guid>
      <dc:creator>SandyClouds</dc:creator>
      <dc:date>2023-06-07T09:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: start nifi automatically when system boots</title>
      <link>https://community.cloudera.com/t5/Support-Questions/start-nifi-automatically-when-system-boots/m-p/372259#M241195</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/71250"&gt;@SandyClouds&lt;/a&gt;&amp;nbsp;You can make nifi run as a service, then add that to startup services.&amp;nbsp; This will ensure that nifi is always running after system reboots.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/getting-started.html#installing-as-a-service" target="_blank" rel="noopener"&gt;https://nifi.apache.org/docs/nifi-docs/html/getting-started.html#installing-as-a-service&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;Installing as a Service&lt;/H3&gt;&lt;DIV class="paragraph lia-indent-padding-left-30px"&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Currently, installing NiFi as a service is supported only for Linux and macOS users. To install the application as a service, navigate to the installation directory in a Terminal window and execute the command&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;bin/nifi.sh install&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to install the service with the default name&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;nifi. To specify a custom name for the service, execute the command with an optional second argument that is the name of the service. For example, to install NiFi as a service with the name&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;dataflow, use the command&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;bin/nifi.sh install dataflow.&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="paragraph lia-indent-padding-left-30px"&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Once installed, the service can be started and stopped using the appropriate commands, such as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;sudo service nifi start&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;sudo service nifi stop. Additionally, the running status can be checked via&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;sudo service nifi status.&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stopping or starting flows or other actions against flows would need to be done with &lt;A href="https://nifi.apache.org/docs/nifi-docs/html/toolkit-guide.html" target="_blank" rel="noopener"&gt;command line&lt;/A&gt; or &lt;A href="https://nifi.apache.org/docs/nifi-docs/rest-api/index.html" target="_blank" rel="noopener"&gt;nifi rest api&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 14:51:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/start-nifi-automatically-when-system-boots/m-p/372259#M241195</guid>
      <dc:creator>steven-matison</dc:creator>
      <dc:date>2023-06-07T14:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: start nifi automatically when system boots</title>
      <link>https://community.cloudera.com/t5/Support-Questions/start-nifi-automatically-when-system-boots/m-p/372278#M241201</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/71250"&gt;@SandyClouds&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503"&gt;@steven-matison&lt;/a&gt;&amp;nbsp;response if perfect.&lt;BR /&gt;&lt;BR /&gt;Just to add to your second question "2. NiFi jobs also start automatically without me running from UI ?"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NiFi is really designed as an always on data in motion service.&amp;nbsp; NiFi preserves the state (stopped, started, enabled, disabled) of all its components in the flow.json.gz file.&amp;nbsp; On startup of the service, NiFi will load the flow.json.gz, load FlowFiles form the NiFi Repository back in to connection within your dataflow, and return all components to last known state.&amp;nbsp; There is a property in the nifi.properties file "&lt;SPAN&gt;nifi.flowcontroller.autoResumeState=true" that controls this behavior.&amp;nbsp; If you change it from default "true" to "false", NiFi will reset all components to stopped (processors) or disabled (controller services and reporting tasks) on startup.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 19:32:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/start-nifi-automatically-when-system-boots/m-p/372278#M241201</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-06-07T19:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: start nifi automatically when system boots</title>
      <link>https://community.cloudera.com/t5/Support-Questions/start-nifi-automatically-when-system-boots/m-p/372306#M241211</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;Thanks much for clearing my confusions around on - how my jobs running automatically when i restart server.. I encountered restart couple of times but never know this feature. You are awesome!!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 09:11:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/start-nifi-automatically-when-system-boots/m-p/372306#M241211</guid>
      <dc:creator>SandyClouds</dc:creator>
      <dc:date>2023-06-08T09:11:55Z</dc:date>
    </item>
  </channel>
</rss>

