For Input S3 location type s3 region Replace region

For input s3 location type s3 region replace region

This preview shows page 25 - 28 out of 395 pages.

• For Input S3 location , type s3:// region .elasticmapreduce.samples Replace region with your region identifier. 19
Image of page 25
Amazon EMR Management Guide View the Results • For Output S3 location , type or browse to the output bucket that you created in Create an Amazon S3 Bucket (p. 12) . • For Action on failure , accept the default option Continue . This specifies that if the step fails, the cluster continues to run and processes subsequent steps. The Cancel and wait option specifies that a failed step should be canceled, that subsequent steps should not run, abut that the cluster should continue running. The Terminate cluster option specifies that the cluster should terminate if the step fails. 5. Choose Add . The step appears in the console with a status of Pending . 6. The status of the step changes from Pending to Running to Completed as the step runs. To update the status, choose the refresh icon to the right of the Filter . The script takes approximately a minute to run. View the Results After the step completes successfully, the Hive query output is saved as a text file in the Amazon S3 output folder that you specified when you submitted the step. To view the output of the Hive script 1. Open the Amazon S3 console at . 2. Choose the Bucket name and then the folder that you set up earlier. For example, mybucket and then MyHiveQueryResults . 3. The query writes results to a folder within your output folder named os_requests . Choose that folder. There should be a single file named 000000_0 in the folder. This is a text file that contains your Hive query results. 4. Choose the file, and then choose Download to save it locally. 5. Use the text editor that you prefer to open the file. The output file shows the number of access requests ordered by operating system. The following example shows the output in WordPad: 20
Image of page 26
Amazon EMR Management Guide Step 5: Clean Up Resources Step 5: Terminate the Cluster and Delete the Bucket After you complete the tutorial, you may want to terminate your cluster and delete your Amazon S3 bucket to avoid additional charges. Terminating your cluster terminates the associated Amazon EC2 instances and stops the accrual of Amazon EMR charges. Amazon EMR preserves metadata information about completed clusters for your reference, at no charge, for two months. The console does not provide a way to delete terminated clusters so that they aren't viewable in the console. Terminated clusters are removed from the cluster when the metadata is removed. To terminate the cluster 1. Open the Amazon EMR console at . 2. Choose Clusters , choose your cluster, and then choose Terminate . Clusters are often created with termination protection on, which helps prevent accidental shutdown.
Image of page 27
Image of page 28

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