How you start and stop a service depends on whether its an Amazon EMR service

How you start and stop a service depends on whether

This preview shows page 360 - 363 out of 395 pages.

After you determine which processes are running, you can stop and then restart them if necessary. How you start and stop a service depends on whether it's an Amazon EMR service or a service associated with an application. To restart a process associated with an application release 1. Type the following command to stop the process, replacing processname with the process name returned by the ls command in the procedure above: $ sudo /etc/init.d/ processname stop For example: sudo /etc/init.d/hadoop-hdfs-namenode stop 2. Type the following command to restart the process: $ sudo /etc/init.d/ processname start For example, sudo /etc/init.d/hadoop-hdfs-namenode start . 354
Image of page 360
Amazon EMR Management Guide Troubleshoot a Failed Cluster To restart an Amazon EMR process 1. Type the following command to stop the process, replacing processname with the process name returned by the ls command in the procedure above: $ sudo /sbin/stop processname For example, sudo /sbin/stop instance-controller . 2. Type the following command to restart the process: $ sudo sbin/start processname For example, sudo sbin/start instance-controller . Note The sbin/start, stop and restart commands are symlinks to /sbin/intictl . For more information about initctl , see the initctl man page by typing man initctl at the command prompt. Troubleshoot a Failed Cluster This section walks you through the process of troubleshooting a cluster that has failed. This means that the cluster terminated with an error code. If the cluster is still running, but is taking a long time to return results, see Troubleshoot a Slow Cluster (p. 358) instead. Topics Step 1: Gather Data About the Issue (p. 355) Step 2: Check the Environment (p. 356) Step 3: Look at the Last State Change (p. 357) Step 4: Examine the Log Files (p. 357) Step 5: Test the Cluster Step by Step (p. 358) Step 1: Gather Data About the Issue The first step in troubleshooting a cluster is to gather information about what went wrong and the current status and configuration of the cluster. This information will be used in the following steps to confirm or rule out possible causes of the issue. Define the Problem A clear definition of the problem is the first place to begin. Some questions to ask yourself: What did I expect to happen? What happened instead? When did this problem first occur? How often has it happened since? Has anything changed in how I configure or run my cluster? Cluster Details The following cluster details are useful in helping track down issues. For more information on how to gather this information, see View Cluster Status and Details (p. 273) . 355
Image of page 361
Amazon EMR Management Guide Step 2: Check the Environment Identifier of the cluster. (Also called a job flow identifier.) Region and availability zone the cluster was launched into. State of the cluster, including details of the last state change. Type and number of EC2 instances specified for the master, core, and task nodes.
Image of page 362
Image of page 363

You've reached the end of your free preview.

Want to read all 395 pages?

  • Spring '12
  • LauraParker
  • Amazon Web Services, Amazon Elastic Compute Cloud

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors