<?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: Multiple framework NARs discovered. Only one framework is permitted in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Multiple-framework-NARs-discovered-Only-one-framework-is/m-p/376081#M242758</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106206"&gt;@manishg&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You should only be copying over component nars and not of the core or framework nars.&amp;nbsp; You still want your NiFi running with the newer 1.22. core and framework.&amp;nbsp; &amp;nbsp;None of the component nars&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;should&lt;/STRONG&gt;&lt;/EM&gt; be dependent on a specific core or framework nar version.&lt;BR /&gt;&lt;BR /&gt;So start by only including the nars for the components (processors, controller services and reporting tasks) you use and don't copy any other lib.&lt;BR /&gt;&lt;BR /&gt;of course the best approach is to test your flows in new version and make adjustments where needed so that it works in 1.22.&amp;nbsp; Copying over older component nars will simply provide multiple version of the same components in the list of available components in NiFi.&amp;nbsp; You lose out on component enhancement, bug fixes, and security improvements.&amp;nbsp; Additionally,&amp;nbsp; you are likely to run in to more issue down the road as you upgrade to an even newer version.&amp;nbsp; Is your plan to keep adding more nars with each upgrade (1.10, 1.22, 1.23, etc.)?&amp;nbsp; On startup NiFi loads the flow.json.gz and looks for the component class defined in the flow.json.gz with version defined in flow.json.gz.&amp;nbsp; If it does not find that version AND only finds one other version fo the same component class, NiFi will auto switch to using that available version of the component.&amp;nbsp; As soon as you have multiple versions avialable and noe match what is in flow.json.gz at startup, NiFi will NOT pick a new one and instead instantiate a "ghost" processor on the canvas.&amp;nbsp; So you run more risks by not fixing/updating your dataflows to work in the newer version.&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;</description>
    <pubDate>Wed, 06 Sep 2023 21:57:56 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2023-09-06T21:57:56Z</dc:date>
    <item>
      <title>Multiple framework NARs discovered. Only one framework is permitted</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Multiple-framework-NARs-discovered-Only-one-framework-is/m-p/376056#M242749</link>
      <description>&lt;P&gt;For my work, I had to copy nifi 1.10.0 nars into lib folder of nifi 1.22.0. I do this as part of docker image build process.&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-3380" target="_self"&gt;This&lt;/A&gt;&amp;nbsp;work seems to support this.&lt;/P&gt;&lt;P&gt;First, container launch has issues with multiple jetty nars, so I dont't copy them, and jetty issue is gone. But container launch still fails with:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;java.lang.IllegalStateException:&amp;nbsp;Multiple framework NARs discovered. Only one framework is permitted&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is this due to nar versions(1.10.0 and 1.22.0) or do I need some more configuration to make it work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 14:54:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Multiple-framework-NARs-discovered-Only-one-framework-is/m-p/376056#M242749</guid>
      <dc:creator>manishg</dc:creator>
      <dc:date>2023-09-06T14:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple framework NARs discovered. Only one framework is permitted</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Multiple-framework-NARs-discovered-Only-one-framework-is/m-p/376058#M242751</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106206"&gt;@manishg&lt;/a&gt;&amp;nbsp;You should only copy individual nars that you know you need, not ALL 1.10 nars.&amp;nbsp; &amp;nbsp;You error suggest a conflict with 1 or more.&amp;nbsp; &amp;nbsp; That being said, be super careful with the expectation that things from 1.10 will work in 1.22.&amp;nbsp; Each of them would to be tested individually for compatibility in 1.22.x.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 15:00:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Multiple-framework-NARs-discovered-Only-one-framework-is/m-p/376058#M242751</guid>
      <dc:creator>steven-matison</dc:creator>
      <dc:date>2023-09-06T15:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple framework NARs discovered. Only one framework is permitted</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Multiple-framework-NARs-discovered-Only-one-framework-is/m-p/376059#M242752</link>
      <description>&lt;P&gt;Ok. So I would need to copy them one by one and check if container launches. It would be lot of work I guess.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 15:02:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Multiple-framework-NARs-discovered-Only-one-framework-is/m-p/376059#M242752</guid>
      <dc:creator>manishg</dc:creator>
      <dc:date>2023-09-06T15:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple framework NARs discovered. Only one framework is permitted</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Multiple-framework-NARs-discovered-Only-one-framework-is/m-p/376081#M242758</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106206"&gt;@manishg&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You should only be copying over component nars and not of the core or framework nars.&amp;nbsp; You still want your NiFi running with the newer 1.22. core and framework.&amp;nbsp; &amp;nbsp;None of the component nars&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;should&lt;/STRONG&gt;&lt;/EM&gt; be dependent on a specific core or framework nar version.&lt;BR /&gt;&lt;BR /&gt;So start by only including the nars for the components (processors, controller services and reporting tasks) you use and don't copy any other lib.&lt;BR /&gt;&lt;BR /&gt;of course the best approach is to test your flows in new version and make adjustments where needed so that it works in 1.22.&amp;nbsp; Copying over older component nars will simply provide multiple version of the same components in the list of available components in NiFi.&amp;nbsp; You lose out on component enhancement, bug fixes, and security improvements.&amp;nbsp; Additionally,&amp;nbsp; you are likely to run in to more issue down the road as you upgrade to an even newer version.&amp;nbsp; Is your plan to keep adding more nars with each upgrade (1.10, 1.22, 1.23, etc.)?&amp;nbsp; On startup NiFi loads the flow.json.gz and looks for the component class defined in the flow.json.gz with version defined in flow.json.gz.&amp;nbsp; If it does not find that version AND only finds one other version fo the same component class, NiFi will auto switch to using that available version of the component.&amp;nbsp; As soon as you have multiple versions avialable and noe match what is in flow.json.gz at startup, NiFi will NOT pick a new one and instead instantiate a "ghost" processor on the canvas.&amp;nbsp; So you run more risks by not fixing/updating your dataflows to work in the newer version.&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;</description>
      <pubDate>Wed, 06 Sep 2023 21:57:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Multiple-framework-NARs-discovered-Only-one-framework-is/m-p/376081#M242758</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-09-06T21:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple framework NARs discovered. Only one framework is permitted</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Multiple-framework-NARs-discovered-Only-one-framework-is/m-p/376119#M242773</link>
      <description>&lt;P&gt;So I copied only those nars which we use, and container could launch now. Though I have to remove few nars which were causing issues, like&amp;nbsp;nifi-ssl-context-service-nar-1.10.0.nar.&lt;/P&gt;&lt;P&gt;And now existing flows dont have issues with properties which are obsolete in 1.22.0 as 1.10.0 nars are used for those components.&lt;/P&gt;&lt;P&gt;Thanks for all the inputs.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 02:32:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Multiple-framework-NARs-discovered-Only-one-framework-is/m-p/376119#M242773</guid>
      <dc:creator>manishg</dc:creator>
      <dc:date>2023-09-08T02:32:02Z</dc:date>
    </item>
  </channel>
</rss>

