Services in EMR – upstart
Service management in EMR 4.x and 5.x are handled by upstart
, and not the traditional SysVInit scripts.
You can view services by running the below command:
1 2 3 4 5 6 7 8 9 10 |
[hadoop@ip-10-69-144-56 ~]$ grep -ir "env DAEMON=" /etc/init/ | cut -d"\"" -f2 Output: hadoop-yarn-proxyserver hive-server2 hive-metastore hadoop-httpfs hadoop-yarn-resourcemanager hadoop-hdfs-namenode hadoop-mapreduce-historyserver |
Services can be queried using the upstart commands, for example:
1 2 3 4 5 6 7 |
[hadoop@ip-10-69-144-56 ~]$ status hadoop-hdfs-namenode hadoop-hdfs-namenode start/running, process 25730 [hadoop@ip-10-69-144-56 ~]$ sudo reload hadoop-hdfs-namenode [hadoop@ip-10-69-144-56 ~]$ status hadoop-hdfs-namenode hadoop-hdfs-namenode start/pre-start, process 28042 |
Services can be stop/start with the following commands
1 2 |
sudo stop hive-server2 sudo start hive-server2 |
More upstart commands can be found here : http://upstart.ubuntu.com/cookbook/
Trackback from your site.