Support Questions

Find answers, ask questions, and share your expertise
Celebrating as our community reaches 100,000 members! Thank you!

NiFi put data in Distributed Cache

New Contributor

I am planning to store date value in Distributed cache. The date field is present in the flowfile as well as attribute. Currently, I am using PutDistributedMapCache processor with "Cache Entry Identifier" = ${max_date} and "Cache update strategy" = "Replace if present". This max_date is present in flowfile as attribute. When I get the cache data using FetchDistributedMapCache with "Cache Entry Identifier" = $.max_date and "Put Cache Value In Attribute" = maxdate, in the maxdate attribute, I am getting the entire avro data instead of something like "20-10-1992 00:02:00". The flowfile content is also of format "Content Type:application/octet-stream" and I am unable to view the content. Could someone explain how to update an attribute or field into cache and again get only that attribute from cache instead of entire avro data? Thanks for your help in advance


Rising Star