conda install jupyter, , -, , , notebook 4.2.3 4.3.0, . , init, , ; init - Google Compute Engine , SSH- - , auth Hadoop/Spark -.
, setup-jupyter-kernel.sh:
echo "c.NotebookApp.token = u''" >> ~/.jupyter/jupyter_notebook_config.py
jupyter . : , INIT_ACTIONS_REPO INIT_ACTIONS_BRANCH jupyter.sh, , . , , init .
, auth jupyter-, root SSH'ing master:
sudo su
killall -9 jupyter-notebook
echo "c.NotebookApp.token = u''" >> ~/.jupyter/jupyter_notebook_config.py
/dataproc-initialization-actions/jupyter/internal/launch-jupyter-kernel.sh
, , jupyter /var/log/jupyter_notebook.log; The Jupyter Notebook is running at: http://[all ip addresses on your system]:8123/?token=[some-token-string-here]; URL, .
EDIT: Dataproc gs://dataproc-initialization-actions. Jupyter.
, , Jupyter password JUPYTER_AUTH_TOKEN. , , ( , ):
gcloud dataproc clusters create \
--initialization-actions gs://dataproc-initialization-actions/jupyter/jupyter.sh \
--metadata JUPYTER_AUTH_TOKEN=foobarbaz
foobarbaz.