How To Install Apache Zeppelin on CentOS 7

Install Apache Zeppelin on CentOS 7

In this tutorial we will show you how to install Apache Zeppelin on CentOS 7 server. For those of you who didn’t know, Apache Zeppelin is an online open source laptop and collaborative application for interactive data ingestion, discovery, analytics, and visualization. Zeppelin supports 20+ languages, including Apache Spark, SQL, R, Elasticsearch and many more. Apache Zeppelin allows you to make beautiful data-driven documents and see the results of your analytics.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step install Apache Zeppelin on CentOS 7 server.

Install Apache Zeppelin on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing Java.

At the time of writing this tutorial, the latest Java JDK version was JDK 8u45. First, let us download the latest Java SE Development Kit 8 release from its official download page or use following commands to download from shell:

After extracting archive file use alternatives command to install it. alternatives command is available in chkconfig package:

At this point JAVA 8 (JDK 8u45) has been successfully installed on your system. We also recommend to setup javac and jar commands path using alternatives:

Checking Installed java version:

We can easily set the environment variables using the export command as shown below:

Setup JAVA_HOME Variable:

Setup JRE_HOME Variable:

Setup PATH Variable:

Step 3. Installing Zeppelin.

First, download the Zeppelin binary on your system. You can always find the latest version of the application on Zeppelin download page:

Rename the directory for sake of convenience:

Step 4. Configure Systemd service for Apache Zeppelin.

We will set up a Systemd unit file for the Zeppelin application:

Provide ownership of the files to the newly created Zeppelin user:

Next, Create a new Systemd service unit file:

Then, Start the application:

Step 5. Configure Reverse Proxy Nginx.

By default, the Zeppelin server listens to localhost on port 8080. In this tutorial, we will use Nginx as a reverse proxy so that the application can be accessed via standard HTTP and HTTPS ports:

Start Nginx and enable it to automatically start at boot time:

Next, Generate the SSL certificates:

The generated certificates are likely to be stored in /etc/letsencrypt/live/ The SSL certificate will be stored as fullchain.pem and private key will be stored as privkey.pem.

Set up auto-renewal of the certificates Let’s Encrypt using cron jobs:

Next steps, create a new server block file for the Zeppelin site:

Restart Nginx so that the changes can take effect:

Step 6. Accessing Apache Zeppelin.

Apache Zeppelin will be available on HTTP port 80 by default. Open your favorite browser and navigate to and complete the required the steps to finish the installation. If you are using a firewall, please open port 80 to enable access to the control panel.

Congratulation’s! You have successfully installed Apache Zeppelin on CentOS 7. Thanks for using this tutorial for installing Apache Zeppelin on CentOS 7 systems. For additional help or useful information, we recommend you to check the official Apache Zeppelin web site.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!