阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

Hadoop 2.7.4 关闭与启动

204次阅读
没有评论

共计 4168 个字符,预计需要花费 11 分钟才能阅读完成。

环境说明:
[root@hadp-master sbin]# Hadoop version
Hadoop 2.7.4

一、脚本封装全部一起启动、关闭
1.1 启动
[root@hadp-master sbin]# ./start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
Starting namenodes on [hadp-master]
hadp-master: starting namenode, logging to /usr/local/hadoop/hadoop-2.7.4/logs/hadoop-root-namenode-hadp-master.out
hadp-node2: starting datanode, logging to /usr/local/hadoop/hadoop-2.7.4/logs/hadoop-root-datanode-hadp-node2.out
hadp-node1: starting datanode, logging to /usr/local/hadoop/hadoop-2.7.4/logs/hadoop-root-datanode-hadp-node1.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/hadoop-2.7.4/logs/hadoop-root-secondarynamenode-hadp-master.out
starting yarn daemons
starting resourcemanager, logging to /usr/local/hadoop/hadoop-2.7.4/logs/yarn-root-resourcemanager-hadp-master.out
hadp-node2: starting nodemanager, logging to /usr/local/hadoop/hadoop-2.7.4/logs/yarn-root-nodemanager-hadp-node2.out
hadp-node1: starting nodemanager, logging to /usr/local/hadoop/hadoop-2.7.4/logs/yarn-root-nodemanager-hadp-node1.out
说明:启动所有的 Hadoop 守护进程。包括 NameNode、DataNode、Secondary NameNode、Yarn、Yarn-root-nodemanager

1.2 关闭
[root@hadp-master sbin]# ./stop-all.sh
This script is Deprecated. Instead use stop-dfs.sh and stop-yarn.sh
Stopping namenodes on [hadp-master]
hadp-master: stopping namenode
hadp-node2: stopping datanode
hadp-node1: stopping datanode
Stopping secondary namenodes [0.0.0.0]
0.0.0.0: stopping secondarynamenode
stopping yarn daemons
stopping resourcemanager
hadp-node2: no nodemanager to stop
hadp-node1: no nodemanager to stop
no proxyserver to stop
说明:关闭所有的 Hadoop 守护进程。包括 NameNode、DataNode、Secondary NameNode、Yarn、resourcemanager

二、模块封装启动、关闭
2.1 启动
[root@hadp-master sbin]# ./start-dfs.sh
Starting namenodes on [hadp-master]
hadp-master: starting namenode, logging to /usr/local/hadoop/hadoop-2.7.4/logs/hadoop-root-namenode-hadp-master.out
hadp-node1: starting datanode, logging to /usr/local/hadoop/hadoop-2.7.4/logs/hadoop-root-datanode-hadp-node1.out
hadp-node2: starting datanode, logging to /usr/local/hadoop/hadoop-2.7.4/logs/hadoop-root-datanode-hadp-node2.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/hadoop-2.7.4/logs/hadoop-root-secondarynamenode-hadp-master.out
说明:启动 Hadoop HDFS 守护进程 NameNode、DataNode、SecondaryNameNode

[root@hadp-master sbin]# ./start-yarn.sh
starting yarn daemons
starting resourcemanager, logging to /usr/local/hadoop/hadoop-2.7.4/logs/yarn-root-resourcemanager-hadp-master.out
hadp-node2: starting nodemanager, logging to /usr/local/hadoop/hadoop-2.7.4/logs/yarn-root-nodemanager-hadp-node2.out
hadp-node1: starting nodemanager, logging to /usr/local/hadoop/hadoop-2.7.4/logs/yarn-root-nodemanager-hadp-node1.out
说明:启动 yarn daemons、yarn-root-resourcemanager、yarn-root-nodemanager

2.2 关闭
[root@hadp-master sbin]# ./stop-dfs.sh
Stopping namenodes on [hadp-master]
hadp-master: stopping namenode
hadp-node2: stopping datanode
hadp-node1: stopping datanode
Stopping secondary namenodes [0.0.0.0]
0.0.0.0: stopping secondarynamenode
说明:停止 Hadoop HDFS 守护进程 NameNode、DataNode、SecondaryNameNode

[root@hadp-master sbin]# ./stop-yarn.sh
stopping yarn daemons
stopping resourcemanager
hadp-node1: no nodemanager to stop
hadp-node2: no nodemanager to stop
no proxyserver to stop
说明:关闭 yarn daemons、yarn-root-resourcemanager、nodemanager

Hadoop2.3-HA 高可用集群环境搭建  https://www.linuxidc.com/Linux/2017-03/142155.htm
Hadoop 项目之基于 CentOS7 的 Cloudera 5.10.1(CDH)的安装部署  https://www.linuxidc.com/Linux/2017-04/143095.htm
CentOS 7.4 下 Hadoop 2.7.6 安装部署 https://www.linuxidc.com/Linux/2018-08/153353.htm
Hadoop2.7.2 集群搭建详解(高可用)https://www.linuxidc.com/Linux/2017-03/142052.htm
使用 Ambari 来部署 Hadoop 集群(搭建内网 HDP 源)https://www.linuxidc.com/Linux/2017-03/142136.htm
Ubuntu 14.04 下 Hadoop 集群安装  https://www.linuxidc.com/Linux/2017-02/140783.htm
CentOS 6.7 安装 Hadoop 2.7.2  https://www.linuxidc.com/Linux/2017-08/146232.htm
Ubuntu 16.04 上构建分布式 Hadoop-2.7.3 集群  https://www.linuxidc.com/Linux/2017-07/145503.htm
CentOS 7 下 Hadoop 2.6.4 分布式集群环境搭建  https://www.linuxidc.com/Linux/2017-06/144932.htm
Hadoop2.7.3+Spark2.1.0 完全分布式集群搭建过程  https://www.linuxidc.com/Linux/2017-06/144926.htm
CentOS 7.4 下编译安装 Hadoop 2.7.6 及所需文件  https://www.linuxidc.com/Linux/2018-06/152786.htm
Ubuntu 16.04.3 下安装配置 Hadoop https://www.linuxidc.com/Linux/2018-04/151993.htm

更多 Hadoop 相关信息见Hadoop 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=13

正文完
星哥玩云-微信公众号
post-qrcode
 0
星锅
版权声明:本站原创文章,由 星锅 于2022-01-21发表,共计4168字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中