Apache Nifi on Google Cloud

Hello, in this article I will explain how to install Apache Nifi on Google Cloud.

First, you have to create a Google Cloud account. I assume you have done this step, you need to create a virtual machine

 

Click create new instance.

 

blank

 

I recommend using Ubuntu 18.04 as the operating system

 

blank

 

Let’s tick the two boxes indicated by an arrow.

 

blank

Add the ssh key to connect to the machine, you can create keys using puttygen.

 

blank

 

Finally, let’s wait for the machine to be created by pressing the create button.

blank

 

After the machine is created, let’s connect to our machine with ssh,

 

Java is required to install Nifi, we must first install java.

apt-get install openjdk-8-jdk

 

In our example, our Java JDK is installed under the folder: /usr/lib/jvm/java-8-openjdk-amd64

Now, you need to create an environment variable named JAVA_HOME.

 

vi /etc/profile.d/java.sh
#/bin/bash
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

 

reboot

 

Use the following command to verify if the JAVA_HOME variable was created.

env | grep JAVA_HOME

you’ll see this output ->  JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

 

Use the following command to test the Java installation.

java -version

 

Download the Apache Nifi package.

wget https://ftp.itu.edu.tr/Mirror/Apache/nifi/1.12.0/nifi-1.12.0-bin.tar.gz

blank

 

tar -zxvf nifi-1.12.0-bin.tar.gz
mv nifi-1-12.0-bin.tar.gz
nifi-1.12.0-bin.tar.gz /opt/nifi-1-12.0-bin.tar.gz /opt/nifi
cd /opt/nifi
bin/nifi.sh install
/etc/init.d/nifi start

blank

 

Open a browser software, enter the IP address of your Apache Nifi server plus :8080/nifi

 

blank

 

See you in the next article..

 

Microsoft Azure Open Source Big Data & Analytic Service – HDInsight

 2,727 views last month,  35 views today

About Deniz Parlak

blank
Hi, i’m Security Data Scientist & Data Engineer at My Security Analytics. I have experienced Advance Python, Machine Learning and Big Data tools. Also i worked Oracle Database Administration, Migration and upgrade projects. For your questions parlak.deniss@gmail.com

Check Also

blank

Apache Kafka Producer Example With Java

Hi, everyone in this tutorial we will make Kafka producer example with Java. There are …

Leave a Reply