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
Jedis
JAR 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
ExecuteScript
processor to your Nifi Flow. Select the Groovy inScript Engine
Property Then fill theModule Directory
Property with the address of the JAR file directory on you Nifi Instance.In Order to connect to RedisStack , Select the
Script Body
Property inExecuteScript
processor 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.