Zeppelin集成LDAP的部署和实践

环境信息:

Zeppelin版本:0.7.0

Kylin版本:1.6.0

Zeppelin部署:

1.      修改$ZEPPELIN_HOME/conf/shiro.ini文件,配置Zeppelin集成LDAP:

### A sample for configuring LDAP DirectoryRealm

ldapRealm = org.apache.zeppelin.realm.LdapGroupRealm

## search base for ldap groups (onlyrelevant for LdapGroupRealm):

ldapRealm.contextFactory.environment[ldap.searchBase]= dc=idc,dc=dream,dc=net

ldapRealm.contextFactory.url =ldap://xx.xxx.xxx.xx:389

ldapRealm.userDnTemplate =uid={0},ou=People,dc=idc,dc=dream,dc=net

ldapRealm.contextFactory.authenticationMechanism= SIMPLE

2.      配置Zeppelin环境变量,新增如下内容:

# vi /etc/profile

export ZEPPELIN_HOME=/app/zeppelin

export PATH=$PATH:$ZEPPELIN_HOME/bin

# source /etc/profile

3.      启动Zeppelin并验证端口号监听:

[root@kyln-a04 conf]# zeppelin-daemon.sh start

Zeppelin start                                            [  OK  ]

[root@kyln-a04 conf]# lsof -i :8080

COMMAND  PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME

java   13878 root  187u  IPv6 12406045      0t0 TCP *:webcache (LISTEN)

4.      通过页面访问,默认端口号8080:

 

Zeppelin查询Kylin:

1.      使用LDAP的用户(比如etl_user)登录Zeppelin,并配置Kylin的Interpreters。

点击下图右上角的用户,选择“Interpreters”,然后搜索kylin进行配置:

 

 

2.    创建一个属于自己的Notebook

点击Notebook,选择 Create new note,然后创建一个learn_kylin的Notebook。

 

3.      使用上面创建的learn_kylin的Notebook进行相关查询

 

可以选择其他可视化图表展示:

 

猜你喜欢

转载自blog.csdn.net/jiangshouzhuang/article/details/70195764