To increase the number of instances in the task instance group from 3 to 4 type

To increase the number of instances in the task

This preview shows page 344 - 346 out of 395 pages.

To increase the number of instances in the task instance group from 3 to 4, type the following command and replace ig-31JXXXXXXBTO with the instance group ID. aws emr modify-instance-groups --instance-groups InstanceGroupId= ig-31JXXXXXXBTO ,InstanceCount= 4 To retrieve the InstanceGroupId , use the describe-cluster subcommand. The output is a JSON object called Cluster that contains the ID of each instance group. To use this command, you need the cluster ID (which you can retrieve using the aws emr list-clusters command 338
Image of page 344
Amazon EMR Management Guide Manually Resizing a Running Cluster or the console). To retrieve the instance group ID, type the following command and replace j-2AXXXXXXGAPLF with the cluster ID. aws emr describe-cluster --cluster-id j-2AXXXXXXGAPLF Using the AWS CLI, you can also terminate an instance in the core instance group with the -- modify-instance-groups subcommand. Warning Specifying EC2InstanceIdsToTerminate must be done with caution. Instances are terminated immediately, regardless of the status of applications running on them, and the instance is not automatically replaced. This is true regardless of the cluster's Scale down behavior configuration. Terminating an instance in this way risks data loss and unpredictable cluster behavior. To terminate a specific instance you need the instance group ID (returned by the aws emr describe-cluster --cluster-id subcommand) and the instance ID (returned by the aws emr list-instances --cluster-id subcommand), type the following command, replace ig-6RXXXXXX07SA with the instance group ID and replace i-f9XXXXf2 with the instance ID. aws emr modify-instance-groups --instance-groups InstanceGroupId= ig-6RXXXXXX07SA ,EC2InstanceIdsToTerminate= i-f9XXXXf2 For more information about using Amazon EMR commands in the AWS CLI, see https:// docs.aws.amazon.com/cli/latest/reference/emr . To resize a cluster by adding task instance groups using the AWS CLI Using the AWS CLI, you can add from 1–48 task instance groups to a cluster with the --add-instance- groups subcommand. Task instances groups can only be added to a cluster containing a master instance group and a core instance group. When using the AWS CLI, you can add up to five task instance groups each time you use the --add-instance-groups subcommand. 1. To add a single task instance group to a cluster, type the following command and replace j- JXBXXXXXX37R with the cluster ID. aws emr add-instance-groups --cluster-id j-JXBXXXXXX37R --instance-groups InstanceCount= 6 ,InstanceGroupType= task ,InstanceType= m5.xlarge 2. To add multiple task instance groups to a cluster, type the following command and replace j-JXBXXXXXX37R with the cluster ID. You can add up to five task instance groups in a single command. aws emr add-instance-groups --cluster-id j-JXBXXXXXX37R --instance- groups InstanceCount= 6 ,InstanceGroupType= task ,InstanceType= m5.xlarge InstanceCount= 10 ,InstanceGroupType= task ,InstanceType= m5.xlarge For more information about using Amazon EMR commands in the AWS CLI, see https:// docs.aws.amazon.com/cli/latest/reference/emr .
Image of page 345
Image of page 346

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

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes