一、zeppelin安装包
链接:https://pan.baidu.com/s/1DVmvY2TM7WmCskejTn8dzA
提取码:fl7r
二、安装zeppelin
将安装包传入Centos的/opt/install目录下
# 解压
tar -zxf /opt/install/zeppelin-0.10.0-bin-all.tgz -C /opt/soft/
# 重命名
mv /opt/soft/zeppelin-0.10.0-bin-all/ /opt/soft/zeppelin
# 还原配置文件
cp /opt/soft/zeppelin/conf/zeppelin-site.xml.template /opt/soft/zeppelin/conf/zeppelin-site.xml
修改配置文件 vim /opt/soft/zeppelin/conf/zeppelin-site.xml
<property>
<name>zeppelin.server.addr</name>
<value>192.168.136.144</value>
<description>Server binding address(zeppelin的绑定地址)</description>
</property>
<property>
<name>zeppelin.server.port</name>
<value>8090</value>
<description>Server port.(zeppelin的使用端口)</description>
</property>
还原zeppelin的环境文件:cp /opt/soft/zeppelin/conf/zeppelin-env.sh.template /opt/soft/zeppelin/conf/zeppelin-env.sh
并修改:vim /opt/soft/zeppelin/conf/zeppelin-env.sh
export JAVA_HOME=/opt/soft/jdk180
export HADOOP_HOME=/opt/soft/hadoop313
export HADOOP_CONF_DIR=/opt/soft/hadoop313/etc/hadoop
将hive的配置文件放入zeppelin中:cp /opt/soft/hive312/conf/hive-site.xml /opt/soft/zeppelin/conf/
将外部jar包放入zeppelin(包括上面下载的jar包)中:
cp /opt/soft/hive312/conf/hive-site.xml /opt/soft/zeppelin/conf/
cp /opt/soft/hive312/lib/curator-client-2.12.0.jar /opt/soft/zeppelin/interpreter/jdbc/
cp /opt/soft/hive312/lib/guava-27.0-jre.jar /opt/soft/zeppelin/interpreter/jdbc/
cp /opt/soft/hadoop313/share/hadoop/common/hadoop-common-3.1.3.jar /opt/soft/zeppelin/interpreter/jdbc/
cp /opt/soft/hive312/lib/curator-client-2.12.0.jar /opt/soft/zeppelin/interpreter/jdbc/
cp /opt/soft/hive312/lib/hive-common-3.1.2.jar /opt/soft/zeppelin/interpreter/jdbc/
cp /opt/soft/hive312/lib/hive-serde-3.1.2.jar /opt/soft/zeppelin/interpreter/jdbc/
cp /opt/soft/hive312/lib/hive-service-3.1.2.jar /opt/soft/zeppelin/interpreter/jdbc/
cp /opt/soft/hive312/lib/libthrift-0.9.3.jar /opt/soft/zeppelin/interpreter/jdbc/
cp /opt/soft/hive312/lib/protobuf-java-2.5.0.jar /opt/soft/zeppelin/interpreter/jdbc/
配置环境变量:vim /etc/profile
#zepplin
export ZEPPELIN_HOME=/opt/soft/zeppelin
export PATH=$PATH:$ZEPPELIN_HOME/bin
重载环境变量:source /etc/profile
三、启动zeppelin并配置hive
- 启动zeppelin命令:
zeppelin-daemon.sh start
- 进入zeppelin控制平台:
http://192.168.136.144:8090/#/
完成后点击下面的save添加注释器。
就可在编译器中使用hql和xshell命令。