I have several Nifi flows consuming data from Kafka then writing it on HDFS. Before writing on HDFS, we use MergeContent to merge flowfiles and write bigger message
MergeContent