Uncompress gz file from HDFS to HDFS – Hadoop:

$hadoop fs -text /hdfs_path/compressed_file.gz | hadoop fs -put - /hdfs_path/uncompressed-file.txt

Only Disadvantage: The only drawback of this approach is that in HDFS the data will be merged into a single file even though the local compressed file contains more than one file.

We hope it will help you resolve your issue.

If you have any issue feel free to revert.




211422