Apache Zeppelin User Guide



Apache Zeppelin

Apache Zeppelin is web-based notebook that helps data scientist, data analyst, data engineer and business analyst to build the data-driven, interactive data analytics and collaborative documents with programming languages like Python, R, SQL, Scala and many more.

Apache Zeppelin official website: https://zeppelin.apache.org



Apache Zeppelin Download URL: https://zeppelin.apache.org/download.html



URL: http://mirrors.estointernet.in/apache/zeppelin/zeppelin-0.8.1/zeppelin-0.8.1-bin-all.tgz



Or Download Apache Zeppelin compressed file using wget command

wget http://mirrors.estointernet.in/apache/zeppelin/zeppelin-0.8.1/zeppelin-0.8.1-bin-all.tgz





Install Apache Zeppelin

Extract Apache Zeppelin downloaded compressed file into /opt linux location
sudo tar xf zeppelin-0.8.1-bin-all.tgz -C /opt


Rename the directory from zeppelin-0.8.1-bin-all to zeppelin
sudo mv zeppelin-0.8.1-bin-all /opt/zeppelin



Configure Zeppelin application as Systemd service Create a user for running the Zeppelin process sudo adduser -d /opt/zeppelin -s /sbin/nologin zeppelin Set the ownership of the files to the newly created Zeppelin user "zeppelin" sudo chown -R zeppelin:zeppelin /opt/zeppelin


Create a new Systemd service unit file using sudo vi /etc/systemd/system/zeppelin.service



Populate the file with the following content [Unit] Description=Zeppelin Service After=syslog.target network.target [Service] Type=forking ExecStart=/opt/zeppelin/bin/zeppelin-daemon.sh start ExecStop=/opt/zeppelin/bin/zeppelin-daemon.sh stop ExecReload=/opt/zeppelin/bin/zeppelin-daemon.sh reload User=zeppelin Group=zeppelin Restart=always [Install] WantedBy=multi-user.target





Disable Anonymous Access

To disable the default anonymous access, go to the conf folder of zeppelin cd /opt/zeppelin/conf Rename the template file from zeppelin-env.sh.template to zeppelin-env.sh sudo cp zeppelin-env.sh.template zeppelin-env.sh Rename the template file from zeppelin-site.xml.template to zeppelin-site.xml sudo cp zeppelin-site.xml.template zeppelin-site.xml


Open the zeppelin-site.xml using vi editor sudo vi zeppelin-site.xml Change the value of the property "zeppelin.anonymous.allowed" from true to false


And also change the value of the property "zeppelin.server.port" from 8080 to 8090(as per your wish)




Enable Shiro Authentication

As we have disabled the anonymous access to Zeppelin application, we need to enable some kind of authentication mechanism so that privileged users can log in. Apache Zeppelin uses Apache Shiro authentication.

Go to the conf folder of zeppelin
cd /opt/zeppelin/conf

Rename the template file from shiro.ini.template to shiro.ini

sudo cp shiro.ini.template shiro.ini

Open the shiro.ini using vi editor

sudo vi shiro.ini

Replace the following lines from

[users] # List of users with their password allowed to access Zeppelin. # To use a different strategy (LDAP / Database / ...) check the shiro doc at http://shiro.apache.org/configuration.html#Configuration-INISections # To enable admin user, uncomment the following line and set an appropriate password. #admin = password1, admin user1 = password2, role1, role2 user2 = password3, role3 user3 = password4, role2 To [users] # List of users with their password allowed to access Zeppelin. # To use a different strategy (LDAP / Database / ...) check the shiro doc at http://shiro.apache.org/configuration.html#Configuration-INISections # To enable admin user, uncomment the following line and set an appropriate password. datamaking = dm123$, admin ctv = ctv123$, role1, role2 #user2 = password3, role3 #user3 = password4, role2





Start the Zeppelin Service

 Run the below command to start the zeppelin service sudo systemctl start zeppelin Enable Zeppelin service to automatically start at system boot sudo systemctl enable zeppelin To check if the Zeppelin service is running, you can run the following command sudo systemctl status zeppelin


Login Zeppelin Application

Use the below Url http://34.73.102.250:8090









Create new notebook run simple python code







Happy Learning !!!

Post a Comment

0 Comments