<?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 Using MapCacheServer and MapCacheClientService in NiFi versions 2.0.0 / 2.2.0 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Using-MapCacheServer-and-MapCacheClientService-in-NiFi/m-p/403402#M252059</link>
    <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I&lt;/SPAN&gt;&lt;SPAN&gt;'m still trying to get this to work:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Process-Group-level-counter/td-p/402648" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Support-Questions/Process-Group-level-counter/td-p/402648&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I have versions NiFi 2.0.0 and 2.2.0 at my disposal, and have tried to get simple examples working that I can then implement in my flow. I'&lt;/SPAN&gt;&lt;SPAN&gt;m having difficulties as all the examples I find are with older versions of &lt;/SPAN&gt;&lt;SPAN&gt;NiFi&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;First&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Distributed&lt;/SPAN&gt; &lt;SPAN&gt;Server&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN&gt;Client&lt;/SPAN&gt; &lt;SPAN&gt;Services&lt;/SPAN&gt;&lt;SPAN&gt; have been renamed:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DistributedMapCacheServer&lt;/SPAN&gt;&lt;SPAN&gt; has been renamed to MapCacheServer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DistributedSetCacheServer&lt;/SPAN&gt;&lt;SPAN&gt; has been renamed to SetCacheServer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DistributedMapCacheClientService&lt;/SPAN&gt;&lt;SPAN&gt; has been renamed to MapCacheClientService &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DistributedSetCacheClientService&lt;/SPAN&gt;&lt;SPAN&gt; has been renamed to SetCacheClientService&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I&lt;/SPAN&gt;&lt;SPAN&gt;'ve mostly gotten PutDistributedMapCache and FetchDistributedMapCache working as per the older example here:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/how-to-put-data-in-PutDistributedMapCache/td-p/171803" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Support-Questions/how-to-put-data-in-PutDistributedMapCache/td-p/171803&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://www.youtube.com/watch?v=wjis28NrF90" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=wjis28NrF90&lt;/A&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;In the Controller Settings under Management Controller Services, I create a MapCacheServer and a MapCacheClientService set to use "localhost" as the Server Hostname.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;One thing I'&lt;/SPAN&gt;&lt;SPAN&gt;ve noticed is that it&lt;/SPAN&gt;&lt;SPAN&gt;'s not possible to select the MapCacheClientService I created. In PutDistributedMapCache and FetchDistributedMapCache I have to create new MapCacheClientServices for each.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-26 at 9.05.40 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/44139iD39122DED686FE02/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-02-26 at 9.05.40 AM.png" alt="Screenshot 2025-02-26 at 9.05.40 AM.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Is this how it's supposed to work?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Next I tried to recreate the ExecuteScript example, "Recipe: Get the value of a property stored in a DistributedMapCacheServer" here:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://community.cloudera.com/t5/Community-Articles/ExecuteScript-Cookbook-part-3/ta-p/249148" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Community-Articles/ExecuteScript-Cookbook-part-3/ta-p/249148&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;The Groovy code is&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import org.apache.nifi.distributed.cache.client.DistributedMapCacheClient&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import org.apache.nifi.distributed.cache.client.Serializer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import org.apache.nifi.distributed.cache.client.Deserializer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import java.nio.charset.StandardCharsets&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;def StringSerializer = {value, out -&amp;gt; out.write(value.getBytes(StandardCharsets.UTF_8))} as Serializer&amp;lt;String&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;def StringDeserializer = { bytes -&amp;gt; new String(bytes) } as Deserializer&amp;lt;String&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;def myDistClient = clientServiceId.asControllerService(DistributedMapCacheClient)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;def result = myDistClient.get('&lt;/SPAN&gt;&lt;SPAN&gt;a&lt;/SPAN&gt;&lt;SPAN&gt;', StringSerializer, StringDeserializer)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;log.info("Result = $result")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I received the error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ERROR&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ExecuteScript[id=587556de-0195-1000-c86f-dca652b949c6] Error Occured,java.lang.NullPointerException: Cannot invoke method get() on null object: {}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I did create a new property in the ExecuteScript processor and use the Id from the MapCacheClientService in Controler Settings as per the directions.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-03-02 at 4.11.32 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/44140i87B43A7734E5102D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-03-02 at 4.11.32 PM.png" alt="Screenshot 2025-03-02 at 4.11.32 PM.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Then I replaced DistributedMapCacheClient in the code with MapCacheClientService and I received the following error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ERROR&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ExecuteScript[id=587556de-0195-1000-c86f-dca652b949c6] Processing failed: org.apache.nifi.processor.exception.ProcessException: javax.script.ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Script4.groovy: 13: unable to resolve class org.apache.nifi.distributed.cache.client.MapCacheClientService&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;@ line 13, column 1.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import org.apache.nifi.distributed.cache.client.MapCacheClientService&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;^&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I found the nifi-distributed-cache-client-service-2.2.0.jar, and org.apache.nifi.distributed.cache.client.MapCacheClientService is a class within it, but I receive further errors when I placed the jar file in the Nifi lib directory.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Is there a way to get the code in ExecuteScript-Cookbook-part-3 working? PutDistributedMapCache and FetchDistributedMapCache alone are not enough for my needs.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks for you help!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 02 Mar 2025 21:13:34 GMT</pubDate>
    <dc:creator>Emery</dc:creator>
    <dc:date>2025-03-02T21:13:34Z</dc:date>
    <item>
      <title>Using MapCacheServer and MapCacheClientService in NiFi versions 2.0.0 / 2.2.0</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Using-MapCacheServer-and-MapCacheClientService-in-NiFi/m-p/403402#M252059</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I&lt;/SPAN&gt;&lt;SPAN&gt;'m still trying to get this to work:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Process-Group-level-counter/td-p/402648" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Support-Questions/Process-Group-level-counter/td-p/402648&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I have versions NiFi 2.0.0 and 2.2.0 at my disposal, and have tried to get simple examples working that I can then implement in my flow. I'&lt;/SPAN&gt;&lt;SPAN&gt;m having difficulties as all the examples I find are with older versions of &lt;/SPAN&gt;&lt;SPAN&gt;NiFi&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;First&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Distributed&lt;/SPAN&gt; &lt;SPAN&gt;Server&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN&gt;Client&lt;/SPAN&gt; &lt;SPAN&gt;Services&lt;/SPAN&gt;&lt;SPAN&gt; have been renamed:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DistributedMapCacheServer&lt;/SPAN&gt;&lt;SPAN&gt; has been renamed to MapCacheServer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DistributedSetCacheServer&lt;/SPAN&gt;&lt;SPAN&gt; has been renamed to SetCacheServer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DistributedMapCacheClientService&lt;/SPAN&gt;&lt;SPAN&gt; has been renamed to MapCacheClientService &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DistributedSetCacheClientService&lt;/SPAN&gt;&lt;SPAN&gt; has been renamed to SetCacheClientService&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I&lt;/SPAN&gt;&lt;SPAN&gt;'ve mostly gotten PutDistributedMapCache and FetchDistributedMapCache working as per the older example here:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/how-to-put-data-in-PutDistributedMapCache/td-p/171803" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Support-Questions/how-to-put-data-in-PutDistributedMapCache/td-p/171803&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://www.youtube.com/watch?v=wjis28NrF90" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=wjis28NrF90&lt;/A&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;In the Controller Settings under Management Controller Services, I create a MapCacheServer and a MapCacheClientService set to use "localhost" as the Server Hostname.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;One thing I'&lt;/SPAN&gt;&lt;SPAN&gt;ve noticed is that it&lt;/SPAN&gt;&lt;SPAN&gt;'s not possible to select the MapCacheClientService I created. In PutDistributedMapCache and FetchDistributedMapCache I have to create new MapCacheClientServices for each.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-26 at 9.05.40 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/44139iD39122DED686FE02/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-02-26 at 9.05.40 AM.png" alt="Screenshot 2025-02-26 at 9.05.40 AM.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Is this how it's supposed to work?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Next I tried to recreate the ExecuteScript example, "Recipe: Get the value of a property stored in a DistributedMapCacheServer" here:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://community.cloudera.com/t5/Community-Articles/ExecuteScript-Cookbook-part-3/ta-p/249148" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Community-Articles/ExecuteScript-Cookbook-part-3/ta-p/249148&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;The Groovy code is&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import org.apache.nifi.distributed.cache.client.DistributedMapCacheClient&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import org.apache.nifi.distributed.cache.client.Serializer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import org.apache.nifi.distributed.cache.client.Deserializer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import java.nio.charset.StandardCharsets&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;def StringSerializer = {value, out -&amp;gt; out.write(value.getBytes(StandardCharsets.UTF_8))} as Serializer&amp;lt;String&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;def StringDeserializer = { bytes -&amp;gt; new String(bytes) } as Deserializer&amp;lt;String&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;def myDistClient = clientServiceId.asControllerService(DistributedMapCacheClient)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;def result = myDistClient.get('&lt;/SPAN&gt;&lt;SPAN&gt;a&lt;/SPAN&gt;&lt;SPAN&gt;', StringSerializer, StringDeserializer)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;log.info("Result = $result")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I received the error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ERROR&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ExecuteScript[id=587556de-0195-1000-c86f-dca652b949c6] Error Occured,java.lang.NullPointerException: Cannot invoke method get() on null object: {}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I did create a new property in the ExecuteScript processor and use the Id from the MapCacheClientService in Controler Settings as per the directions.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-03-02 at 4.11.32 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/44140i87B43A7734E5102D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-03-02 at 4.11.32 PM.png" alt="Screenshot 2025-03-02 at 4.11.32 PM.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Then I replaced DistributedMapCacheClient in the code with MapCacheClientService and I received the following error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ERROR&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ExecuteScript[id=587556de-0195-1000-c86f-dca652b949c6] Processing failed: org.apache.nifi.processor.exception.ProcessException: javax.script.ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Script4.groovy: 13: unable to resolve class org.apache.nifi.distributed.cache.client.MapCacheClientService&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;@ line 13, column 1.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import org.apache.nifi.distributed.cache.client.MapCacheClientService&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;^&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I found the nifi-distributed-cache-client-service-2.2.0.jar, and org.apache.nifi.distributed.cache.client.MapCacheClientService is a class within it, but I receive further errors when I placed the jar file in the Nifi lib directory.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Is there a way to get the code in ExecuteScript-Cookbook-part-3 working? PutDistributedMapCache and FetchDistributedMapCache alone are not enough for my needs.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks for you help!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 02 Mar 2025 21:13:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Using-MapCacheServer-and-MapCacheClientService-in-NiFi/m-p/403402#M252059</guid>
      <dc:creator>Emery</dc:creator>
      <dc:date>2025-03-02T21:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using MapCacheServer and MapCacheClientService in NiFi versions 2.0.0 / 2.2.0</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Using-MapCacheServer-and-MapCacheClientService-in-NiFi/m-p/403441#M252072</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/119498"&gt;@Emery&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Your first query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;One thing I've noticed is that it's not possible to select the MapCacheClientService I created.&lt;/LI-CODE&gt;&lt;P&gt;Components added to the NiFi canvas only have access to the controller services created on Process Groups (PG) on the canvas.&amp;nbsp; Even when you are looking at the canvas presented when you first login, you are looking at the root PG.&amp;nbsp; From the root PG you can create many child PGs.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When you use the Global Menu in the UI to access the "Controller Settings", you have the ability to create "Management Controller services".&amp;nbsp; Controller services created here are for use by Reporting tasks and Registry Clients created from with the same "Controller Settings" UI.&amp;nbsp; They are not directly going to be referenced by the components on the dataflow canvas.&amp;nbsp; &amp;nbsp;This is why the MapCacheClientService you created was not see by your PutMapCache and FetchMapCache processors.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;From within the processor component, you have the option to select existing supported controller service that exist already within the current PG level or any parent level PG (assuming user has proper permissions at those parent levels).&amp;nbsp; It is important to understand the Child PGs inherit policies from parent PGs unless an explicit policy is defined on the child PG.&amp;nbsp; You also have the option to "Create New Service", which you can select even if an available controller service already exists..&lt;BR /&gt;&lt;BR /&gt;If a supported controller service exists, it will be presented in a selectable list when you click on the processor field, so it is NOT necessary to create a separate controller service for each processor.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1741028178104.png" style="width: 713px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/44153i4ACF9681C7BED141/image-dimensions/713x442?v=v2" width="713" height="442" role="button" title="MattWho_0-1741028178104.png" alt="MattWho_0-1741028178104.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To create a new service you must click on the three stacked dots instead of clicking on the field.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 18:59:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Using-MapCacheServer-and-MapCacheClientService-in-NiFi/m-p/403441#M252072</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-03-03T18:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using MapCacheServer and MapCacheClientService in NiFi versions 2.0.0 / 2.2.0</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Using-MapCacheServer-and-MapCacheClientService-in-NiFi/m-p/403446#M252073</link>
      <description>&lt;P&gt;Ah! Thank you for the explanation! I was always clicking on the three stacked dots and never saw the option to pick my existing instance!&lt;/P&gt;&lt;P&gt;Umm, any thoughts about what I can do to access the map cache via ExecuteScript as described in&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Community-Articles/ExecuteScript-Cookbook-part-3/ta-p/249148" target="_blank"&gt;https://community.cloudera.com/t5/Community-Articles/ExecuteScript-Cookbook-part-3/ta-p/249148&lt;/A&gt;&amp;nbsp;? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 19:51:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Using-MapCacheServer-and-MapCacheClientService-in-NiFi/m-p/403446#M252073</guid>
      <dc:creator>Emery</dc:creator>
      <dc:date>2025-03-03T19:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using MapCacheServer and MapCacheClientService in NiFi versions 2.0.0 / 2.2.0</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Using-MapCacheServer-and-MapCacheClientService-in-NiFi/m-p/403492#M252089</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp; Hi Matt, I made changes in my test based on the description you provided and I've been able to get the Groovy code working in ExecuteScript also.&lt;/P&gt;&lt;P&gt;Thanks very much for your help! Back to the counter now. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 14:38:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Using-MapCacheServer-and-MapCacheClientService-in-NiFi/m-p/403492#M252089</guid>
      <dc:creator>Emery</dc:creator>
      <dc:date>2025-03-04T14:38:17Z</dc:date>
    </item>
  </channel>
</rss>

