Installing and configuring JDK
To use NiFi and NiFi Registry, you must install Java Development Kit (JDK) 21 and configure it on each machine where these services will run. You can choose any JDK distribution, but Cloudera recommends using Azul’s zulu21-jdk.
Installing JDK on RHEL8
-
Setup the Azul RPM repository.
sudo dnf install -y https://cdn.azul.com/zulu/bin/zulu-repo-1.0.0-1.noarch.rpm
-
Install zulu21-jdk.
sudo dnf install zulu21-jdk
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 its value to the absolute path of the folder where the JDK
is installed.
For example: /usr/lib/jvm/zulu21-jdk
-
Configure JDK for NiFi Registry.
- Open Cloudera Manager.
- Navigate to the NiFi Registry service.
- Locate the nifi.registry.jdk.home configuration property.
- Set its value to the absolute path of the folder where the JDK is installed.
-
Save your changes and restart the services to apply the configuration.
Once you have installed the JDK, ensure that you have the required database installed and set up for NiFi Registry.