<?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: should we need to restrart nifi everytime when we develop custom processor in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/should-we-need-to-restrart-nifi-everytime-when-we-develop/m-p/179988#M64865</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/20335/sivakarna.html" nodeid="20335"&gt;@siva karna&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Anytime you add, remove, or modify any nar in anyone of Nifi's lib directories, a restart will be needed.  At startup NiFi extracts all those nars in to its work directory.  

To understand if you will lose data, you need to look at method/processors being used it ingest data in your NiFi.  While NiFi is carefully in handling data it already has in its possession, it has not control over data that is being sent to it.  &lt;/P&gt;&lt;P&gt;For example, any listen type processors will not be running so they will not be able to receive data while Nifi is restarting.  Listen type processors that use TCP protocol should fail should trigger service unreachable/unavailable on sending side of connection.  The sender should queue this data and continue to try and resend until service is available again.   Now if you are using a listener that uses UDP protocol, that is a different story.  There is no handshake there and you need to be willing to accept data loss by using that protocol for data transport.&lt;/P&gt;&lt;P&gt;In order to truly answer that question, you need to closely look at how your dataflow is designed to ingest data. NiFi takes care of not losing data once it is in its control as FlowFiles.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2017 21:34:34 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2017-07-13T21:34:34Z</dc:date>
    <item>
      <title>should we need to restrart nifi everytime when we develop custom processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/should-we-need-to-restrart-nifi-everytime-when-we-develop/m-p/179984#M64861</link>
      <description>&lt;P&gt;Should we need to restart nifi cluster everytime when we develop a new custom processor?&lt;/P&gt;&lt;P&gt;Suppose if i have a nifi cluster or single node nifi ,one flowfile process group is processing the data continuosly(realtime data)&lt;/P&gt;&lt;P&gt;Later i want to design a new data flow which contains some custom processors , for that  we should put nar files into the lib folder then we should restart the nifi again ,&lt;/P&gt;&lt;P&gt;so there is an abstraction for the first process group flow file it will stop so we will loss the data .&lt;/P&gt;&lt;P&gt;Is there any way to avoid this,any automation is there ?How we need to configure ,can you please describe me?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 20:27:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/should-we-need-to-restrart-nifi-everytime-when-we-develop/m-p/179984#M64861</guid>
      <dc:creator>siva_karna</dc:creator>
      <dc:date>2017-07-13T20:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: should we need to restrart nifi everytime when we develop custom processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/should-we-need-to-restrart-nifi-everytime-when-we-develop/m-p/179985#M64862</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/20335/sivakarna.html" nodeid="20335"&gt;@siva karna&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am not following the statement "so there is an abstraction for the first process group flow file it will stop so we will loss the data".  Why would stopping a dataflow cause data loss?&lt;/P&gt;&lt;P&gt;NiFi will only read in new nars/jars added to a NiFi lib directory on startup.  There is no option to dynamically add classes during runtime.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 20:57:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/should-we-need-to-restrart-nifi-everytime-when-we-develop/m-p/179985#M64862</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-07-13T20:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: should we need to restrart nifi everytime when we develop custom processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/should-we-need-to-restrart-nifi-everytime-when-we-develop/m-p/179986#M64863</link>
      <description>&lt;P&gt;NiFi stores FlowFile Attributes in the FlowFile repo and FlowFile Content in the Content repo. NiFi knows which queue FlowFiles were in when if it is shutdown. This allows Nifi to reload these FlowFiles back in to those queues and pick up where the dataflow left off after a restart.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 21:10:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/should-we-need-to-restrart-nifi-everytime-when-we-develop/m-p/179986#M64863</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-07-13T21:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: should we need to restrart nifi everytime when we develop custom processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/should-we-need-to-restrart-nifi-everytime-when-we-develop/m-p/179987#M64864</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/525/mclark.html" nodeid="525"&gt;@Matt Clarke&lt;/A&gt; so we should restart nifi ,if we develop any processor , am i correct? &lt;/P&gt;&lt;P&gt;suppose while one dataflow processing data,later  i want to add my custom processor to design another data flow.&lt;/P&gt;&lt;P&gt;then i shoould add that nar file to lib and i should restart nifi,&lt;/P&gt;&lt;P&gt;my doubt was , whatever the time period  between stop and start nifi again, that time period data we could  recieve or not?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 21:19:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/should-we-need-to-restrart-nifi-everytime-when-we-develop/m-p/179987#M64864</guid>
      <dc:creator>siva_karna</dc:creator>
      <dc:date>2017-07-13T21:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: should we need to restrart nifi everytime when we develop custom processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/should-we-need-to-restrart-nifi-everytime-when-we-develop/m-p/179988#M64865</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/20335/sivakarna.html" nodeid="20335"&gt;@siva karna&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Anytime you add, remove, or modify any nar in anyone of Nifi's lib directories, a restart will be needed.  At startup NiFi extracts all those nars in to its work directory.  

To understand if you will lose data, you need to look at method/processors being used it ingest data in your NiFi.  While NiFi is carefully in handling data it already has in its possession, it has not control over data that is being sent to it.  &lt;/P&gt;&lt;P&gt;For example, any listen type processors will not be running so they will not be able to receive data while Nifi is restarting.  Listen type processors that use TCP protocol should fail should trigger service unreachable/unavailable on sending side of connection.  The sender should queue this data and continue to try and resend until service is available again.   Now if you are using a listener that uses UDP protocol, that is a different story.  There is no handshake there and you need to be willing to accept data loss by using that protocol for data transport.&lt;/P&gt;&lt;P&gt;In order to truly answer that question, you need to closely look at how your dataflow is designed to ingest data. NiFi takes care of not losing data once it is in its control as FlowFiles.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 21:34:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/should-we-need-to-restrart-nifi-everytime-when-we-develop/m-p/179988#M64865</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-07-13T21:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: should we need to restrart nifi everytime when we develop custom processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/should-we-need-to-restrart-nifi-everytime-when-we-develop/m-p/179989#M64866</link>
      <description>&lt;P&gt;Thank you for clarified me  &lt;A rel="user" href="https://community.cloudera.com/users/525/mclark.html" nodeid="525"&gt;@Matt Clarke&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 22:13:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/should-we-need-to-restrart-nifi-everytime-when-we-develop/m-p/179989#M64866</guid>
      <dc:creator>siva_karna</dc:creator>
      <dc:date>2017-07-13T22:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: should we need to restrart nifi everytime when we develop custom processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/should-we-need-to-restrart-nifi-everytime-when-we-develop/m-p/179990#M64867</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/20335/sivakarna.html" nodeid="20335"&gt;@siva karna&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Glad to help. If you found I addressed the question, please mark answer as accepted to close this thread.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 22:17:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/should-we-need-to-restrart-nifi-everytime-when-we-develop/m-p/179990#M64867</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-07-13T22:17:13Z</dc:date>
    </item>
  </channel>
</rss>

