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

9 篇文章 0 订阅
9 篇文章 0 订阅

前言

如果忘記了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

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值