I'm using Nifi to manage my data flow. I first receive data using ConsumeKafka processor, then EvaluateJsonPath and ReplaceText processors to obtain this request
insert into my_table values('x1','x2','x3');
and finally, this request is fed to PuthiveQl processor. In this way, I insert data row by row into my Hive table, working fine but it's a very bad approach.
All what I want to know is how to obtain a request like that
insert into my_table values('x1','x2','x3'),('x11','x22','x33'),('x111','x222','x333');
by inserting a ; to the query in the end of the day, and so obtain a batch data insert into hive every 24 hours.
Please find attached my data flow in Nifi.




