Amazon EMR
Developer Guide

Step 1: Create a Key Pair

This documentation is for AMI versions 2.x and 3.x of Amazon EMR. For information about Amazon EMR releases 4.0.0 and above, see the Amazon EMR Release Guide. For information about managing the Amazon EMR service in 4.x releases, see the Amazon EMR Management Guide.

To run Hive interactively to manage data in DynamoDB, you will need a key pair to connect to the Amazon EC2 instances launched by Amazon EMR (Amazon EMR). You will use this key pair to connect to the master node of the Amazon EMR job flow to run a HiveQL script (a language similar to SQL).

To generate a key pair

  1. Sign in to the AWS Management Console and open the Amazon EC2 console at

  2. In the upper right hand corner of the console, select a Region from the Region drop-down menu. This should be the same region that your DynamoDB database is in.

  3. Click Key Pairs in the Navigation pane.

    The console displays a list of key pairs associated with your account.

  4. Click Create Key Pair.

  5. Enter a name for the key pair, such as mykeypair, for the new key pair in the Key Pair Name field and click Create.

  6. Download the private key file. The file name will end with .pem, (such as mykeypair.pem). Keep this private key file in a safe place. You will need it to access any instances that you launch with this key pair.


    If you lose the key pair, you cannot connect to your Amazon EC2 instances.

    For more information about key pairs, see Amazon Elastic Compute Cloud Key Pairs in the Amazon EC2 User Guide for Linux Instances.