【笔记】Hadoop启动
前言
Hadoop启动相关命令学习笔记
启动 NameNode
MacOS
1 | /usr/local/Cellar/hadoop/3.2.1/sbin/hadoop-daemon.sh start namenode |
Linux
1 | sh hadoop/sbin/hadoop-deamon.sh start namenode |
启动 DataNode
MacOS
1 | /usr/local/Cellar/hadoop/3.2.1/sbin/hadoop-daemon.sh start datanode |
Linux
1 | sh hadoop/sbin/hadoop-deamon.sh start datanode |
启动 NodeManager
MacOS
1 | /usr/local/Cellar/hadoop/3.2.1/sbin/hadoop-daemon.sh start nodemanager |
Linux
1 | sh hadoop/sbin/hadoop-deamon.sh start nodemanager |
启动 ResourceManager
MacOS
1 | /usr/local/Cellar/hadoop/3.2.1/sbin/hadoop-daemon.sh start resourcemanager |
Linux
1 | sh hadoop/sbin/hadoop-deamon.sh start resourcemanager |
启动 SecondaryNameNode
MacOS
1 | /usr/local/Cellar/hadoop/3.2.1/sbin/hadoop-daemon.sh start secondarynamenode |
Linux
1 | sh hadoop/sbin/hadoop-deamon.sh start secondarynamenode |
群启 HDFS
MacOS
1 | /usr/local/Cellar/hadoop/3.2.1/sbin/start-dfs.sh |
Linux
1 | sh hadoop/sbin/start-dfs.sh |
群启 Yarn
MacOS
1 | sh /usr/local/Cellar/hadoop/3.2.1/libexec/sbin/start-yarn.sh |
Linux
1 | sh hadoop/sbin/start-yarn.sh |
群启所有
- 一次性启动
NameNode
、SecondaryNameNode
、DataNode
、NodeManager
、ResourceManager
MacOS
1 | sh /usr/local/Cellar/hadoop/3.2.1/libexec/sbin/start-all.sh |
Linux
1 | sh hadoop/sbin/start-all.sh |