Step 1: Create an Amazon EC2 Key Pair
In this step, you will create the Amazon EC2 key pair you need to connect to an Amazon EMR master node and run Hive commands.
Sign in to the AWS Management Console and open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
Choose a region (for example,
US West (Oregon)). This should be the same region in which your DynamoDB table is located.
In the navigation pane, choose Key Pairs.
Choose Create Key Pair.
In Key pair name, type a name for your key pair (for example,
mykeypair), and then choose Create.
Download the private key file. The file name will end with
mykeypair.pem). Keep this private key file in a safe place. You will need it to access any Amazon EMR cluster that you launch with this key pair.
If you lose the key pair, you cannot connect to the master node of your Amazon EMR cluster.
For more information about key pairs, see Amazon EC2 Key Pairs in the Amazon EC2 User Guide for Linux Instances.