<?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 put data  in PutDistributedMapCache in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-put-data-in-PutDistributedMapCache/m-p/171804#M54205</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/11016/avijeetd.html" nodeid="11016" target="_blank"&gt;@Avijeet Dash&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;See if this helps:&lt;/P&gt;&lt;P&gt;One easy way of loading key value pairs in NiFi is using NiFi Custom Properties registry. This is a comma-separated list of file location paths for one or more custom property files. &lt;/P&gt;&lt;P&gt;For example I can load a file named &lt;B&gt;nifi_registry&lt;/B&gt; with key value pairs separated using '=' (say i have OS=MAC in it), and can reference ${OS} to substitute its value MAC using NiFi expression language(after restarting nifi). Its updated in &lt;STRONG&gt;nifi.property&lt;/STRONG&gt; file using &lt;STRONG&gt;nifi.variable.registry.properties&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12392-screen-shot-2017-02-12-at-111502-pm.png" style="width: 1112px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20045i3ED9347BCC9433C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12392-screen-shot-2017-02-12-at-111502-pm.png" alt="12392-screen-shot-2017-02-12-at-111502-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can read about it here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#custom_properties" target="_blank" rel="nofollow noopener noreferrer"&gt;https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#custom_properties&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jobin&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 10:38:18 GMT</pubDate>
    <dc:creator>jgeorge</dc:creator>
    <dc:date>2019-08-18T10:38:18Z</dc:date>
    <item>
      <title>how to put data  in PutDistributedMapCache</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-put-data-in-PutDistributedMapCache/m-p/171803#M54204</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a file, which can be used for lookup during a data flow. How do I read the file and put it in the DistributedCache?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Avijeet&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 14:57:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-put-data-in-PutDistributedMapCache/m-p/171803#M54204</guid>
      <dc:creator>avijeetd</dc:creator>
      <dc:date>2017-02-13T14:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to put data  in PutDistributedMapCache</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-put-data-in-PutDistributedMapCache/m-p/171804#M54205</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/11016/avijeetd.html" nodeid="11016" target="_blank"&gt;@Avijeet Dash&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;See if this helps:&lt;/P&gt;&lt;P&gt;One easy way of loading key value pairs in NiFi is using NiFi Custom Properties registry. This is a comma-separated list of file location paths for one or more custom property files. &lt;/P&gt;&lt;P&gt;For example I can load a file named &lt;B&gt;nifi_registry&lt;/B&gt; with key value pairs separated using '=' (say i have OS=MAC in it), and can reference ${OS} to substitute its value MAC using NiFi expression language(after restarting nifi). Its updated in &lt;STRONG&gt;nifi.property&lt;/STRONG&gt; file using &lt;STRONG&gt;nifi.variable.registry.properties&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12392-screen-shot-2017-02-12-at-111502-pm.png" style="width: 1112px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20045i3ED9347BCC9433C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12392-screen-shot-2017-02-12-at-111502-pm.png" alt="12392-screen-shot-2017-02-12-at-111502-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can read about it here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#custom_properties" target="_blank" rel="nofollow noopener noreferrer"&gt;https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#custom_properties&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jobin&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 10:38:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-put-data-in-PutDistributedMapCache/m-p/171804#M54205</guid>
      <dc:creator>jgeorge</dc:creator>
      <dc:date>2019-08-18T10:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to put data  in PutDistributedMapCache</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-put-data-in-PutDistributedMapCache/m-p/171805#M54206</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/11016/avijeetd.html" nodeid="11016" target="_blank"&gt;@Avijeet Dash&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What &lt;A rel="user" href="https://community.cloudera.com/users/466/jgeorge.html" nodeid="466" target="_blank"&gt;@Jobin George&lt;/A&gt; suggested would help to share common static configuratiosn at various part of a NiFi flow.&lt;/P&gt;&lt;P&gt;In addition to that, if you'd like to know how to Put/Get from distributed cache, and how to enrich FlowFiles with cached values, this example might be helpful:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12393-1flow.png" style="width: 1018px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20044iF8F0DF9A971FE7D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12393-1flow.png" alt="12393-1flow.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Template file is available here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/ijokarumawak/8ba9a2a1b224603f877e960a942a6f2b" target="_blank" rel="nofollow noopener noreferrer"&gt;https://gist.github.com/ijokarumawak/8ba9a2a1b224603f877e960a942a6f2b&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Koji&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 10:38:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-put-data-in-PutDistributedMapCache/m-p/171805#M54206</guid>
      <dc:creator>kkawamura</dc:creator>
      <dc:date>2019-08-18T10:38:10Z</dc:date>
    </item>
  </channel>
</rss>

