All Apps and Add-ons

How to resolve error "[hadoop] Error reading compressed journal while streaming" when attempting to search Hadoop AWS storage?

campbellj1977
Explorer

We are getting the following error when attempting to search our hadoop AWS S3 storage:

[hadoop] Error reading compressed journal while streaming: gzip data truncated, provider=StdinGzDataProvider

[hadoop] Exception - java.io.FileNotFoundException: No such file or directory: s3a://heroku-splunk/archives/main/archive_v3/main/008DA7C6-EACA-486D-8E49-994E14249C23/1479168000_1477785600/1478476800_1478390400/db_1478425271_1478420579_238/journal.gz

Can anyone point me in a good direction to start investigating?

0 Karma

kpawar_splunk
Splunk Employee
Splunk Employee

Error reading compressed journal while streaming: gzip data truncated, provider=StdinGzDataProvider" error is because one or more archived journal.gz is corrupted.

If splunk suffers crash or an unclean shutdown (power loss, hardware failure, OS failure, etc) then some buckets can be left in a bad state where not all data is searchable. If bucket is corrupted locally on indexer, then archived bucket will also be corrupted.
Local splunk buckets can be fixed by following these instructions : http://docs.splunk.com/Documentation/Splunk/6.5.0/Indexer/Bucketissues

Currently there is no way to fix corrupted journal.gz that are archived.

There is fix so that search reads data from corrupted journal till it hits corrupted part of the journal. Error message will be logged in search.log suggesting that particular journal is corrupted.Also, with this fix, search will continue after reading corrupt journal, instead of stopping at corrupt journal.
The fix is available in latest maintenance versions 6.3.9 onward, 6.4.6 onward and 6.5.3 onward. The fix will be included in next major release. You need to upgrade your SH to apply the fix.

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...