start-all.sh
sbin/start-dfs.sh
sbin/start-yarn.sh
hadoop dfs –ls [文件目录]
hadoop dfs -ls -R / //显式目录结构
hadoop dfs –cat [file_path]
hadoop dfs –put [本地地址] [hadoop目录]
hadoop dfs -get [文件目录] [本地目录]
hadoop dfs –rm [文件地址]
hadoop dfs –rm -r -f[目录地址]
hadoop dfs –mkdir /user/t
使用mv命令:
? hadoop dfs –mv /user/test.txt /user/ok.txt (将test.txt重命名为ok.txt)
原文:https://www.cnblogs.com/qilingfeng/p/12709165.html