I got some pig
generated files with part-r-00000.deflate
extension. I know this is a compressed file. How do I generate a normal file in a readable format. When I used hadoop fs -text
, I cannot get plaintext output. The output is still binary. How can I fix this problem?
2 Answers
you can decompress on the fly by using this command
hdfs dfs -text file.deflate | hdfs dfs -put - uncompressed_destination_file