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.
I recommend using Ubuntu 18.04 as the operating system
Let’s tick the two boxes indicated by an arrow.
Add the ssh key to connect to the machine, you can create keys using puttygen.
Finally, let’s wait for the machine to be created by pressing the create button.
Apache Nifi on Google Cloud
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
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
Open a browser software, enter the IP address of your Apache Nifi server plus :8080/nifi
See you in the next article..
Microsoft Azure Open Source Big Data & Analytic Service – HDInsight