Think before you speak, read before you think.

hdfs操作

by

in

显示

hdfs dfs -ls /user/hdfs/dw/raw/tracking/2017/06/15/tracking_16.gz

获取文件到当前目录

hdfs dfs -get /user/hdfs/dw/raw/tracking/2017/06/16/tracking_0.gz

放置当前目录文件到 hdfs 里

hdfs dfs -put * /user/hdfs/reporting/thread/2017/06/22/

查看 gz 文件

hdfs dfs -cat /user/hdfs/dw/raw/tracking/2017/06/16/tracking_0.gz  | zcat

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *