1. 程式人生 > >aws emr服務重啟

aws emr服務重啟

AWS常用的叢集管理服務有:

hadoop-yarn-resourcemanager 
oozie 
hadoop-hdfs-namenode 
hive-hcatalog-server 
hadoop-mapreduce-historyserver 
hue 
hadoop-kms 
hadoop-yarn-proxyserver 
hadoop-httpfs 
hive-server2 
hadoop-yarn-timelineserver 

在EMR 2.X,3.X中所有服務守護程式都通過 init.d 指令碼作為 SysV init 系統的一部分執行,查詢服務名稱:

ls /etc/init.d/

停止服務:

sudo /etc/init.d/hadoop-yarn-resourcemanager stop

啟動服務:

sudo /etc/init.d/hadoop-yarn-resourcemanager start

檢視服務狀態:

sudo /etc/init.d/hadoop-yarn-resourcemanager status

ps:請勿使用restart命令

在EMR4.x,5.x中服務已新增到upstart服務了,查詢服務:

sudo initctl list

停止服務:

sudo stop hadoop-yarn-resourcemanager

啟動服務:

sudo start hadoop-yarn-resourcemanager

檢視狀態:

sudo status hadoop-yarn-resourcemanager