Kum
Kum

Reputation: 31

How to split the xml file using apache nifi?

l have a 20GB XML file in my local system, I want to split the data into multiple chunks and also I want to remove specific attributes from that file. how will I achieve using Nifi?

Upvotes: 0

Views: 1634

Answers (1)

notNull
notNull

Reputation: 31520

Use SplitRecord processor and define XML Reader/Writer controller services to read the xml data and write only the required attributes into your result xml.

Also define Records Per Split property value to include how many records you needed for each split.

Upvotes: 1

Related Questions