<?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: Using parameters in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Using-parameters/m-p/311166#M224505</link>
    <description>&lt;P&gt;Variables are deprecated.&amp;nbsp; Parameters are new and easy to externalize.&amp;nbsp; &amp;nbsp;I can use them in devops processes via REST, NiFi CLI and Python.&amp;nbsp; &amp;nbsp;You can programatically build parameter contexts and parameters and assign them to process groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Parameters are getting some upgrades to do some of the more advanced things you mentioned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2020/09/devops-working-with-parameter-contexts.html" target="_blank"&gt;https://www.datainmotion.dev/2020/09/devops-working-with-parameter-contexts.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And they help power stateless nifi.,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2019/11/exploring-apache-nifi-110-parameters.html" target="_blank"&gt;https://www.datainmotion.dev/2019/11/exploring-apache-nifi-110-parameters.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2021/01/automating-starting-services-in-apache.html" target="_blank"&gt;https://www.datainmotion.dev/2021/01/automating-starting-services-in-apache.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Feb 2021 15:52:44 GMT</pubDate>
    <dc:creator>TimothySpann</dc:creator>
    <dc:date>2021-02-08T15:52:44Z</dc:date>
    <item>
      <title>Nifi: Using parameters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Using-parameters/m-p/311125#M224478</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a question regarding the concept of parameter context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The admin guide says : &lt;EM&gt;A Process Group can only be assigned one Parameter Context, while a given Parameter Context can be assigned to multiple Process Groups.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK, let's assume you have internal kafka or database, and some external system you connect to. You might want to have a parameter "group"&lt;BR /&gt;for the internal kafka connection, and another parameter contexts for each external system connection.&lt;/P&gt;&lt;P&gt;However, your flow, clearly a part a process group, reads data from external system and stores data internally. Thus you need actually 2 connections in the flow,&lt;BR /&gt;it means 2 parameter contexts, which is not possible. To solve that, you assign the connections (controller services) to the parent group and the parameters.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Finally, for connections which are common to many flows, like your kafka, databases, and HttpSSL you land in the parent NiFi Flow, having parameter context which contains&lt;BR /&gt;a bunch of pretty unrelated parameters (for kafka, databases, ..).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is see, there is hardly a possibility to reuse parameter context&lt;BR /&gt;as they cannot be combined and thus you have 1:1 relationship between par. context and group just like for variables assigned to a processor group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did I miss something? What is actually the big advantage of parameters over variables?&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Jaro&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2021 19:55:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Using-parameters/m-p/311125#M224478</guid>
      <dc:creator>Jarinek</dc:creator>
      <dc:date>2021-02-07T19:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi: Using parameters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Using-parameters/m-p/311166#M224505</link>
      <description>&lt;P&gt;Variables are deprecated.&amp;nbsp; Parameters are new and easy to externalize.&amp;nbsp; &amp;nbsp;I can use them in devops processes via REST, NiFi CLI and Python.&amp;nbsp; &amp;nbsp;You can programatically build parameter contexts and parameters and assign them to process groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Parameters are getting some upgrades to do some of the more advanced things you mentioned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2020/09/devops-working-with-parameter-contexts.html" target="_blank"&gt;https://www.datainmotion.dev/2020/09/devops-working-with-parameter-contexts.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And they help power stateless nifi.,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2019/11/exploring-apache-nifi-110-parameters.html" target="_blank"&gt;https://www.datainmotion.dev/2019/11/exploring-apache-nifi-110-parameters.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2021/01/automating-starting-services-in-apache.html" target="_blank"&gt;https://www.datainmotion.dev/2021/01/automating-starting-services-in-apache.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 15:52:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Using-parameters/m-p/311166#M224505</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2021-02-08T15:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi: Using parameters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Using-parameters/m-p/311167#M224506</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80158"&gt;@Jarinek&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NiFi Variables can only be used by component properties that support NiFi's Expression Language (EL).&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;NiFI Parameters can be used in ANY component property including those that are encrypted.&amp;nbsp; This gives more flexility to users, especially those users who use NiFi-Registry to promote version controlled Process groups across multiple NiFi instances/clusters.&amp;nbsp; It is often the case that different environments have different URLs and passwords in use within the same dataflows.&amp;nbsp; A Dataflwo can thus be promoted to another environment that simply uses different Parameter values thus not requiring the user to update a large number of components each time a new version of flow is promoted from one environment to another.&lt;BR /&gt;&lt;BR /&gt;You are correct that Parameters are similar to Variables in respect to assignment to a process group.&amp;nbsp; You can only have one Parameter context assign to a Process Group.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 16:20:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Using-parameters/m-p/311167#M224506</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-02-08T16:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi: Using parameters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Using-parameters/m-p/323645#M229180</link>
      <description>&lt;P&gt;From what I can see, the Parameters will also be versioned by NiFiRegisty. So same URL/service account will be promoted to other environment.&lt;/P&gt;&lt;P&gt;Is there any way to keep different Parameter in different env?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 11:20:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Using-parameters/m-p/323645#M229180</guid>
      <dc:creator>Rex13</dc:creator>
      <dc:date>2021-09-03T11:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi: Using parameters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Using-parameters/m-p/323944#M229249</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/88845"&gt;@Rex13&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Parameters are included when you version control a PG to the NiFi-Registry.&amp;nbsp; And if you then import that version controlled PG to another NiFi, that parameter context will be imported as well.&lt;BR /&gt;&lt;BR /&gt;Once imported the parameter context can be changed or updated as needed in the new environment.&amp;nbsp; Later if you commit version 2 of that same PG to NiFi-Registry and then upgrade to version 2 in the second environment, the parameter context changes you made locally on second environment will remain and will not be overwritten.&lt;BR /&gt;&lt;BR /&gt;If you found this response addressed your query, please take a moment to login and click on "Accept as Solution" below any solution that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 18:40:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Using-parameters/m-p/323944#M229249</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-09-08T18:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi: Using parameters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Using-parameters/m-p/323960#M229255</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp; for your kindly reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're using Git repo as the storage for NiFi-Registry.&lt;/P&gt;&lt;P&gt;And different environment has different Git branch to avoid any changes which are not expected.&lt;/P&gt;&lt;P&gt;For example, we will merge the code from test branch to prod branch after everything have been tested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just as what you said, it won't have any impact if I don't change any parameters in version 2.&lt;/P&gt;&lt;P&gt;But it will cause&amp;nbsp;conflict if some parameters are also changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 00:56:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Using-parameters/m-p/323960#M229255</guid>
      <dc:creator>Rex13</dc:creator>
      <dc:date>2021-09-09T00:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi: Using parameters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Using-parameters/m-p/325018#M229498</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried API and it won't change the parameter which has already been imported before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't found&amp;nbsp;&lt;SPAN&gt;"Accept as Solution". But I clicked the "KUDO" button. Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 02:41:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Using-parameters/m-p/325018#M229498</guid>
      <dc:creator>Rex13</dc:creator>
      <dc:date>2021-09-22T02:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi: Using parameters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Using-parameters/m-p/330426#M230674</link>
      <description>&lt;P&gt;if possible dynamic set parameter,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 01:21:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Using-parameters/m-p/330426#M230674</guid>
      <dc:creator>rcx</dc:creator>
      <dc:date>2021-11-18T01:21:33Z</dc:date>
    </item>
  </channel>
</rss>

