〇Apache Zeppelinの画面
〇構築方法
以下のVagrantfileを使用して、Apache Zeppelin 0.8.1とAdoptOpenJDK11をインストールした仮想マシンを構築する事ができます。
Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/centos-7.6"
config.vm.hostname = "co76zeppelin081"
config.vm.provider :virtualbox do |vbox|
vbox.name = "co76zeppelin081"
vbox.gui = true
vbox.cpus = 2
vbox.memory = 2048
end
config.vm.network "public_network", ip: "192.168.1.104", :netmask => "255.255.255.0"
config.vm.provision "shell", inline: <<-SHELL
localectl set-locale LANG=ja_JP.UTF-8
yum install -y epel-release
yum check-update
yum -y update
timedatectl set-timezone Asia/Tokyo
# install AdoptOpenJDK11
cd /opt
wget https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.3%2B7/OpenJDK11U-jdk_x64_linux_hotspot_11.0.3_7.tar.gz
tar xvfz OpenJDK11U-jdk_x64_linux_hotspot_11.0.3_7.tar.gz
cat << EOF > /etc/profile.d/jdk.sh
export JAVA_HOME=/opt/jdk-11.0.3+7
export PATH=\\$PATH:\\$JAVA_HOME/bin
EOF
# install Apache Zeppelin
wget https://www-eu.apache.org/dist/zeppelin/zeppelin-0.8.1/zeppelin-0.8.1-bin-all.tgz
tar xvfz zeppelin-0.8.1-bin-all.tgz
mv zeppelin-0.8.1-bin-all /opt/zeppelin
cat << EOF > /etc/systemd/system/zeppelin.service
[Unit]
Description=Apache Zeppelin
[Service]
Type=forking
Environment=JAVA_HOME=/opt/jdk-11.0.3+7
ExecStart=/opt/zeppelin/bin/zeppelin-daemon.sh start
ExecStop=/opt/zeppelin/bin/zeppelin-daemon.sh stop
WorkingDirectory=/opt/zeppelin
KillMode=process
PrivateTmp=true
[Install]
WantedBy=multi-user.target
EOF
systemctl enable zeppelin.service
systemctl start zeppelin.service
echo 'access http://192.168.1.104:8080'
SHELL
end
〇関連情報
・プロジェクトWebサイト
https://zeppelin.apache.org/