Hadoop服务开启与关闭

Hadoop服务开启与关闭,第1张

Hadoop服务开启关闭 服务开启与关闭 1、开启关闭所有服务(不推荐)
#开启所有服务
start-all.sh
#关闭所有服务
stop-all.sh
2、开启Hadoop所有服务★★★
#开启HDFS服务
start-dfs.sh
#------------------------------------------------------------------
Starting namenodes on [single01]
Last login: Wed Dec 29 17:17:39 CST 2021 from 192.168.50.1 on pts/0
Starting datanodes
Last login: Wed Dec 29 17:17:54 CST 2021 on pts/0
Starting secondary namenodes [single01]
Last login: Wed Dec 29 17:17:56 CST 2021 on pts/0
#------------------------------------------------------------------
#开启yarn服务
start-yarn.sh
#-------------------------------------------------
Starting resourcemanager
Last login: Wed Dec 29 17:17:59 CST 2021 on pts/0
Starting nodemanagers
Last login: Wed Dec 29 17:18:49 CST 2021 on pts/0
#------------------------------------------------
#开启历史记录服务
mapred --daemon start historyserver
#查看是否全部开启
jps
#--------------------
1936 NameNode
2770 NodeManager
3202 JobHistoryServer
3251 Jps
2618 ResourceManager
2110 DataNode
2334 SecondaryNameNod
#--------------------
3、关闭Hadoop所有服务★★★
#关闭历史记录服务
mapred --daemon stop historyserver
#关闭yarn服务
stop-yarn.sh
#------------------------------------------------------------------
Stopping nodemanagers
Last login: Wed Dec 29 18:55:34 CST 2021 from 192.168.50.1 on pts/0
Stopping resourcemanager
Last login: Wed Dec 29 18:56:30 CST 2021 on pts/0
#------------------------------------------------------------------
#关闭HDFS服务
stop-dfs.sh
#------------------------------------------------
Stopping namenodes on [single01]
Last login: Wed Dec 29 18:56:32 CST 2021 on pts/0
Stopping datanodes
Last login: Wed Dec 29 18:57:13 CST 2021 on pts/0
Stopping secondary namenodes [single01]
Last login: Wed Dec 29 18:57:14 CST 2021 on pts/0
#------------------------------------------------
4、利用浏览器查看hadoop状态 1.访问HDFS控制页面

主机IP地址:9870

192.168.50.102:9870
2.访问历史服务(historyserver)

主机IP地址:19888

192.168.50.102:19888
3.进程监控(application monitoring)

主机IP地址:8088

192.168.50.102:8088		

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5690388.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存