Amazon Elastic MapReduce
Developer Guide (API Version 2009-03-31)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

Configure FoxyProxy to View Websites Hosted on the Master Node

FoxyProxy is an add-on for Google Chrome, Firefox, and Internet Explorer that provides a set of proxy management tools. You can configure it to use a proxy server on URLs that match patterns corresponding to the domains used by the Amazon EC2 instances in your Amazon EMR cluster if you have created an SSH tunnel to the master node. For more information, see Open an SSH Tunnel to the Master Node. You can configure FoxyProxy to use the SOCKS proxy you have created to connect to EC2 instances. This enables you to view the web interfaces available on the master node. For more information about the available web interfaces, see Web Interfaces Hosted on the Master Node.

Note

The following tutorial uses FoxyProxy Standard version 2.9 in Chrome and FoxyProxy Standard version 3.6.2 in Firefox.

To install FoxyProxy in Firefox

  1. Download and install the standard version of FoxyProxy from http://foxyproxy.mozdev.org/downloads.html.

  2. Restart your browser after installing FoxyProxy.

To configure FoxyProxy with Firefox

  1. On the Firefox Tools menu, click FoxyProxy Standard, and then select Options.

    FoxyProxy displays the FoxyProxy Standard window.

  2. Click Add New Proxy.

  3. Click General.

  4. Enter a proxy name and verify that Perform remote DNS lookups on hostnames loading through this proxy is selected.

  5. Click Proxy Details.

    1. Select Manual Proxy Configuration and enter the host name and port number of the host you ran the ssh command as the Hadoop user in step 1.

      The SOCKS proxy (or SSH tunnel) is running on your desktop so enter localhost and port 8157.

    2. Select the SOCKS proxy? check box.

    3. Select SOCKS v5.

  6. Click URL Patterns. Next you'll add URL patterns that cause URLs of the form *ec2*.amazonaws.com*, *ec2.internal*, and *.compute.internal* to use the proxy.

    Note

    The ec2 and ec2.internal patterns should not be enclosed with dots.

  7. Click Add New Pattern.

    1. Select the Enabled check box.

    2. Enter a name in the Pattern Name box.

    3. Enter the following URL pattern in the URL pattern box: *ec2*.amazonaws.com*

    4. Select the Wildcards option.

    5. Click OK.

  8. Select Add New Pattern again to add the second pattern.

    Note

    This step is for clusters in the us-east-1 region, which have the machine name suffix ec2.internal.

    1. Select the Enabled check box.

    2. Enter a name in the Pattern Name box.

    3. Enter the following URL pattern in the URL pattern box: *ec2.internal*

    4. Select the Wildcards option.

    5. Click OK.

  9. Select Add New Pattern again to add the third pattern.

    Note

    This step is for clusters in regions other than us-east-1, which have the machine name suffix .compute.internal.

    1. Select the Enabled check box.

    2. Enter a name in the Pattern Name box.

    3. Enter the following URL pattern in the URL pattern box: *.compute.internal*

    4. Select the Wildcards option.

    5. Click OK.

  10. [Optional] Select Add New Pattern again to provide access to JobTracker log files.

    1. Select the Enabled check box.

    2. Enter a name in the Pattern Name box.

    3. Enter the following URL pattern in the URL pattern box: http://10.*

      Note

      Use an alternate IP address filter if the 10.* filter conflicts with your existing network address plan.

    4. Select the Wildcards option.

    5. Click OK.

  11. On the FoxyProxy Options pane, expand the Select Mode drop-down menu, select Use proxies based on their predefined patterns and priorities.

  12. Click Close.

Now that you've configured FoxyProxy when you enter a URL that matches the pattern *ec2*.amazonaws.com* into the Firefox browser, Firefox uses the proxy to connect to the master node of the cluster. You can now load the web pages listed in Web Interfaces Hosted on the Master Node in your browser using URLs such as the following, where the text in red is replaced by the public DNS name of the master node of your cluster.

http://ec2-107-22-74-202.compute-1.amazonaws.com:9100