How to restart yarn on AWS EMR

前端 未结 4 1971
醉话见心
醉话见心 2021-01-31 04:15

I am using Hadoop 2.6.0 (emr-4.2.0 image). I have made some changes in yarn-site.xml and want to restart yarn to bring the changes into effect.

4条回答
  •  再見小時候
    2021-01-31 04:23

    For those who are gonna come from Google

    In order to restart a service in EMR, perform the following actions:

    • Find the name of the service by running the following command:

      initctl list
      

    For example, the YARN Resource Manager service is named hadoop-yarn-resourcemanager.

    • Stop the service by running the following command:

      sudo stop hadoop-yarn-resourcemanager
      
    • Wait a few seconds, then start the service by running the following command:

      sudo start hadoop-yarn-resourcemanager
      

    Note: Stop/start is required; do not use the restart command.

    • Verify that the process is running by running the following command:

      sudo status hadoop-yarn-resourcemanager
      

    Check for the process using ps, and then check the log file for any errors in the log directory /var/log/.

    Source : https://aws.amazon.com/premiumsupport/knowledge-center/restart-service-emr/

提交回复
热议问题