Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/centos-7.4"
config.vm.hostname = "co74zeppelin"
config.vm.provider :virtualbox do |vbox|
vbox.name = "co74zeppelin"
vbox.cpus = 4
vbox.memory = 4096
vbox.customize ["modifyvm", :id, "--nicpromisc2","allow-all"]
end
# private network
config.vm.network "private_network", ip: "192.168.55.118", :netmask => "255.255.255.0"
# bridge netwrok
config.vm.network "public_network", ip: "192.168.1.118", :netmask => "255.255.255.0"
config.vm.provision "shell", inline: <<-SHELL
yum check-update
yum -y update
# javaをインストール
yum -y install java-1.8.0-openjdk
# install Apache Zeppelin
wget http://ftp.riken.jp/net/apache/zeppelin/zeppelin-0.7.3/zeppelin-0.7.3-bin-all.tgz
tar xvfz zeppelin-0.7.3-bin-all.tgz
mv zeppelin-0.7.3-bin-all /opt/zeppelin
cat << EOF > /etc/systemd/system/zeppelin.service
[Unit]
Description=Apache Zeppelin
[Service]
Type=forking
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.55.118:8080'
SHELL
end
〇Apache Zeppelinの画面
○関連情報
・Apache Zeppelinに関する他の記事はこちらを参照してください。
0 件のコメント:
コメントを投稿