Support Questions
Find answers, ask questions, and share your expertise

How to fetch a result from cassandra table query into nifi flow file attribute?

How to fetch a result from cassandra table query into nifi flow file attribute?

Rising Star

Hello,

I have a scenario where nifi flow file is flowing which is of up to 5 MB.

During the flow I need to get some info from Cassandra master table and use it for the flow file validation.

If I go with 'QueryCassandra' that fetches result into flow file content, so I will loose my original source flow file content !

Cassandra table result will be of only 2-3 rows (less in size), so is there any way to get this result into an attribute and retain my original flow file content?

One option I have is SpringContext processor, Is there any other better approach ?

Any suggestion will be appreciated.

Thanks,

Mahendra