<?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: how to keep Environmental property file in cache , which will be used across the processor. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-keep-Environmental-property-file-in-cache-which-will/m-p/168671#M45579</link>
    <description>&lt;P&gt;Glad it helped &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  (If you want to get more reuse from nifi, see first link in answer for reusing templates during development).&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2016 22:31:02 GMT</pubDate>
    <dc:creator>gkeys</dc:creator>
    <dc:date>2016-11-08T22:31:02Z</dc:date>
    <item>
      <title>how to keep Environmental property file in cache , which will be used across the processor.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-keep-Environmental-property-file-in-cache-which-will/m-p/168667#M45575</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;   I have requirement like need to read the environment property file and keep in memory, also need to auto refresh is any update done in property file. Example  Env.properties&lt;/P&gt;&lt;P&gt;parent_path = /sourcesystem/country/&lt;/P&gt;&lt;P&gt;Auth_key = 234234fsdaf234&lt;/P&gt;&lt;P&gt;password =**************&lt;/P&gt;&lt;P&gt;IN = india&lt;/P&gt;&lt;P&gt;i need to  use the above property in my processor across the flow.  Example in ListFile processor i want to use ${parent_path} , this should replace "/sourcesystem/country/ " value.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 18:18:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-keep-Environmental-property-file-in-cache-which-will/m-p/168667#M45575</guid>
      <dc:creator>saminathancs17</dc:creator>
      <dc:date>2016-11-08T18:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to keep Environmental property file in cache , which will be used across the processor.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-keep-Environmental-property-file-in-cache-which-will/m-p/168668#M45576</link>
      <description>&lt;P&gt;There are 2 ways to do it:&lt;/P&gt;&lt;P&gt;1) Custom properties file&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;put name=value pairs in custom property file: &lt;EM&gt;parent_path=/sourcesystem/country/&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;put custom property file in a location you choose on the nifi cluster&lt;/LI&gt;&lt;LI&gt;open the existing &lt;EM&gt;nifi.properties &lt;/EM&gt;file&lt;/LI&gt;&lt;LI&gt;for property &lt;EM&gt;nifi.variable.registry.properties&lt;/EM&gt;, set it to the path to your custom property file (or a csv of a list of custom property files)&lt;/LI&gt;&lt;LI&gt;in your processor, use ${parent_path} as you indicate&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;2) OS environment variable (best for sensitive values not to be exposed in a file)&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;set the OS environment variable:  &lt;EM&gt;export Auth_key=234234fsdaf234&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;reference ${Auth_key} in your processor&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The following links show more details &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.hortonworks.com/articles/60868/enterprise-nifi-implementing-reusable-components-a.html" target="_blank"&gt;https://community.hortonworks.com/articles/60868/enterprise-nifi-implementing-reusable-components-a.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.hortonworks.com/articles/57304/supporting-custom-properties-for-expression-langua.html"&gt;https://community.hortonworks.com/articles/57304/supporting-custom-properties-for-expression-langua.html&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 08 Nov 2016 20:49:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-keep-Environmental-property-file-in-cache-which-will/m-p/168668#M45576</guid>
      <dc:creator>gkeys</dc:creator>
      <dc:date>2016-11-08T20:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to keep Environmental property file in cache , which will be used across the processor.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-keep-Environmental-property-file-in-cache-which-will/m-p/168669#M45577</link>
      <description>&lt;P&gt;I tried with  1) Custom properties file. This is working. Thank you &lt;A href="https://community.hortonworks.com/users/11288/gkeys.html"&gt;Greg Keys&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 22:19:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-keep-Environmental-property-file-in-cache-which-will/m-p/168669#M45577</guid>
      <dc:creator>saminathancs17</dc:creator>
      <dc:date>2016-11-08T22:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to keep Environmental property file in cache , which will be used across the processor.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-keep-Environmental-property-file-in-cache-which-will/m-p/168670#M45578</link>
      <description>&lt;P&gt;Thanks @&lt;A href="https://community.hortonworks.com/users/11288/gkeys.html"&gt;Greg Keys&lt;/A&gt; for your quick response. Custom Properties file is working absolutely fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 22:20:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-keep-Environmental-property-file-in-cache-which-will/m-p/168670#M45578</guid>
      <dc:creator>venkataprasadma</dc:creator>
      <dc:date>2016-11-08T22:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to keep Environmental property file in cache , which will be used across the processor.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-keep-Environmental-property-file-in-cache-which-will/m-p/168671#M45579</link>
      <description>&lt;P&gt;Glad it helped &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  (If you want to get more reuse from nifi, see first link in answer for reusing templates during development).&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 22:31:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-keep-Environmental-property-file-in-cache-which-will/m-p/168671#M45579</guid>
      <dc:creator>gkeys</dc:creator>
      <dc:date>2016-11-08T22:31:02Z</dc:date>
    </item>
  </channel>
</rss>

