Thanks Matt,
If I create DistributedMapCacheServer controller service in NiFi cluster(two 
node) enveronment, will it create one instance of CacheServer or two? 

Sent from my iPhone

> On Jul 13, 2016, at 6:13 PM, Matt Burgess <mattyb...@gmail.com> wrote:
> 
> Sumo,
> 
> I have some example code at
> http://funnifi.blogspot.com/2016/04/inspecting-your-nifi.html.
> Although it's not expressly for ExecuteScript it should be pretty
> usable as-is.
> 
> Also you might be able to use the technique outlined in my other post:
> http://funnifi.blogspot.com/2016/04/sql-in-nifi-with-executescript.html.
> With this you would get a reference to the ControllerService for the
> DistributedMapCacheClient (although you likely won't be able to refer
> to the DistributedMapCacheClient class), but using dynamic method
> invocation (as outlined in the blog post) you can call its methods to
> get and put values.
> 
> Regards,
> Matt
> 
>> On Wed, Jul 13, 2016 at 8:26 PM, Sumanth Chinthagunta <xmlk...@gmail.com> 
>> wrote:
>> looking for example script ( for ExecuteScript processor)  that uses 
>> DistributedMapCacheClient to put/get key/value pair.
>> 
>> Thanks
>> -Sumo

Reply via email to