Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

You might be using a quite old Hadoop version (e.g: 0.20.0) in which fs -text can't inflate the compressed file.

As a workaround you may try this one-liner (based on thisthis answer):

hadoop fs -text file.deflate | perl -MCompress::Zlib -e 'undef $/; print uncompress(<>)'

You might be using a quite old Hadoop version (e.g: 0.20.0) in which fs -text can't inflate the compressed file.

As a workaround you may try this one-liner (based on this answer):

hadoop fs -text file.deflate | perl -MCompress::Zlib -e 'undef $/; print uncompress(<>)'

You might be using a quite old Hadoop version (e.g: 0.20.0) in which fs -text can't inflate the compressed file.

As a workaround you may try this one-liner (based on this answer):

hadoop fs -text file.deflate | perl -MCompress::Zlib -e 'undef $/; print uncompress(<>)'
Source Link
Lorand Bendig
  • 10.7k
  • 1
  • 39
  • 46

You might be using a quite old Hadoop version (e.g: 0.20.0) in which fs -text can't inflate the compressed file.

As a workaround you may try this one-liner (based on this answer):

hadoop fs -text file.deflate | perl -MCompress::Zlib -e 'undef $/; print uncompress(<>)'