hadoop dfs -ls [文件目录]
# eg: hadoop dfs –ls /user/miaoyc.pt
hadoop dfs -cat [file_path]
# eg:hadoop dfs -cat /user/wangkai.pt/data.txt
hadoop fs -put [本地地址] [hadoop目录]
hadoop fs -put /home/t/file.txt /user/t
(file.txt是文件名)
hadoop fs -put [本地目录] [hadoop目录]
hadoop fs -put /home/t/dir_name /user/t
(dir_name是文件夹名)
hadoop fs -get [文件目录] [本地目录]
hadoop fs -get /user/t/ok.txt /home/t