#开启所有服务 start-all.sh #关闭所有服务 stop-all.sh2、开启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:98702.访问历史服务(historyserver)
主机IP地址:19888
192.168.50.102:198883.进程监控(application monitoring)
主机IP地址:8088
192.168.50.102:8088
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)