calegr111
calegr111

Reputation: 27

How to export data into several Flat Files using Informatica Developer (Big Data Management)?

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

Answers (1)

Maciejg
Maciejg

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:

  • create File Name port in Traget Definition - this will make the dynamic file names possible
  • use Transaction 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

Related Questions