3 After the tunnel is active configure a SOCKS proxy for your browser For more

3 after the tunnel is active configure a socks proxy

This preview shows page 327 - 329 out of 395 pages.

3. After the tunnel is active, configure a SOCKS proxy for your browser. For more information, see Option 2, Part 2: Configure Proxy Settings to View Websites Hosted on the Master Node (p. 323) . 4. When you are done working with the web interfaces on the master node, close the terminal window. Set Up an SSH tunnel Using Dynamic Port Forwarding with the AWS CLI You can create an SSH connection with the master node using the AWS CLI on Windows and on Linux, Unix, and Mac OS X. If you are using the AWS CLI on Linux, Unix, or Mac OS X, you must set permissions on the .pem file as shown in To configure the key pair private key file permissions (p. 316) . If you are using the AWS CLI on Windows, PuTTY must appear in the path environment variable or you may receive an error such as OpenSSH or PuTTY not available. To set up an SSH tunnel using dynamic port forwarding with the AWS CLI 1. Create an SSH connection with the master node as shown in Connect to the Master Node Using the AWS CLI (p. 316) . 2. To retrieve the cluster identifier, type: aws emr list-clusters The output lists your clusters including the cluster IDs. Note the cluster ID for the cluster to which you are connecting. "Status": { "Timeline": { "ReadyDateTime": 1408040782.374, "CreationDateTime": 1408040501.213 }, "State": "WAITING", "StateChangeReason": { "Message": "Waiting after step completed" } }, "NormalizedInstanceHours": 4, "Id": "j-2AL4XXXXXX5T9" , "Name": "AWS CLI cluster" 3. Type the following command to open an SSH tunnel to the master node using dynamic port forwarding. In the following example, replace j-2AL4XXXXXX5T9 with the cluster ID and replace ~/ mykeypair.key with the location and file name of your .pem file (for Linux, Unix, and Mac OS X) or .ppk file (for Windows). 321
Image of page 327
Amazon EMR Management Guide View Web Interfaces Hosted on Amazon EMR Clusters aws emr socks --cluster-id j-2AL4XXXXXX5T9 --key-pair-file ~/mykeypair.key Note The socks command automatically configures dynamic port forwarding on local port 8157. Currently, this setting cannot be modified. 4. After the tunnel is active, configure a SOCKS proxy for your browser. For more information, see Option 2, Part 2: Configure Proxy Settings to View Websites Hosted on the Master Node (p. 323) . 5. When you are done working with the web interfaces on the master node, close the AWS CLI window. For more information on using Amazon EMR commands in the AWS CLI, see https:// docs.aws.amazon.com/cli/latest/reference/emr . Set Up an SSH Tunnel to the Master Node Using Dynamic Port Forwarding on Windows Windows users can use an SSH client such as PuTTY to create an SSH tunnel to the master node. Before connecting to the Amazon EMR master node, you should download and install PuTTY and PuTTYgen. You can download these tools from the PuTTY download page . PuTTY does not natively support the key pair private key file format ( .pem ) generated by Amazon EC2.
Image of page 328
Image of page 329

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