Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Point NiFi to a separate JDK 8

avatar
Expert Contributor

We have a VM with JDK 7 and a number of things depend on it. We are installing NiFi v1.2 but this one is compatible with JDK 8 only. We cannot remove JDK 7 because we cannot risk to break the dependency. Is it possible to install JDK 8 and point NiFi to use this, without changing the JAVA_HOME variable pointing to JDK 7?

1 ACCEPTED SOLUTION

avatar
Master Mentor
@J. D. Bacolod

You can point NiFi directly at the Java 8 java command.

Modify the following line in NiFi's bootstrap.conf file:

# Java command to use when running NiFi
java=java

change:

 java=java

to:

java=<path to JDK 8>/bin/java

Thanks,

Matt

If you find this answer addressed your question, please mark answer as accepted.

View solution in original post

1 REPLY 1

avatar
Master Mentor
@J. D. Bacolod

You can point NiFi directly at the Java 8 java command.

Modify the following line in NiFi's bootstrap.conf file:

# Java command to use when running NiFi
java=java

change:

 java=java

to:

java=<path to JDK 8>/bin/java

Thanks,

Matt

If you find this answer addressed your question, please mark answer as accepted.