您的位置:首页 > 运维架构

hadoop常用的命令

2017-08-02 14:24 218 查看
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"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: