your cluster might have data stored on local disks that you need to recover

Your cluster might have data stored on local disks

This preview shows page 94 - 95 out of 395 pages.

your cluster might have data stored on local disks that you need to recover before the instances are terminated. You can enable termination protection when you create a cluster, and you can change the setting on a running cluster. With termination protection enabled, the TerminateJobFlows action in the Amazon EMR API does not work. Users cannot terminate the cluster using this API or the terminate-clusters command from the AWS CLI. The API returns an error, and the CLI exits with a non-zero return code. When using the Amazon EMR console to terminate a cluster, you are prompted with an extra step to turn termination protection off. Warning Termination protection does not guarantee that data is retained in the event of a human error or a workaround—for example, if a reboot command is issued from the command line while connected to the instance using SSH, if an application or script running on the instance issues a reboot command, or if the Amazon EC2 or Amazon EMR API is used to disable termination protection. Even with termination protection enabled, data saved to instance storage, including HDFS data, can be lost. Write data output to Amazon S3 locations and create backup strategies as appropriate for your business continuity requirements. Termination protection does not affect your ability to scale cluster resources using any of the following actions: Resizing a cluster manually using the AWS Management Console or AWS CLI. For more information, see Manually Resizing a Running Cluster (p. 336) . Removing instances from a core or task instance group using a scale-in policy with automatic scaling. For more information, see Using Automatic Scaling in Amazon EMR (p. 328) . Removing instances from an instance fleet by reducing target capacity. For more information, see Instance Fleet Options (p. 122) . Termination Protection and Amazon EC2 An Amazon EMR cluster with termination protection enabled has the disableAPITermination attribute set for all Amazon EC2 instances in the cluster. If a termination request originates with Amazon EMR, and the Amazon EMR and Amazon EC2 settings for an instance conflict, the Amazon EMR setting overrides the Amazon EC2 setting. For example, if you use the Amazon EC2 console to enable termination protection on an Amazon EC2 instance in a cluster that has termination protection disabled , when you use the Amazon EMR console, AWS CLI commands for Amazon EMR, or the Amazon EMR API to terminate the cluster, Amazon EMR sets DisableApiTermination to false and terminates the instance along with other instances. Important If an instance is created as part of an Amazon EMR cluster with termination protection, and the Amazon EC2 API or AWS CLI commands are used to modify the instance so that DisableApiTermination is false , and then the Amazon EC2 API or AWS CLI commands execute the TerminateInstances action, the Amazon EC2 instance terminates.
Image of page 94
Image of page 95

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