<?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 Is it possible to put multiple key value entries in Distributed cache using putdistributedcache proccessor in nifi? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-it-possible-to-put-multiple-key-value-entries-in/m-p/177318#M77999</link>
    <description />
    <pubDate>Mon, 07 May 2018 17:14:11 GMT</pubDate>
    <dc:creator>vinayak_krishna</dc:creator>
    <dc:date>2018-05-07T17:14:11Z</dc:date>
    <item>
      <title>Is it possible to put multiple key value entries in Distributed cache using putdistributedcache proccessor in nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-it-possible-to-put-multiple-key-value-entries-in/m-p/177318#M77999</link>
      <description />
      <pubDate>Mon, 07 May 2018 17:14:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-it-possible-to-put-multiple-key-value-entries-in/m-p/177318#M77999</guid>
      <dc:creator>vinayak_krishna</dc:creator>
      <dc:date>2018-05-07T17:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to put multiple key value entries in Distributed cache using putdistributedcache proccessor in nifi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-it-possible-to-put-multiple-key-value-entries-in/m-p/177319#M78000</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/78207/vinayakkrishnan.html" nodeid="78207"&gt;@vinayak krishnan&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Yes it's possible but we need to prepare unique values(ex: uuid is unique for each flowfile) for the Cache Entry Identifiers.&lt;BR /&gt;Also based on cache update strategy property determines when the already cache entry identifier appears again&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Cache update strategy&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;replace&lt;/TD&gt;&lt;TD&gt;&lt;UL&gt;&lt;LI&gt;Replace if present &lt;IMG src="https://ip1.i.lithium.com/32bc44e1a96fded3f83298b81d25829e6caad98e/687474703a2f2f6c6f63616c686f73743a383038302f6e6966692d646f63732f68746d6c2f696d616765732f69636f6e496e666f2e706e67" alt="Adds the specified entry to the cache, replacing any value that is currently set." /&gt;&lt;/LI&gt;&lt;LI&gt;Keep original &lt;IMG src="https://ip1.i.lithium.com/32bc44e1a96fded3f83298b81d25829e6caad98e/687474703a2f2f6c6f63616c686f73743a383038302f6e6966692d646f63732f68746d6c2f696d616765732f69636f6e496e666f2e706e67" alt="Adds the specified entry to the cache, if the key does not exist." /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/TD&gt;&lt;TD&gt;Determines how the cache is updated if the cache already contains the entry&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Property value set to&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;replace&lt;/STRONG&gt; then the new value will be replaced to already existing for the cache entry identifier.&lt;/P&gt;&lt;P&gt;Property value set to &lt;STRONG&gt;Keep original&lt;/STRONG&gt; then we Adds the specified entry to cache only if the key doesn't exist.&lt;/P&gt;&lt;P&gt;For your reference to &lt;A href="https://community.hortonworks.com/questions/188338/attributes-lost-after-running-selecthiveql.html?childToView=189663#answer-189663" target="_blank"&gt;this&lt;/A&gt; link how to set up unique values for Cache Entry Identifiers.&lt;/P&gt;&lt;P&gt;in the above link i have used update attribute processor to change the filename to UUID and then used ${filename} as Cache Entry Identifier, Like that way you can prepare your attribute (or) use ${UUID()} as the identifier.Then in Fetch Distribute Cache we need to have same key to fetch the cached value for the same identifier.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 17:57:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-it-possible-to-put-multiple-key-value-entries-in/m-p/177319#M78000</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-05-07T17:57:33Z</dc:date>
    </item>
  </channel>
</rss>

