I believe those warnings are given with Java 11 as well. Java 12 is not
officially supported, but that's not to say it's incompatible with NiFi
since the delta between it and Java 11 is not that big. I would recommend
avoiding any experimental features bundled with Java 12 and stick to ones
that the OpenJDK team says are stable in Java 12. For production scenarios,
Java 8 or Java 11 would be strongly recommended over Java 12.

On Tue, Jul 16, 2019 at 7:27 PM Hamza Mesbahi <[email protected]>
wrote:

> Hello,
>
> I've downloaded NiFi 1.9.2. and installed it on my Windows 10 using cmd
> window. I currently have Java 12 installed on my computer and executable
> from Path.
> When I input the following command: "Start run-nifi.bat" I get the usual
> gibberish but towards the end 10-15 lines this is what I get: WARNING: An
> illegal reflective access operation has occurred
> WARNING: Illegal reflective access by
> org.apache.nifi.bootstrap.util.OSUtils
> (file:/C:/Nifi/nifi-1.9.2/lib/bootstrap/nifi-bootstrap-1.9.2.jar) to method
> java.lang.ProcessImpl.pid()
> WARNING: Please consider reporting this to the maintainers of
> org.apache.nifi.bootstrap.util.OSUtils
> WARNING: Use --illegal-access=warn to enable warnings of further illegal
> reflective access operations
> WARNING: All illegal access operations will be denied in a future release
> 2019-07-16 15:50:26,289 WARN [main] org.apache.nifi.bootstrap.Command
> Failed to set permissions so that only the owner can read pid file
> C:\Nifi\NIFI-1~1.2\bin\..\run\nifi.pid; this may allows others to have
> access to the key needed to communicate with NiFi. Permissions should be
> changed so that only the owner can read this file
> 2019-07-16 15:50:26,293 WARN [main] org.apache.nifi.bootstrap.Command
> Failed to set permissions so that only the owner can read status file
> C:\Nifi\NIFI-1~1.2\bin\..\run\nifi.status; this may allows others to have
> access to the key needed to communicate with NiFi. Permissions should be
> changed so that only the owner can read this file
> 2019-07-16 15:50:26,321 INFO [main] org.apache.nifi.bootstrap.Command
> Launched Apache NiFi with Process ID 2112
> I've been doing some research and have found that for a while Nifi wasn't
> compatible with Java 11, however now it is. But I have Java 12 installed,
> is Nifi 1.9.2 compatible with Java 12 SDK or is that the issue resulting in
> that log output?
>
> Thanks,
>
> Hamza
>

Reply via email to