Rohit, Are you routing both the "split" and "original" relationships to the downstream processor? If so, and you don't want the 6th flowfile containing all 5 records, then do not route the original relationship to the downstream processor. You can route it to some other processor or self-terminate it using the SplitAvro processor configuration dialog.
Regards, Matt On Mon, Mar 12, 2018 at 7:35 AM, Rohit <rsvang...@gmail.com> wrote: > Hi, > > I am reading data from hive table using ExecuteHQL having 5 records in hive > table, its generating 1 avro file having total 5 records and using splitAvro > processor i am splitting separate records but SplitAvro processor generating > total 6 records which having 5 separate records and 6'th record having all 5 > records. > > My template: > > ExecuteHQL -> SplitAvro -> AvroJson -> putCouch > > > > > -- > Sent from: http://apache-nifi-developer-list.39713.n7.nabble.com/