Important The maximum request rate for Amazon EMR is one request every ten

Important the maximum request rate for amazon emr is

This preview shows page 388 - 390 out of 395 pages.

Important The maximum request rate for Amazon EMR is one request every ten seconds. End-to-End Amazon EMR Java Source Code Sample Developers can call the Amazon EMR API using custom Java code to do the same things possible with the Amazon EMR console or CLI. This section provides the end-to-end steps necessary to install the AWS Toolkit for Eclipse and run a fully-functional Java source code sample that adds steps to an Amazon EMR cluster. Note This example focuses on Java, but Amazon EMR also supports several programming languages with a collection of Amazon EMR SDKs. For more information, see Use SDKs to Call Amazon EMR APIs (p. 386) . This Java source code example demonstrates how to perform the following tasks using the Amazon EMR API: Retrieve AWS credentials and send them to Amazon EMR to make API calls Configure a new custom step and a new predefined step Add new steps to an existing Amazon EMR cluster Retrieve cluster step IDs from a running cluster Note This sample demonstrates how to add steps to an existing cluster and thus requires that you have an active cluster on your account. Before you begin, install a version of the Eclipse IDE for Java EE Developers that matches your computer platform. For more information, go to Eclipse Downloads . Next, install the Database Development plug-in for Eclipse. To install the Database Development Eclipse plug-in 1. Open the Eclipse IDE. 382
Image of page 388
Amazon EMR Management Guide End-to-End Amazon EMR Java Source Code Sample 2. Choose Help and Install New Software . 3. In the Work with: field, type or the path that matches the version number of your Eclipse IDE. 4. In the items list, choose Database Development and Finish . 5. Restart Eclipse when prompted. Next, install the Toolkit for Eclipse to make the helpful, pre-configured source code project templates available. To install the Toolkit for Eclipse 1. Open the Eclipse IDE. 2. Choose Help and Install New Software . 3. In the Work with: field, type . 4. In the items list, choose AWS Toolkit for Eclipse and Finish . 5. Restart Eclipse when prompted. Next, create a new AWS Java project and run the sample Java source code. To create a new AWS Java project 1. Open the Eclipse IDE. 2. Choose File , New , and Other . 3. In the Select a wizard dialog, choose AWS Java Project and Next . 4. In the New AWS Java Project dialog, in the Project name: field, enter the name of your new project, for example EMR-sample-code . 5. Choose Configure AWS accounts… , enter your public and private access keys, and choose Finish . For more information about creating access keys, see How Do I Get Security Credentials? in the Amazon Web Services General Reference . Note You should not embed access keys directly in code. The Amazon EMR SDK allows you to put access keys in known locations so that you do not have to keep them in code.
Image of page 389
Image of page 390

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