1、格式化NameNode: hadoop namenode -format
2、hdfs集群单节点启动:hadoop-daemon.sh start namenode; hadoop-daemon.sh start datanode;
hadoop-daemon.sh stop namenode; hadoop-daemon.sh stop datanode;
hadoop-daemon.sh start secondarynamenode; hadoop-daemon.sh stop secondarynamenode;
3、web端查看HDFS界面:http://hadoop125:50070/dfshealth.html#tab-overview; http://hadoop127:50090/status.html
4、yarn集群单节点启动:yarn-daemon.sh start resourcemanager;yarn-daemon.sh start nodemanager;
yarn-daemon.sh stop resourcemanager;yarn-daemon.sh stop nodemanager;
mr-jobhistory-daemon.sh start historyserver;
5、web端查看YARN界面:http://hadoop127:8088/cluster; http://hadoop125:19888/jobhistory
6、集群群起:start-dfs.sh ; start-yarn.sh; stop-dfs.sh; stop-yarn.sh;
来源:oschina
链接:https://my.oschina.net/u/4571343/blog/4922154