<?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: Recommended way to use environment management with Nifi in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Recommended-way-to-use-environment-management-with-Nifi/m-p/115066#M42823</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13520/jonaswcarson.html" nodeid="13520"&gt;@Jonas Carson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Using custom properties files should solve your needs perfectly.  Bottom line is you configure your processor with NiFi Expression Language that references the custom property e.g ${my.cust.prop.name}.  Each environment has its own instance of the custom property file -- with same property names as file deployed to other environments but values specific to the environment.&lt;/P&gt;&lt;P&gt;To implement this, open the nifi.properties file and set the field nifi.variable.registry.properties  to a comma-delimited
list of paths to custom property files.  Be sure to make your property names unique if you are using more than one property file in the same envt.  Also, they must be unique from system and environment properties.&lt;/P&gt;&lt;P&gt;See the following links for more information:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/57304/supporting-custom-properties-for-expression-langua.html" target="_blank"&gt;https://community.hortonworks.com/articles/57304/supporting-custom-properties-for-expression-langua.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#Using_Custom_Properties" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#Using_Custom_Properties&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Note: You can also refer to system variables and environment variables the same way: ${system.variable.name}&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2016 23:23:18 GMT</pubDate>
    <dc:creator>gkeys</dc:creator>
    <dc:date>2016-10-05T23:23:18Z</dc:date>
    <item>
      <title>Recommended way to use environment management with Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Recommended-way-to-use-environment-management-with-Nifi/m-p/115065#M42822</link>
      <description>&lt;P&gt;
	What is the recommended way to handle multiple environments with Nifi, without editing the UI? Specifically, how can I manage differing controller and processor credentials between environments? For instance, if I have a DBCP controller service that connects to a DEV database in a DEV environment, how can I adjust the credentials so that the Nifi instance connects to a QA database in a QA environment without manually altering the values from within the Nifi UI itself.&lt;/P&gt;&lt;UL&gt;
	
&lt;LI&gt;I am aware that I can move the flowfile between different instances of nifi, provided the security properties remain the same between environments&lt;/LI&gt;	
&lt;LI&gt;Within the &lt;CODE&gt;flowfile.xml&lt;/CODE&gt; file itself, I can see where sensitive values are stored as base64 encoded strings. Using the default security properties, is there a way to decrypt them and/or re-encode new credentials?&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 05 Oct 2016 21:53:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Recommended-way-to-use-environment-management-with-Nifi/m-p/115065#M42822</guid>
      <dc:creator>jonas_w_carson</dc:creator>
      <dc:date>2016-10-05T21:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Recommended way to use environment management with Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Recommended-way-to-use-environment-management-with-Nifi/m-p/115066#M42823</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13520/jonaswcarson.html" nodeid="13520"&gt;@Jonas Carson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Using custom properties files should solve your needs perfectly.  Bottom line is you configure your processor with NiFi Expression Language that references the custom property e.g ${my.cust.prop.name}.  Each environment has its own instance of the custom property file -- with same property names as file deployed to other environments but values specific to the environment.&lt;/P&gt;&lt;P&gt;To implement this, open the nifi.properties file and set the field nifi.variable.registry.properties  to a comma-delimited
list of paths to custom property files.  Be sure to make your property names unique if you are using more than one property file in the same envt.  Also, they must be unique from system and environment properties.&lt;/P&gt;&lt;P&gt;See the following links for more information:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/57304/supporting-custom-properties-for-expression-langua.html" target="_blank"&gt;https://community.hortonworks.com/articles/57304/supporting-custom-properties-for-expression-langua.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#Using_Custom_Properties" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#Using_Custom_Properties&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Note: You can also refer to system variables and environment variables the same way: ${system.variable.name}&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 23:23:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Recommended-way-to-use-environment-management-with-Nifi/m-p/115066#M42823</guid>
      <dc:creator>gkeys</dc:creator>
      <dc:date>2016-10-05T23:23:18Z</dc:date>
    </item>
  </channel>
</rss>

