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 

hadoop-hdfs-datanode  

hadoop-yarn-nodemanager

在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

查看所有服务及状态:

sudo initctl list

//tomcat

sudo service tomcat8 stop

sudo service tomcat8 start

sudo service mysqld status

sudo stop zeppelin

sudo stop hue

sudo stop hive-server2

sudo stop hive-hcatalog-server

sudo start hive-hcatalog-server

sudo start hive-server2

sudo stop presto-server

sudo start presto-server

sudo stop livy-server

sudo stop zookeeper-server

或者用终极大招看aws的hadoop相关进程:

sudo initctl list | grep -i hadoop

 

对于hbase:

initctl list | grep hbase

 

-----------------------------------------------------------

sudo stop hadoop-yarn-resourcemanager 
sudo stop oozie
sudo stop hadoop-hdfs-namenode 
sudo stop hive-hcatalog-server 
sudo stop hadoop-mapreduce-historyserver
sudo stop hue 
sudo stop hadoop-kms 
sudo stop hadoop-yarn-proxyserver 
sudo stop hadoop-httpfs 
sudo stop hive-server2 
sudo stop hadoop-yarn-timelineserver 
sudo service tomcat8 stop
sudo service mysqld stop
sudo stop zeppelin
sudo stop presto-server
sudo stop livy-server
sudo stop zookeeper-server

sudo stop spark-history-server

 

#批量stop

 

sudo service tomcat8 stop
sudo service mysqld stop
sudo stop zeppelin
sudo stop hue
sudo stop hive-server2
sudo stop hive-hcatalog-server
sudo stop presto-server
sudo stop hadoop-yarn-resourcemanager
sudo stop oozie
sudo stop hadoop-hdfs-namenode
sudo stop hadoop-mapreduce-historyserver
sudo stop hadoop-yarn-proxyserver 
sudo stop hadoop-yarn-timelineserver 
sudo stop hadoop-yarn-nodemanager
sudo stop livy-server
sudo stop zookeeper-server

sudo stop spark-history-server

sudo stop gmetad

你可能感兴趣的:(服务器运维,AWS)