zeppelin安装
(一)打开安装包所在地
[root@hurys22 install]# cd /opt/install/
[root@hurys22 install]# ls
(二)解压安装包
[root@hurys22 install]# tar -zxvf zeppelin-0.9.0-preview1-bin-all.tgz -C /opt/soft
[root@hurys22 install]# cd /opt/soft
[root@hurys22 soft]# ls
hadoop313 hbase205 hive312 jdk180 zeppelin-0.9.0-preview1-bin-all zookeeper357
(三)重命名
[root@hurys22 soft]# mv zeppelin-0.9.0-preview1-bin-all zepplin090
[root@hurys22 soft]# ls
hadoop313 hbase205 hive312 jdk180 zepplin090 zookeeper357
(四)在zepplin090的conf目录下修改文件
[root@hurys22 soft]# cd /opt/soft/zepplin090/conf/
[root@hurys22 conf]# ls
configuration.xsl log4j.properties log4j_yarn_cluster.properties zeppelin-env.cmd.template zeppelin-site.xml.template
interpreter-list log4j.properties2 shiro.ini.template zeppelin-env.sh.template
1.修改文件 zeppelin-site.xml
[root@hurys22 conf]# cp zeppelin-site.xml.template ./zeppelin-site.xml
[root@hurys22 conf]# ls
configuration.xsl log4j.properties log4j_yarn_cluster.properties zeppelin-env.cmd.template zeppelin-site.xml
interpreter-list log4j.properties2 shiro.ini.template zeppelin-env.sh.template zeppelin-site.xml.template
[root@hurys22 conf]# vi zeppelin-site.xml
28 <property>
29 <name>zeppelin.server.addr</name>
30 <value>192.168.0.22</value>
31 <description>Server binding address</description>
32 </property>
33
34 <property>
35 <name>zeppelin.server.port</name>
36 <value>8000</value>
37 <description>Server port.</description>
38 </property>
2.修改文件 zeppelin-env.sh
[root@hurys22 conf]# echo $JAVA_HOME
/usr/local/java
[root@hurys22 conf]# cp zeppelin-env.sh.template ./zeppelin-env.sh
[root@hurys22 conf]# ls
configuration.xsl log4j.properties2 zeppelin-env.cmd.template zeppelin-site.xml
interpreter-list log4j_yarn_cluster.properties zeppelin-env.sh zeppelin-site.xml.template
log4j.properties shiro.ini.template zeppelin-env.sh.template
[root@hurys22 conf]# vi zeppelin-env.sh
19 export JAVA_HOME=/usr/local/java
20 export HADOOP_CONF_DIR=/opt/soft/hadoop313/etc/hadoop
21 # export MASTER= # Spark master url. eg. spark://master_addr:7077. Leave
(五)把hive312/conf目录下的hive-site.xml文件拷贝到zepplin090的conf目录下
[root@hurys22 conf]# cp /opt/soft/hive312/conf/hive-site.xml ./
[root@hurys22 conf]# ls
configuration.xsl log4j.properties shiro.ini.template zeppelin-env.sh.template
hive-site.xml log4j.properties2 zeppelin-env.cmd.template zeppelin-site.xml
interpreter-list log4j_yarn_cluster.properties zeppelin-env.sh zeppelin-site.xml.template
(六)在zepplin090/interpreter/jdbc 拷贝2个架包
[root@hurys22 conf]# cd /opt/soft/zepplin090/interpreter/jdbc
[root@hurys22 jdbc]# ls
ansi.sql.keywords interpreter-setting.json META-INF postgresql-native-driver-sql.keywords zeppelin-jdbc-0.9.0-preview1.jar
第1个jar包 hive-jdbc*的jar包(注意有2个,直接把hive-jdbc开头的全都导入)
[root@hurys22 jdbc]# cp /opt/soft/hive312/lib/hive-jdbc* ./
[root@hurys22 jdbc]# ls
ansi.sql.keywords hive-jdbc-3.1.2.jar interpreter-setting.json postgresql-native-driver-sql.keywords
hadoop-common-3.1.3.jar hive-jdbc-handler-3.1.2.jar META-INF zeppelin-jdbc-0.9.0-preview1.jar
第2个jar包 hadoop-common-3.1.3.jar
[root@hurys22 jdbc]# cp /opt/soft/hadoop313/share/hadoop/common/hadoop-common-3.1.3.jar ./
[root@hurys22 jdbc]# ls
ansi.sql.keywords hive-jdbc-3.1.2-standalone.jar META-INF zeppelin-jdbc-0.9.0-preview1.jar
hadoop-common-3.1.3.jar interpreter-setting.json postgresql-native-driver-sql.keywords
(七)进入bin目录,然后启动zepplin
[root@hurys22 conf]# cd ../bin/
[root@hurys22 bin]# ./zeppelin-daemon.sh start
Zeppelin start [ OK ]
[root@hurys22 bin]# jps
21761 ZeppelinServer
启动成功!
http://hurys22:8000
注意:conf里的zeppelin-site.xml文件可以修改端口号
<property>
<name>zeppelin.server.port</name>
<value>8000</value>
<description>Server port.</description>
</property>
关闭zepplin
[root@hurys22 bin]# ./zeppelin-daemon.sh stop
Zeppelin stop [ OK ]