3 To open the ResourceManager web interface in your browser type httplocalhost

3 to open the resourcemanager web interface in your

This preview shows page 326 - 328 out of 395 pages.

3. To open the ResourceManager web interface in your browser, type: : 8157 / in the address bar. 4. When you are done working with the web interfaces on the master node, close the terminal windows. Option 2, Part 1: Set Up an SSH Tunnel to the Master Node Using Dynamic Port Forwarding To connect to the local web server on the master node, you create an SSH tunnel between your computer and the master node. This is also known as port forwarding . If you create your SSH tunnel using dynamic port forwarding, all traffic routed to a specified unused local port is forwarded to the local web server on the master node. This creates a SOCKS proxy. You can then configure your Internet browser to use an add-on such as FoxyProxy or SwitchySharp to manage your SOCKS proxy settings. Using a proxy management add-on allows you to automatically filter URLs based on text patterns and to limit the proxy settings to domains that match the form of the master node's public DNS name. The browser add-on automatically handles turning the proxy on and off when you switch between viewing websites hosted on the master node, and those on the Internet. Before you begin, you need the public DNS name of the master node and your key pair private key file. For information about how to locate the master public DNS name, see To retrieve the public DNS name of the master node using the Amazon EMR console (p. 314) . For more information about accessing your key pair, see Amazon EC2 Key Pairs in the Amazon EC2 User Guide for Linux Instances . For more information about the sites you might want to view on the master node, see View Web Interfaces Hosted on Amazon EMR Clusters (p. 318) . Set Up an SSH Tunnel to the Master Node Using Dynamic Port Forwarding on Linux, Unix, and Mac OS X To set up an SSH tunnel using dynamic port forwarding on Linux, Unix, and Mac OS X 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 . 320
Image of page 326
Amazon EMR Management Guide View Web Interfaces Hosted on Amazon EMR Clusters 2. Type the following command to open an SSH tunnel on your local machine. Replace ~/ mykeypair.pem with the location and file name of your .pem file, replace 8157 with an unused, local port number, and replace c2-###-##-##-###.compute-1.amazonaws.com with the master public DNS name of your cluster. ssh -i ~/mykeypair.pem -N -D 8157 [email protected] c2-###-##-##-###.compute-1.amazonaws.com After you issue this command, the terminal remains open and does not return a response. Note -D signifies the use of dynamic port forwarding which allows you to specify a local port used to forward data to all remote ports on the master node's local web server. Dynamic port forwarding creates a local SOCKS proxy listening on the port specified in the command.
Image of page 327
Image of page 328

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