If you use a custom Amazon Linux AMI based on an Amazon Linux AMI with a

If you use a custom amazon linux ami based on an

This preview shows page 100 - 102 out of 395 pages.

If you use a custom Amazon Linux AMI based on an Amazon Linux AMI with a creation date of 2018-08-11, the Oozie server fails to start. If you use Oozie, create a custom AMI based on an Amazon Linux AMI ID with a different creation date. You can use the following AWS CLI command to return a list of Image IDs for all HVM Amazon Linux AMIs with a 2018.03 version, along with the release date, so that you can choose an appropriate Amazon Linux AMI as your base. Replace MyRegion with your region identifier, such as us-west-2. aws ec2 --region MyRegion describe-images --owner amazon --query 'Images[?Name!=`null`]| [?starts_with(Name, `amzn-ami-hvm-2018.03`) == `true`].[CreationDate,ImageId,Name]' -- output text | sort -rk1 For more information, see Creating an Amazon EBS-Backed Linux AMI in the Amazon EC2 User Guide for Linux Instances . Specifying a Custom AMI You can specify a custom AMI ID when you create a cluster using the AWS Management Console, AWS CLI, Amazon CloudWatch , or the Amazon EMR API. The AMI must exist in the same AWS Region where you create the cluster. To specify a custom AMI using the console 1. Open the Amazon EMR console at . 2. Choose Create cluster , Go to advanced options . 3. Under Software Configuration , for Release , choose emr-5.7.0 or later and then choose other options as appropriate for your application. Choose Next . 4. Select values under Hardware Configuration that are appropriate for your application, and choose Next . 5. Under Additional Options , for Custom AMI ID , enter a value and leave the update option selected. For more information about changing the update option, see Managing AMI Package Repository Updates (p. 95) . 94
Image of page 100
Amazon EMR Management Guide Using a Custom AMI 6. To launch the cluster, choose Next and complete other configuration options. To specify a custom AMI using the AWS CLI Use the --custom-ami-id parameter to specify the AMI ID when you run the aws emr create- cluster command. The following example specifies a cluster that uses a custom AMI with a 20 GiB boot volume. For more information, see Specifying the Amazon EBS Root Device Volume Size (p. 98) . Note Linux line continuation characters (\) are included for readability. They can be removed or used in Linux commands. For Windows, remove them or replace with a caret (^). aws emr create-cluster --name " Cluster with My Custom AMI " \ --custom-ami-id MyAmiID --ebs-root-volume-size 20 \ --release-label emr-5.7.0 --use-default-roles \ --instance-count 2 --instance-type m5.xlarge Managing AMI Package Repository Updates On first boot, by default, Amazon Linux AMIs connect to package repositories to install security updates before other services start. Depending on your requirements, you may choose to disable these updates when you specify a custom AMI for Amazon EMR. The option to disable this feature is available only when you use a custom AMI.
Image of page 101
Image of page 102

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