问题
I am trying to figure out how to create a job/transformation to uncompress and load a .tar.gz file. Does anyone have any advice for getting this to work?
回答1:
you want to read a text file that is compressed?
Just specify the file in the text file input step in the transformation - and specify the compression (GZip). Kettle can read directly from compressed files.
If you do need the file uncompressed then use a job step - not sure if there is a native uncompress, but if not just use a shell script step.
回答2:
There is not such component in kettle to uncompress the tar.gz file i found. But if we have the csv file text compressed in gizip format we can use gzip input component.
来源:https://stackoverflow.com/questions/5349258/how-to-uncompress-and-import-a-tar-gz-file-in-kettle