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.
Review the Cloudera Enterprise Release Notes to ensure you understand which versions of JDK 8 are supported on your cluster.
- Download JDK from the appropriate website.
Run the installation command appropriate for your operating system:
Open JDK for RHEL/CentOS/SLES:
Open JDK for Ubuntu:
Oracle JDK for RHEL/CentOS/SLES:
apt-get install openjdk-8-jdk
Oracle JDK for Ubuntu
sudo yum localinstall jdk-8u161-linux-x64.rpm
sudo apt-get install oracle-java8-installer