Zeppelin 0.8.2安装

官网 http://zeppelin.apache.org/docs/0.8.2/quickstart/install.html

1.下载Zeppelin 0.8.2安装包
下载地址:http://archive.apache.org/dist/zeppelin/zeppelin-0.8.2//zeppelin-0.8.2-bin-all.tgz

2.解压并配置/etc/profile
a.解压到当前文件夹

[root@hadoop01 interpreter]# tar -zxvf /home/zeppelin-0.8.2-bin-all.tgz -C /usr/local/

b.进入 /etc/profile 目录再最下面添加如下内容,保存退出后 执行 source /etc/profile

[root@hadoop01 home]# vi /etc/profile
[root@hadoop01 home]# source /etc/profile

3.修改配置文件 先去掉.template

[root@hadoop01 conf]# cp shiro.ini.template shiro.ini
[root@hadoop01 conf]# cp zeppelin-env.sh.template zeppelin-env.sh
[root@hadoop01 conf]# cp zeppelin-site.xml.template zeppelin-site.xml

a. shiro.ini 是用来多用户登录和权限管理,vi 进入该文件,根据自己的需要设置登录zeppelin的用户名和密码(默认的情况下admin所在的一行是被注释掉的)

[root@hadoop01 conf]# vi shiro.ini

账号密码 都为admin 等号前后
逗号后面是权限 admin

[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=admin, admin

b. zeppelin-env.sh 是zeppelin的环境变量,vi 进入该文件,根据自己公司实际情况修改对应参数

[root@hadoop01 conf]# vi zeppelin-env.sh
export JAVA_HOME=/usr/local/jdk1.7.0_79
export SPARK_HOME=/usr/local/spark-2.2.0-bin-hadoop2.7
export SPARK_APP_NAME="ZeppelinAaron"
export HADOOP_CONF_DIR=/usr/local/hadoop-2.7.1/etc/hadoop

特别说明(从官网拷贝的)

yarn cluster mode is supported from 0.8.0
For yarn mode, you must specify SPARK_HOME & HADOOP_CONF_DIR
You can either specify them in zeppelin-env.sh, or in interpreter setting page
详情参照官网 http://zeppelin.apache.org/docs/0.8.2/interpreter/spark.html#3-yarn-mode

c. zeppelin-site.xml ,vi 进入该文件,修改如下参数

[root@hadoop01 conf]# vi zeppelin-site.xml

<property>
  <name>zeppelin.server.addrname>
  <value>hadoop01value>
  <description>Server binding addressdescription>
property>


<property>
  <name>zeppelin.server.portname>
  <value>8024value>
  <description>Server port.description>
property>


<property>
  <name>zeppelin.spark.concurrentSQLname>
  <value>truevalue>
  <description>Server addressdescription>
property>

<property>
  <name>zeppelin.anonymous.allowedname>
  <value>falsevalue>
  <description>Anonymous user allowed by defaultdescription>
property>

zeppelin.anonymous.allowed 要设置为false 不然为true的时候 随便谁都可以匿名访问,不用登录

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

Zeppelin 0.8.2安装_第1张图片
Zeppelin 0.8.2安装_第2张图片
Zeppelin 0.8.2安装_第3张图片

你可能感兴趣的:(Zeppelin)