Actually, I can work fine with Redis in Apache Nifi. But I can't find any reference or documentation of working with Redis Stack and RedisJSON.
I've tried to use the current solution that worked with Redis, to use with Redis Stack, but it doesn't work.
Does anyone have any experience with that, or if you have any suggestions? please tell me in the comment.
I really appreciate any help you can provide.
You can try this approach with the help of Groovy language in Apache Nifi:
Download
JedisJAR file.NOTE: This a required dependency that you have to add to your Groovy Script class path
Upload the downloaded JAR file on a directory in your running Nifi Instance.
NOTE: If your are using Nifi on Docker, upload the JAR file on a mounted volume that you can access to it from your Nifi Instance.
Add
ExecuteScriptprocessor to your Nifi Flow. Select the Groovy inScript EngineProperty Then fill theModule DirectoryProperty with the address of the JAR file directory on you Nifi Instance.In Order to connect to RedisStack , Select the
Script BodyProperty inExecuteScriptprocessor and write down your desired script. For Example:This is the way you can connect to RedisStack and use RedisJSON commands in Groovy using the Jedis library and all of this is applicable in Apache Nifi.
I hope this will help you out.