Zeppelin安装教程
2023-12-28 11:24:34
#解压并重命名
#配置
#zeepline-site.xml
[root@vwmaster conf]# cp zeppelin-site.xml.template zeppelin-site.xml
[root@vwmaster conf]# vi zeppelin-site.xml
<property>
<name>zeppelin.server.addr</name>
<value>YOUR_VM_IP or HOST_NAME</value>
<description>Server binding address</description>
</property>
<property>
<name>zeppelin.server.port</name>
<value>8000</value>
<description>Server port.</description>
</property>
#zeepline-env.sh
[root@vwmaster conf]# cp zeppelin-env.sh.template zeppelin-env.sh
[root@vwmaster conf]# vi zeppelin-env.sh
export JAVA_HOME=/opt/software/jdk1.8.0_171
export HADOOP_CONF_DIR=/opt/software/hadoop-3.1.3/etc/hadoop
#权限先不做(※)
#启动metastore和hiveserver2
#修改hive关联的hdfs文件夹权限
hdfs dfs -chmod -R 777 /tmp
hdfs dfs -chmod -R 777 /hive312
#环境变量并激活
vim /etc/profile.d/my.sh
#-------------------------------------------------
# zeppelin 0.9.0
export ZEPPELIN_HOME=/opt/software/zeppelin-0.10.0
export PATH=$ZEPPELIN_HOME/bin:$PATH
#-------------------------------------------------
source /etc/profile
#zeppelin未提供hive interpreter(解释器)
#将hive的hive-site.xml拷贝至zepplin的conf下
pwd # /opt/software/hadoop/zepplin-0.10.0/conf
cp /opt/software/hadoop/hive-3.1.2/conf/hive-site.xml ./
#jar包拷贝至zepplin的interpretor/jdbc/下
#内部依赖
cp /opt/software/hadoop-3.1.3/share/hadoop/common/hadoop-common-3.1.3.jar ./
cp /opt/software/hive-3.1.2/lib/curator-client-2.12.0.jar ./
cp /opt/software/hive-3.1.2/lib/guava-27.0-jre.jar ./
cp /opt/software/hive-3.1.2/lib/hive-common-3.1.2.jar ./
cp /opt/software/hive-3.1.2/lib/hive-jdbc-3.1.2.jar ./
cp /opt/software/hive-3.1.2/lib/hive-serde-3.1.2.jar ./
cp /opt/software/hive-3.1.2/lib/hive-service-3.1.2.jar ./
cp /opt/software/hive-3.1.2/lib/hive-service-rpc-3.1.2.jar ./
cp /opt/software/hive-3.1.2/lib/libthrift-0.9.3.jar ./
cp /opt/software/hive-3.1.2/lib/protobuf-java-2.5.0.jar ./
#外部依赖
wget https://www.rarlab.com/rar/rarlinux-x64-6.0.2.tar.gz
tar -zxf rarlinux-x64-6.0.2.tar.gz -C /opt/software/
ln -s /opt/software/rar/rar /usr/local/bin/rar
ln -s /opt/software/rar/unrar /usr/local/bin/unrar
cp /opt/download/zeppelin-0.10.0-dependencies.rar /opt/software/zeppelin-0.10.0/interpreter/jdbc
cd /opt/software/zeppelin-0.10.0/interpreter/jdbc
unrar x zeppelin-0.10.0-dependencies.rar
mv zeppelin-0.10.0-dependencies/* ./
-------------------------
commons-lang-2.6.jar
httpclient-4.5.jar
httpcore-4.4.1.jar
-------------------------
#启动zeppelin
zeppelin-daemon.sh start
#访问zeppelin
http://single:8000
#web页面配置hive翻译器
# 右上角anonymous => interpreter => 右上角 create =>
Interpreter Name
hive
Interpreter group
jdbc
#=> 设置properties
default.driver org.apache.hive.jdbc.HiveDriver
default.url jdbc:hive2://single:10000
default.user root
#=> 左下角 save
#web界面 create note
# 以%hive开启作为第一行
文章来源:https://blog.csdn.net/m0_74120525/article/details/135252856
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!