Hi, As a part of daily job i have to copy files from one location to another location and unzip the copied files. The file format is .tar.gz. I used tFileUnarchive component which is used to unzip files, but it is not working for .tar.gz file format. Is there any other component to unzip .tar.gz files? or Can any one tell me how to use winzip.exe to unzip the files using talend? TOS for DI Version:5.0.1.r74687 Thanks and Regards, Pavan
Hi Pedro,
Is there any other way to unzip the files, how can i use winzip.exe component in my job to unzip the files. I had read in component manual documentation that by using tSystem_1 we can use .exe's in our job, but i could not understand the demonstration example that was given in documentation. Can u help me out?
Thanks and Regards,
Pavan
Hi Pavan
It's the same with using commands in CMD.
You can get more info
here.
Still I think there is something wrong with your tar.gz file.
Regards,
Pedro
Hi Pedro,
If there is a problem then the particular file should not be extracted by winzip.exe also right? I use Winzip.exe directly in my SSIS job to accomplish this requirement it works fine there.
Thanks and Regards,
Pavan
Hi Pedro,
I think this is an issue with tFileUnarchive_1 component. Inside the "*.tar.gz" if there are files with size 1.5 GB and more than 1.5 GB tFileUnarchive_1 is unable to unzip/process those files. I had checked with other "*.tar.gz" files which have .tsv files compressed inside these "*.tar.gz" files with size 1.43 GB, it is working for them and i am able to unzip these files. Let me put it in more clear way
If there are files compressed with size >1.5 GB ----- tFileUnarchive not able to unzip the "*.tar.gz" files
If there are files compressed with size <1.43 GB -----tFileUnarchive is able to unzip the "*.tar.gz" files
Can u please check in this way?Because i am able to unarchive the files with less size
I had attached the images of files which tFileUnarchive could unzip and image of File which tFileUnarchive_1 could not open/unzip. Kindly go through them i think they will be helpful for your better understanding
Thanks and Regards,
Pavan
Hi Pavan I feel so sorry about this. Because I can't reproduce this issue in my local machine. Here are some images. Now the workaround is to use tSystem to call winzip.exe. Did anybody encounter this issue before? Regards, Pedro
Hi Pedro, Can you give me the syntax how to execute the command in tSystem component, i am not able to trace out the correct syntax that should be given, as far as my understanding i had given the below command in the Command property type "cmd winzip32 -e -o C:/Test1/bcsteepandcheapiphoneapp_2012-03-30.tar C:/Test" But i think it does not work out,am i doing any thing wrong here? Can you help me please? Thanks and Regards, Pavan