How to resolve the port conflict for Jupyter Notebook and Hue? Thanks.

155 views
Skip to first unread message

Pasle Choix

unread,
Dec 1, 2017, 9:44:07 PM12/1/17
to Project Jupyter
I have a Cloudera cluster installed with Anaconda, I can access the cluster with SSO authentication. The cluster is using 8888 as Hue's port.

I can start jupyter notebook with a specific port, however it looks no process is running with that port, here is the detail:


./jupyter notebook --port 8880

I see the following:

[W 12:50:17.566 NotebookApp] Unrecognized JSON config file version, assuming version 1
[I 12:50:19.010 NotebookApp] [nb_conda_kernels] enabled, 2 kernels found
[I 12:50:19.235 NotebookApp] ✓ nbpresent HTML export ENABLED
[W 12:50:19.235 NotebookApp] ✗ nbpresent PDF export DISABLED: No module named 'nbbrowserpdf'
[I 12:50:19.322 NotebookApp] [nb_anacondacloud] enabled
[I 12:50:19.327 NotebookApp] [nb_conda] enabled
[I 12:50:19.335 NotebookApp] Serving notebooks from local directory: /opt/cloudera/parcels/Anaconda3-4.1.2/bin
[I 12:50:19.335 NotebookApp] 0 active kernels
[I 12:50:19.335 NotebookApp] The Jupyter Notebook is running at: http://localhost:8880/
[I 12:50:19.335 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 12:50:19.336 NotebookApp] No web browser found: could not locate runnable browser.


Now, leave it running there I open my browser, I type in both http or https://myhostname:8880 but not able to open.

I then checked from another session on this host to see if 8880 is open, here is the command:

netstat | grep 8880

It doesn't show any process

So what should I do now? 


Thank you very much.

Lawrence D’Oliveiro

unread,
Dec 2, 2017, 5:03:41 AM12/2/17
to Project Jupyter
On Saturday, December 2, 2017 at 3:44:07 PM UTC+13, Pasle Choix wrote:
./jupyter notebook --port 8880

Here’s the kind of shell script I use:

#!/bin/bash
PREFIX=~/virtualenv/jupyter
exec $PREFIX/bin/jupyter-notebook --NotebookApp.port=8889 --no-browser
 

Roland Weber

unread,
Dec 4, 2017, 9:09:31 AM12/4/17
to Project Jupyter
1. Jupyter is listening on localhost, but not on the external IP address of "myhostname".
2. If your cluster has a firewall, make sure that it exposes port 8880.

hope that helps,
  Roland
Reply all
Reply to author
Forward
0 new messages