当前位置: 代码迷 >> 综合 >> hadoop2.6节点启动关闭命令
  详细解决方案

hadoop2.6节点启动关闭命令

热度:85   发布时间:2023-11-21 13:57:11.0
全部启动 
[root@mihaoyu151 hadoop]# start-all.sh
全部关闭
[root@mihaoyu151 hadoop]# stop-all.sh启动hdfs DataNode NameNode SecondaryNameNode
[root@mihaoyu151 hadoop]# start-dfs.sh
关闭hdfs DataNode NameNode SecondaryNameNode
[root@mihaoyu151 hadoop]# stop-dfs.sh单个节点启动
[root@mihaoyu151 hadoop]# hadoop-daemon.sh start namenode
[root@mihaoyu151 hadoop]# hadoop-daemon.sh start datanode
[root@mihaoyu151 hadoop]# hadoop-daemon.sh start secondarynamenode
单个节点关闭
[root@mihaoyu151 hadoop]# hadoop-daemon.sh stop secondarynamenode
[root@mihaoyu151 hadoop]# hadoop-daemon.sh stop datanode
[root@mihaoyu151 hadoop]# hadoop-daemon.sh stop namenode启动yarn资源管理器  NodeManager ResourceManager
[root@mihaoyu151 hadoop]# start-yarn.sh
关闭yarn资源管理器  NodeManager ResourceManager
[root@mihaoyu151 hadoop]# stop-yarn.sh单个节点启动
[root@mihaoyu151 hadoop]# yarn-daemon.sh start nodemanager
[root@mihaoyu151 hadoop]# yarn-daemon.sh start resourcemanager
单个节点关闭
[root@mihaoyu151 hadoop]# yarn-daemon.sh stop nodemanager
[root@mihaoyu151 hadoop]# yarn-daemon.sh stop resourcemanager启动历史服务
[root@mihaoyu151 hadoop]# mr-jobhistory-daemon.sh start historyserver关闭历史服务
[root@mihaoyu151 hadoop]# mr-jobhistory-daemon.sh stop historyserver

查看进程

[root@mihaoyu151 hadoop]# jps
4658 NodeManager
4245 DataNode
5061 Jps
4535 ResourceManager
5001 JobHistoryServer
4127 NameNode
4367 SecondaryNameNode