Access Jupyter Notebook installed on EMR 4.3.0 in browser
<p>I have launched an AWS EMR cluster following the steps on the EMR page. After connecting through SSH (putty in Windows 7) and enabling foxyproxy (Chrome), it launched fine and can be accessed in my laptop browser.
Pyspark and sparkR come with the EMR Spark 1.6.0 installation and work perfectly in the terminal.
The ports for Hue etc. work fine in the following format:</p>

<p>ec2-xx-xxx-xxx-xxx.us-west-2.compute.amazonaws.com:/</p>

<p>I installed Jupyter by following the steps on <a href="http://jupyter.readthedocs.org/en/latest/install.html#using-pip" rel="nofollow">http://jupyter.readthedocs.org/en/latest/install.html#using-pip</a></p>

<pre><code>sudo pip install jupyter
</code></pre>

<p>I opened a new notebook with</p>

<pre><code>jupyter notebook
</code></pre>

<p>It opened a browser in the terminal that I shut down. It gave the following output:</p>

<pre><code>[I 14:32:12.001 NotebookApp] Writing notebook server cookie secret to /home/hadoop/.local/share/jupyter/runtime/notebook_cookie_secret
[I 14:32:12.033 NotebookApp] The port 8888 is already in use, trying another random port.
[I 14:32:12.037 NotebookApp] Serving notebooks from local directory: /home/hadoop
[I 14:32:12.037 NotebookApp] 0 active kernels
[I 14:32:12.038 NotebookApp] The Jupyter Notebook is running at: http://localhost:8889/
[I 14:32:12.038 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
</code></pre>

<p>I tried accessing it in my browser by:
localhost:8889/ </p>

<p>(didn't work of course)</p>

<p>then by:
ec2-xx-xxx-xxx-xxx.us-west-2.compute.amazonaws.com:8889/</p>

<p>(replacing the x's), but this gave an error as well.</p>

<pre><code>This webpage is not available

ERR_CONNECTION_RESET
</code></pre>

<p>So how can I access Jupyter in my local browser when it has been installed on the head node of an EMR cluster?</p>