如何找出zeppelin的登入帳號密碼?
发布日期:2021-05-06 19:49:02 浏览次数:28 分类:技术文章

本文共 753 字,大约阅读时间需要 2 分钟。

如何找出zeppelin的登入帳號密碼?

前言

如果忘記了zeppelin的密碼該怎麼辦呢?

我們可以登入zeppelin的運行主機,然後從設定檔中找出可用的帳戶密碼。
本篇記錄了詳細的步驟。

步驟

首先要從ssh登入運行zeppelin的主機,再依以下步驟執行。

切換到zeppelin的安裝目錄

cd /root/zeppelin

或:

cd /var/lib/zeppelin

或:

cd /opt/zeppelin

從conf/shiro.ini中找出帳戶密碼

grep "\[users\]" conf/shiro.ini -A 10

範例輸出:

[users]

# List of users with their password allowed to access Zeppelin.
# To use a different strategy (LDAP / Database / …) check the shiro doc at
# To enable admin user, uncomment the following line and set an appropriate password.
admin = password1, admin
#user1 = password2, role1, role2
#user2 = password3, role3
#user3 = password4, role2
account = password

# Sample LDAP configuration, for user Authentication, currently tested for single Realm

其中沒有以#開頭的就是可用的帳戶密碼。

參考連結

上一篇:CentOS下Zeppelin中R的配置教程
下一篇:PIL及matplotlib:OSError: cannot identify image file錯誤及解決方式

发表评论

最新留言

表示我来过!
[***.240.166.169]2025年04月02日 15时55分11秒