1)启动名称节点
Hadoop-daemon.sh start namenode
2) 启动数据节点
hadoop-daemons.sh start datanode slave
3)hadoop-daemon.sh start secondarynamenode
4)查看端口50070
netstat -anop | grep 500
5)开启resourcemanager
yarn-daemon.sh start resourcemanager
6)开启nodemanager
bin/yarn-daemons.sh start nodemanager
停止一个数据节点
hadoop-daemon.sh stop datanode
重新开启
hadoop-daemon.sh start datanode
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/192882.html