Important This setting has not worked in past 4x releases of EMR Please use

Important this setting has not worked in past 4x

This preview shows page 144 - 146 out of 395 pages.

Important This setting has not worked in past 4.x releases of EMR. Please use releases greater than 4.3.0 if you want to configure this option. To enable log aggregation create the following configuration file, myConfig.json , which contains the following: [ { "Classification": "yarn-site", "Properties": { "yarn.log-aggregation-enable": "true", "yarn.log-aggregation.retain-seconds": "-1", "yarn.nodemanager.remote-app-log-dir": "s3:\/\/mybucket\/logs" } } ] Type the following command and replace myKey with the name of your EC2 key pair. aws emr create-cluster --name "Test cluster" --release-label emr-4.5.0 --applications Name=Hadoop --use-default-roles --ec2-attributes KeyName=myKey --instance-type m5.xlarge --instance-count 3 --configurations When you specify the instance count without using the --instance-groups parameter, a single Master node is launched, and the remaining instances are launched as core nodes. All nodes will use the instance type specified in the command. Note If you have not previously created the default EMR service role and EC2 instance profile, type aws emr create-default-roles to create them before typing the create- cluster subcommand. For more information on using Amazon EMR commands in the AWS CLI, see https:// docs.aws.amazon.com/cli/latest/reference/emr . Enable the Debugging Tool The debugging tool allows you to more easily browse log files from the EMR console. For more information, see View Log Files in the Debugging Tool (p. 286) . When you enable debugging on a 138
Image of page 144
Amazon EMR Management Guide Enable the Debugging Tool cluster, Amazon EMR archives the log files to Amazon S3 and then indexes those files. You can then use the console to browse the step, job, task, and task-attempt logs for the cluster in an intuitive way. To use the debugging tool in the EMR console, you must enable debugging when you launch the cluster using the console, the CLI, or the API. To enable the debugging tool using the Amazon EMR console 1. Open the Amazon EMR console at . 2. Choose Create cluster . 3. Choose Go to advanced options . 4. In the Cluster Configuration section, in the Logging field, choose Enabled . You cannot enable debugging without enabling logging. 5. In the Log folder S3 location field, type an Amazon S3 path to store your logs. 6. In the Debugging field, choose Enabled . The debugging option creates an Amazon SQS exchange to publish debugging messages to the Amazon EMR service backend. Charges for publishing messages to the exchange may apply. For more information, see . 7. Proceed with creating the cluster as described in Plan and Configure Clusters (p. 37) . To enable the debugging tool using the AWS CLI To enable debugging using the AWS CLI, type the create-cluster subcommand with the --enable- debugging parameter. You must also specify the --log-uri parameter when enabling debugging.
Image of page 145
Image of page 146

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