I tried it, so a memo
CentOS 7 Java installed
Download the tar file
# curl -LkvOf https://ftp.jaist.ac.jp/pub/apache/zeppelin/zeppelin-0.8.2/zeppelin-0.8.2-bin-all.tgz
Extract the downloaded tar file
# tar zxf zeppelin-0.8.2-bin-all.tgz
Move the expanded directory under / opt
# mv zeppelin-0.8.2-bin-all /opt/zeppelin
Create a user to run zeppelin
# useradd zeppelin
Set environment variables as needed (here IP address)
# cp /opt/zeppelin/conf/zeppelin-env.sh.template /opt/zeppelin/conf/zeppelin-env.sh
# vi /opt/zeppelin/conf/zeppelin-env.sh
export ZEPPELIN_ADDR=<IP address to access with a browser> # Bind address (default 127.0.0.1)
Change the owner of the directory to the zeppelin execution user
# chown -R zeppelin:zeppelin /opt/zeppelin
Create a zeppelin service file
# vi /etc/systemd/system/zeppelin.service
[Unit]
Description=Apache Zeppelin Service
[Service]
Type=forking
User=zeppelin
ExecStart=/opt/zeppelin/bin/zeppelin-daemon.sh start
ExecStop=/opt/zeppelin/bin/zeppelin-daemon.sh stop
[Install]
WantedBy=multi-user.target
Reload the service file
# systemctl daemon-reload
Start
# systemctl start zeppelin
Access from a browser
Recommended Posts