如何找出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 http://shiro.apache.org/configuration.html#Configuration-INISections
# 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

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

參考連結

Zeppelin - Apache Shiro authentication for Apache Zeppelin

猜你喜欢

转载自blog.csdn.net/keineahnung2345/article/details/85317847
今日推荐