1、介绍
官网:http://zeppelin.apache.org/
源代码地址:https://github.com/apache/zeppelin
Apache Zeppelin 是一个让交互式数据分析变得可行的基于网页的notebook。Zeppelin提供了数据可视化的框架。
zeppelin 是一个提供交互数据分析且基于Web的笔记本。方便你做出可数据驱动的、可交互且可协作的精美文档,并且支持多种语言,包括 Scala(使用 Apache Spark)、Python(Apache Spark)、SparkSQL、 Hive、 Markdown、Shell等等。
2、部署
下载:http://zeppelin.apache.org/download.html
为了不影响功能,选择zeppelin-0.8.0-bin-all.tgz
安装
[root@localhost ~]# tar xf zeppelin-0.8.0-bin-all.tgz -C /usr/local/
配置
[root@localhost ~]# cd /usr/local/zeppelin-0.8.0-bin-all/conf/
[root@localhost conf]# mv zeppelin-site.xml.template zeppelin-site.xml #启用设置
[root@localhost conf]# vim zeppelin-site.xml #关闭匿名登录,true改为false
407 <property>
408 <name>zeppelin.anonymous.allowed</name>
409 <value>false</value>
410 <description>Anonymous user allowed by default</description>
411 </property>
[root@localhost conf]# mv shiro.ini.template shiro.ini #启用认证配置文件
[root@localhost conf]# vim shiro.ini #[users]为用户配置模块。
18 [users]
19 # List of users with their password allowed to access Zeppelin.
20 # To use a different strategy (LDAP / Database / ...) check the shiro doc at http://shiro.apache.org/configuration.html#Conf iguration-INISections
21 # To enable admin user, uncomment the following line and set an appropriate password.
22 admin = admin, admin
23 user1 = password2, role1, role2
24 user2 = password3, role3
25 user3 = password4, role2
26 test = test, admin
启动关闭服务:
[root@localhost bin]# cd /usr/local/zeppelin-0.8.0-bin-all/bin
[root@localhost bin]# ./zeppelin-daemon.sh {start|stop|upstart|restart|reload|status}
3、访问