Jupyter Installation

(Last Updated On: )

In this tutorial I will show you how to install Jupyter. I will use self signed certs for this example.

This assumes your hostname is “hadoop”

Prerequisites

Python3.5 Installation

  1. sudo apt install python3-pip

Update .bashrc

  1. sudo nano ~/.bashrc
  2.  
  3. #Add the following
  4. alias python=python3.5
  5.  
  6. source ~/.bashrc

Install

  1. pip3 install jupyter
  2.  
  3. jupyter notebook --generate-config
  4.  
  5. jupyter notebook password
  6. #ENTER PASSWORD
  7.  
  8. cat ~/.jupyter/jupyter_notebook_config.json
  9. #Get the SHA1 value

Setup Configuration

  1. nano ~/.jupyter/jupyter_notebook_config.py
  2.  
  3. #Find and change the values for the following
  4. c.NotebookApp.ip = '0.0.0.0'
  5. c.NotebookApp.port = 8888
  6. c.NotebookApp.password = u'sha1:1234567fbbd5:dfgy8e0a3l12fehh46ea89f23jjjkae54a2kk54g'
  7. c.NotebookApp.open_browser = False
  8. c.NotebookApp.certfile = '/etc/security/serverKeys/hadoop.pem'
  9. c.NotebookApp.keyfile = '/etc/security/serverKeys/hadoop.key'

Run Jupyter

  1. jupyter notebook

https://NAMENODE:8888

References

https://jupyter.readthedocs.io/en/latest/index.html