hdfs dfs -mkdir -p /user/centos/hadoop
hdfs dfs -ls /user
hdfs dfs -ls -R /user 递归查看
hdfs dfs -help put
hdfs dfs -put index.html /user/centos/hadoop上传 index.html到hadoop上
查看
hdfs dfs -lsr
下载到本地
hdfs dfs -get /user/centos/index.html
删除
hdfs dfs -rm -r -f /user/centos/hadoop
注意一定要关闭防火墙
关闭防火墙。
$>su root
$>xcall.sh “service firewalld stop”
$>xcall.sh “systemctl disable firewalld”
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/193863.html