Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tsqoopimport : how to merge generated files

hello,

I use the TSqoopimport component for importing  oracle tables to HDFS.

This component generate 4 files (part-m-xxxx) if i configure it with 4 mappers.

and after, how can i merge thos 4 files into one file ?

 

I use TOS for Big Data 6.1.1

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Ok, i've found : the thdfscopy as an option which can merge the files.

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Hello,

The source data comes from 2 different sources, but has the same schema?

You can use a tFileList to iterate on a tFileInput* row linked to a tFileOutputDelimited in append mode.

Let us know if it works.

Best regards

Sabrina

Anonymous
Not applicable
Author

If the data isn't huge, you can try configuring Sqoop to just use one mapper: that way, it will generate one file.

 

If you don't want to go that route, Sabrina is mostly correct, except that you'll need tHDFSFileList to iterate over the files. Instead of merging them, this will iterate over them, so you can do whatever ETL work you need to do.

 

David

Anonymous
Not applicable
Author

Ok, i've found : the thdfscopy as an option which can merge the files.