How do I restart a service in Amazon EMR?
Last updated: 2019-04-26
I need to restart an Amazon EMR service, such as YARN ResourceManager.
Resolution
Amazon EMR release versions 2.x-3.x
1. Run the following command to find the name of the service:
ls /etc/init.d/
2. Run a command similar to the following to restart the service:
Note: Replace "hadoop-hdfs-namenode" with the service you want to restart.
sudo /etc/init.d/hadoop-hdfs-namenode restart
3. Run a command similar to the following to verify that the process is running:
sudo /etc/init.d/hadoop-hdfs-namenode status
Amazon EMR release versions 4.x-5.x
1. Run the following command to find the name of the service:
initctl list
2. Run a command similar to the following to stop the service:
Note: Replace "hadoop-yarn-resourcemanager" with the service you want to restart. You must use the stop and start commands in the following steps. Do not use the restart command.
sudo stop hadoop-yarn-resourcemanager
3. Wait a few seconds, and then run a command similar to the following to start the service:
sudo start hadoop-yarn-resourcemanager
4. Run a command similar to the following to verify that the process is running:
sudo status hadoop-yarn-resourcemanager
Related Information
Did this article help you?
Anything we could improve?
Need more help?