How to uncompress and import a .tar.gz file in kettle?

无人久伴 提交于 2019-12-11 12:03:24

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!