What is the default password for Jupyter created in Google data proc

I installed the proc data using the steps in the link here

https://cloud.google.com/dataproc/docs/tutorials/jupyter-notebook

But my jyputer keeps asking for a password

enter image description here

I have not set a password.

I tried my google account password which does not work

I ran ../root$ sudo grep -ir password and get the following to confirm that the password is not set.

.jupyter/jupyter_notebook_config.py:## Hashed password to use for web authentication.
.jupyter/jupyter_notebook_config.py:#  The string should be of the form type:salt:hashed-password.
.jupyter/jupyter_notebook_config.py:#c.NotebookApp.password = u''
.jupyter/jupyter_notebook_config.py:#  Only used when no password is enabled.
.local/share/jupyter/runtime/nbserver-3668.json:  "password": false, 
+4
source share
1 answer

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.

+3

Source: https://habr.com/ru/post/1663598/


All Articles