Unexpected end of ZLIB input stream in tFileUnarchive

Unexpected end of ZLIB input stream in tFileUnarchive

Hi,
I am getting following error in my job.
Exception in component tFileUnarchive_1
java.io.EOFException: Unexpected end of ZLIB input stream
    at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240)
    at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
    at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:116)
This job downloads file from FTP which are compressed in .tar.gz format. Extracts data, loads data. It is done for multiple files at once.
Issue is, whole process runs properly from start to end. Generates output as required. But after job ends, it gives following error.
Can someone help me??
Four Stars

Re: Unexpected end of ZLIB input stream in tFileUnarchive

This is unarchiving exception... For which file you are facing this issue.. it may be that respective file is currupt... Try removing that file and execute the job for rest of the files... Also try unarchiving using some other tool.. Some times the tool may not work properly for unzipping process.
Vaibhav

Re: Unexpected end of ZLIB input stream in tFileUnarchive

The files I'm unzipping are proper. No issues with them.
Other tools as in, which tools are you referring to?
Four Stars

Re: Unexpected end of ZLIB input stream in tFileUnarchive

- Windows tool
- 7z utility
-  etc

Re: Unexpected end of ZLIB input stream in tFileUnarchive

ok, but I want to automate the file extraction process along with ETL process. The tFileUnarchive I use is part of whole process, tFTPExist ==> tFTPGet ==> tFileUnarchive and so on. So how do we integrate 7z and Windows tool with the whole process?
Four Stars

Re: Unexpected end of ZLIB input stream in tFileUnarchive

If you want to invoke 7z in talend, then you can do it using tSystem component and execute commands for unarchiving. 7z as well as other tools support this feature..
Vaibhav

Re: Unexpected end of ZLIB input stream in tFileUnarchive

I am running the job on server and I can't install 7z there.
Any other suggestions?
Since Talend is giving error, it means I am missing out something in my whole setup....

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now