Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

If it possible to set two fields concatenate into Message Key Field in processor PublishKafkaRecord?

Highlighted

If it possible to set two fields concatenate into Message Key Field in processor PublishKafkaRecord?

New Contributor

Hello everyone,

I use NiFi to publish data from database table to kafka,

and there is one attribute "Message Key Field".

My table schema might be as the following:

TableABC

FieldA, FieldB, FieldC

and the primary key is multiple, FieldA and FieldB

Thought I know, I could new a field as FieldAB and set into Message Key Field , publish as key.

I still wonder if it possible to set two fields concatenate into Message Key Field in processor PublishKafkaRecord? (ex: concat(FieldA, FieldB) or ...?)

Thank you very much :)