aws emr list instances cluster id j 2AL4XXXXXX5T9 Or aws emr describe cluster

Aws emr list instances cluster id j 2al4xxxxxx5t9 or

This preview shows page 321 - 323 out of 395 pages.

aws emr list-instances --cluster-id j-2AL4XXXXXX5T9 Or: aws emr describe-cluster --cluster-id j-2AL4XXXXXX5T9 The output lists the cluster instances including DNS names and IP addresses. Note the value for PublicDnsName . "Status": { "Timeline": { "ReadyDateTime": 1408040779.263, "CreationDateTime": 1408040515.535 }, "State": "RUNNING", "StateChangeReason": {} }, "Ec2InstanceId": "i-e89b45e7", "PublicDnsName": "" "PrivateDnsName": "", "PublicIpAddress": "##.###.###.##", "Id": "ci-12XXXXXXXXFMH", "PrivateIpAddress": "###.##.#.###" For more information, see Amazon EMR commands in the AWS CLI . Connect to the Master Node Using SSH and an Amazon EC2 Private Key on Linux, Unix, and Mac OS X To create an SSH connection authenticated with a private key file, you need to specify the Amazon EC2 key pair private key when you launch a cluster. If you launch a cluster from the console, the Amazon EC2 key pair private key is specified in the Security and Access section on the Create Cluster page. For more information about accessing your key pair, see Amazon EC2 Key Pairs in the Amazon EC2 User Guide for Linux Instances . Your Linux computer most likely includes an SSH client by default. For example, OpenSSH is installed on most Linux, Unix, and macOS operating systems. You can check for an SSH client by typing ssh at the command line. If your computer does not recognize the command, install an SSH client to connect to the master node. The OpenSSH project provides a free implementation of the full suite of SSH tools. For more information, see the OpenSSH website. The following instructions demonstrate opening an SSH connection to the Amazon EMR master node on Linux, Unix, and Mac OS X. 315
Image of page 321
Amazon EMR Management Guide Connect to the Master Node Using SSH To configure the key pair private key file permissions Before you can use your Amazon EC2 key pair private key to create an SSH connection, you must set permissions on the .pem file so that only the key owner has permission to access the file. This is required for creating an SSH connection using terminal or the AWS CLI. 1. Locate your .pem file. These instructions assume that the file is named mykeypair.pem and that it is stored in the current user's home directory. 2. Type the following command to set the permissions. Replace ~/mykeypair.pem with the location and file name of your key pair private key file. chmod 400 ~/mykeypair.pem If you do not set permissions on the .pem file, you will receive an error indicating that your key file is unprotected and the key will be rejected. To connect, you only need to set permissions on the key pair private key file the first time you use it. To connect to the master node using the terminal 1. Open a terminal window. On Mac OS X, choose Applications > Utilities > Terminal . On other Linux distributions, terminal is typically found at Applications > Accessories > Terminal .
Image of page 322
Image of page 323

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