Zeppelin is a web-based open source framework that makes interactive data analysis feasible. It has functions such as data analysis and data visualization.
1. Unzip the installation package
Network disk resources are provided here
Link: https://pan.baidu.com/s/16pIoHL6ApGAs063cTOUYUg?pwd=ffq6 Extraction code: ffq6
The following is the zeppein installation package and the rar compressed package above are some required jar packages, which can be decompressed locally.
tar -zxvf /opt/install/zeppelin-0.10.0-bin-all.tgz -C /opt/soft/
Change the name to something simpler
cd /opt/soft
mv zeppelin-0.10.0-bin-all/ zeppelin010
Modify environment variables
vim /etc/profile
#ZEPPELIN
export ZEPPELIN_HOME=/opt/soft/zeppelin010
export PATH=$ZEPPELIN_HOME/bin:$PATH
After modifying the source,
source /etc/profile
2. Modify the configuration file
(1)zeppelin-site.xml
Copy an initial configuration file zeppelin-site.xml in the conf directory
cd zeppelin010/conf/
cp ./zeppelin-site.xml.template ./zeppelin-site.xml
Modify the zeppelin-site.xml file
vim ./zeppelin-site.xml
In fact, you can just use the default one. The top one is your IP and the bottom one is the port for accessing the website later.
<property>
<name>zeppelin.server.addr</name>
<value>172.25.38.169</value>
<description>Server binding address</description>
</property>
<property>
<name>zeppelin.server.port</name>
<value>8000</value>
<description>Server port.</description>
</property>
(2)zeppelin-env.sh
Copy and edit the configuration file zeppelin-env.sh
cp ./zeppelin-env.sh.template ./zeppelin-env.sh
vim ./zeppelin-env.sh
Find the content below and change it to your own address
export JAVA_HOME=/opt/soft/jdk180
export HADOOP_CONF_DIR=/opt/soft/hadoop313/etc/hadoop
3. Turning zeppelin on and off
Open command
zeppelin-daemon.sh start
close command
zeppelin-daemon.sh stop
Log in to the web page http://yourip:8000
Four zeppelin configuration hive
(1) Copy hive-site.xml to the conf directory
At this time, the directory is /opt/soft/zeppelin010/conf
cp /opt/soft/hive312/conf/hive-site.xml ./
(2) Copy the jar package to the jdbc directory
At this time, the directory is /opt/soft/zeppelin010/interpreter/jdbc
cp /opt/soft/hadoop313/share/hadoop/common/hadoop-common-3.1.3.jar ./
cp /opt/soft/hive312/lib/curator-client-2.12.0.jar ./
cp /opt/soft/hive312/lib/guava-27.0-jre.jar ./
cp /opt/soft/hive312/lib/hive-common-3.1.2.jar ./
cp /opt/soft/hive312/lib/hive-jdbc-3.1.2.jar ./
cp /opt/soft/hive312/lib/hive-serde-3.1.2.jar ./
cp /opt/soft/hive312/lib/hive-service-3.1.2.jar ./
cp /opt/soft/hive312/lib/hive-service-rpc-3.1.2.jar ./
cp /opt/soft/hive312/lib/libthrift-0.9.3.jar ./
cp /opt/soft/hive312/lib/protobuf-java-2.5.0.jar ./
(3) Upload the four jar packages decompressed from the rar compressed package to the jdbc directory
Five web pages add hive connection configuration