Installing and configuring JDK
Install Java Development Kit (JDK) 21 on every host where NiFi or NiFi Registry will run.
You can use one of the following JDK distributions:
- Azul Zulu OpenJDK
- OpenJDK
- Oracle JDK
Cloudera recommends Azul Zulu OpenJDK.
Installing JDK 21 on RHEL8
-
Install one of the supported JDK distributions.
-
Configure the Azul RPM repository.
sudo dnf install -y https://cdn.azul.com/zulu/bin/zulu-repo-1.0.0-1.noarch.rpm -
Install Azul Zulu JDK 21.
sudo dnf install zulu21-jdk
-
Download the JDK 21 RPM package appropriate for your system from the Oracle Java downloads page.
-
Install Oracle JDK 21.
sudo dnf install ./jdk-21_linux-x64_bin.rpm
-
Install OpenJDK 21.
sudo dnf install java-21-openjdk-devel
-
-
Verify that Java 21 is installed.
java -version
Configuring JDK for NiFi and NiFi Registry
After installing JDK, follow these steps to configure it for NiFi and NiFi Registry.
-
Configure JDK for NiFi.
- Open Cloudera Manager.
- Navigate to the NiFi service.
- Locate the nifi.jdk.home configuration property.
- Set the property to the absolute path of the JDK installation
directory.
For example: /usr/lib/jvm/zulu21-jdk
-
Configure JDK for NiFi Registry.
- In Cloudera Manager, navigate to the NiFi Registry service.
- Locate the nifi.registry.jdk.home configuration property.
- Set the property to the absolute path of the JDK installation directory.
-
Save your changes.
-
Restart NiFi and NiFi Registry to apply the configuration.
After installing and configuring the JDK, install and configure a supported database for NiFi Registry.
