Unfortunately templates exported from NiFi do not contain Controller
Services that are not referenced by one of the selected extensions.
As a result, yes, this would be another Controller Services entry.
Something to the effect of the following should work:

- id: <unique id>
  name: Map Cacher Server
  type: org.apache.nifi.distributed.cache.server.map.DistributedMapCacheServer
  Properties:
    Port: 4557
    Maximum Cache Entries: 10000
    Eviction Strategy: "Least Frequently Used"

These properties are derived from:
https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-services-bundle/nifi-distributed-cache-server/src/main/java/org/apache/nifi/distributed/cache/server/DistributedCacheServer.java

Admittedly, this is not necessarily a target case but is certainly
doable.   The caveat is that our tooling is a bit light at the moment
to support such scenarios but we certainly hope to make such processes
easier in the future.

Let us know if you experience any additional issues.

--aldrin


On Mon, Oct 16, 2017 at 11:10 AM, rakesh <[email protected]> wrote:

> Your doubt is correct, DistributedMapCacheServer controller service is not
> present in config.yml since yml is generated from NiFi template.
>
> 1.Nifi Template has been created from canvas which contains Capture Change
> Mysql and Remote Process Group. With 2 controller services enabled.
> <http://apache-nifi-users-list.2361937.n4.nabble.com/
> file/t310/NifiHelp.png>
>
>
> 2.config.yml has been generated with above configuration which I sent you
> in
> my previous reply.
>
> The yml has DistributedMapCacheClient Service but there is no reference to
> DistributedMapCacheServer in yml.
>
> Do we need to explicitly add DistributedMapCacheServer? if yes please share
> how to add.
>
>
>
>
> --
> Sent from: http://apache-nifi-users-list.2361937.n4.nabble.com/
>

Reply via email to