Install the JDK
You should install JDK 8 on each machine on which you will install NiFi, if your version of Cloudera Manager is not already configured with JDK 8.
- Download JDK from the appropriate website.
Run the installation command appropriate for your operating system:
apt-get install openjdk-8-jdk