如何为 Jupyterhub 创建凭据?

How to create credentials for Jupyterhub?

我已经在 BlueData 上配置了 Spark 2.3.1 notebooks & Jupyterhub with SSL & centos7x 集群。

当我访问 Jupyerhub 服务时,系统提示我输入用户名和密码:

我的 BlueData 租户:

如何生成用于访问 Jupyterhub 的静态 username/password 凭据?

首先登录到租户,然后导航到集群屏幕。

单击 link 下载租户密钥对:

现在,单击集群的 link(在我的示例中是 'test'):

您可以检索 jupyterhub ssh 主机名和端口。请记住将主机名更改为网关主机名。您现在可以通过 ssh 进入集群:

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

您可以通过以下方式添加用户:

sudo useradd your_username

# set the password for your_username
sudo passwd your_username

您现在可以使用这些凭据登录 Jupyterhub。