How does one setup a Distributed Map Cache for NiFi?
@Darshan
Yey it will work beacause in the documentation of DistributedMapCacheClientService
says that it :
Provides the ability to communicate with a DistributedMapCacheServer. This can be used in order to share a Map between nodes in a NiFi cluster
the DistributedMapCacheClientService
and DistributedMapCacheServer
does not require additional software.
To create these services, right-click on the canvas, select Configure
and then select the Controller Services
tab. You can then add new services by clicking the +
button on the right and searching by name.
create
DistributedMapCacheServer
with default parameters (port 4557) and enable it. this will start built-in cache server.create
DistributedMapCacheClientService
with hostnamelocalhost
and other default parameters and enable itcreate a simple flow
GenerateFlowFile
set therun schedule
and not zero bytes size in parameters. connect it toPutDistributedMapCache
setEntry Identifier
asKey01
and choose yourDistributedMapCacheClientService
try to run it. and if port 4557 not used by other software the put cache should work.