Reputation: 27
I have data from Hive table and I want to export the data into several flat files, partitioned by rows, into equal/almost equal number of rows on each target.
Is there any way to partition data into several flat files dynamically like:
Upvotes: 0
Views: 42
Reputation: 3353
I can describe how it should be done in PowerCenter or in Informatica Cloud, if you're using any of them.
Short answer is:
File Name
port in Traget Definition - this will make the dynamic file names possibleTransaction Control
transformation with TC_COMMIT_BEFORE
flag anytime the desired amount of rows gets processed - this will close the current file and redirect writes to new file (with name specified in File Name
port value). This will create multiple files as a result.Upvotes: 0