Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Run Nifi on Windowserver2017 but got Warning and Nifi is not run

Run Nifi on Windowserver2017 but got Warning and Nifi is not run

New Contributor

WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.apache.nifi.bootstrap.util.OSUtils (file:/C:/NiFi/lib/bootstrap/nifi-bootstrap-1.6.0.jar) to field java.lang.ProcessImpl.handle 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 2018-05-14 02:33:51,278 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read pid file C:\NiFi\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 2018-05-14 02:33:51,278 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read status file C:\NiFi\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

This message shows in nifi-bootstrap LOG

2018-05-14 03:06:38,655 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read pid file C:\NiFi\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 2018-05-14 03:06:38,655 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read status file C:\NiFi\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 2018-05-14 03:06:38,671 INFO [main] org.apache.nifi.bootstrap.Command Launched Apache NiFi with Process ID 4540 2018-05-14 03:06:39,436 WARN [NiFi Bootstrap Command Listener] org.apache.nifi.bootstrap.RunNiFi Failed to set permissions so that only the owner can read pid file C:\NiFi\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 2018-05-14 03:06:39,436 WARN [NiFi Bootstrap Command Listener] org.apache.nifi.bootstrap.RunNiFi Failed to set permissions so that only the owner can read status file C:\NiFi\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 2018-05-14 03:06:39,436 INFO [NiFi Bootstrap Command Listener] org.apache.nifi.bootstrap.RunNiFi Apache NiFi now running and listening for Bootstrap requests on port 54851 2018-05-14 03:07:54,310 INFO [main] org.apache.nifi.bootstrap.RunNiFi NiFi never started. Will not restart NiFi

And this is App LOG

java.util.ServiceConfigurationError: org.apache.nifi.authorization.Authorizer: Provider org.apache.nifi.authorization.FileAuthorizer could not be instantiated at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:581) at java.base/java.util.ServiceLoader.access$100(ServiceLoader.java:390) at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:803) at java.base/java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:721) at java.base/java.util.ServiceLoader$3.next(ServiceLoader.java:1394) at org.apache.nifi.nar.ExtensionManager.loadExtensions(ExtensionManager.java:148) at org.apache.nifi.nar.ExtensionManager.discoverExtensions(ExtensionManager.java:123) at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:771) at org.apache.nifi.NiFi.<init>(NiFi.java:157) at org.apache.nifi.NiFi.<init>(NiFi.java:71) at org.apache.nifi.NiFi.main(NiFi.java:292) Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException at org.apache.nifi.authorization.FileAuthorizer.<init>(FileAuthorizer.java:43) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488) at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:779) ... 8 common frames omitted Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:566) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499) ... 14 common frames omitted 2018-05-14 03:07:53,294 INFO [Thread-0] org.apache.nifi.NiFi Initiating shutdown of Jetty web server... 2018-05-14 03:07:53,294 INFO [Thread-0] org.apache.nifi.NiFi Jetty web server shutdown completed (nicely or otherwise).

2 REPLIES 2
Highlighted

Re: Run Nifi on Windowserver2017 but got Warning and Nifi is not run

Super Guru

@Ryan A

I think the issue is with incompatible java version, use JAVA 8 version.

If you haven't set JAVA_HOME then set in environment variables with path Like "C:/program files/jdk1.8"

Jira addressing when NiFi run with java 9 version and the issue not resolved yet

https://issues.apache.org/jira/browse/NIFI-4419

Highlighted

Re: Run Nifi on Windowserver2017 but got Warning and Nifi is not run

New Contributor

Thank you Shu. it works

Don't have an account?
Coming from Hortonworks? Activate your account here