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.
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.
#/bin/bash export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
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.
Download the Apache Nifi package.
tar -zxvf 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
Open a browser software, enter the IP address of your Apache Nifi server plus :8080/nifi
See you in the next article..
2,727 views last month, 35 views today