bluedatabluedata-3.7

How to create credentials for Jupyterhub?


I have provisioned a Spark 2.3.1 notebooks & Jupyterhub with SSL & centos7x cluster on BlueData.

When I access the Jupyerhub service, I am prompted for a username and password:

Credentials for Jupyterhub

My BlueData Tenant:

How can I generate a static username/password credentials for accessing Jupyterhub?


Solution

  • First login to the tenant and then navigate to the clusters screen.

    Click the link to download the Tenant KeyPair:

    enter image description here

    Now, click on the link for the cluster (in my example this is 'test'):

    enter image description here

    You can retrieve the jupyterhub ssh hostname and port. Remember to change the hostname to the gateway hostname. You can now ssh into the cluster:

    ssh bluedata@your_gw_host -p your_port -i /downloaded/tenant/keypair.pem
    

    You can add a user as follows:

    sudo useradd your_username
    
    # set the password for your_username
    sudo passwd your_username
    

    You can now login to Jupyterhub with those credentials.