查看HDFS压缩文件内容
不需要get到本地 直接查看压缩文件内容
hadoop fs -cat /2018-08-22/2018-08-22_log.lzo | lzop -dc | head -1
hadoop fs -cat /shining/temp.txt.gz | gzip -d
或
hadoop fs -cat /shining/temp.txt.gz | zcat
hadoop fs -cat /temp/b.bz2 | bzip2 -d
hadoop fs -text 命令可以查看HDFS上的文本、压缩文件
hadoop fs -text /temp/b.bz2
hadoop fs -text /temp/test_hive.txt.gz
hadoop fs -text /temp/l.lzo
hadoop fs -text /tmp/out1/part-r-00000
查看HDFS压缩文件内容
https://www.hechunyu.com/archives/1698216651219