Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

I am unable to start Apache Nifi.,I am unable to start Apache Nifi. After running run-nifi.bat, I am getting following error.

avatar
New Contributor

I am getting the following error while starting the Apache Nifi.

D:\nifi-1.8.0\bin>run-nifi.bat

2019-02-02 10:38:23,873 INFO [main] org.apache.nifi.bootstrap.Command Starting Apache NiFi...
2019-02-02 10:38:23,874 INFO [main] org.apache.nifi.bootstrap.Command Working Directory: C:\Demo\NIFI-1~1.0
2019-02-02 10:38:23,875 INFO [main] org.apache.nifi.bootstrap.Command Command: C:\Program Files\Java\jdk-11.0.2\bin\java.exe -classpath C:\Demo\NIFI-1~1.0\.\conf;C:\Demo\NIFI-1~1.0\.\lib\javax.servlet-api-3.1.0.jar;C:\Demo\NIFI-1~1.0\.\lib\jcl-over-slf4j-1.7.25.jar;C:\Demo\NIFI-1~1.0\.\lib\jetty-schemas-3.1.jar;C:\Demo\NIFI-1~1.0\.\lib\jul-to-slf4j-1.7.25.jar;C:\Demo\NIFI-1~1.0\.\lib\log4j-over-slf4j-1.7.25.jar;C:\Demo\NIFI-1~1.0\.\lib\logback-classic-1.2.3.jar;C:\Demo\NIFI-1~1.0\.\lib\logback-core-1.2.3.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-api-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-framework-api-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-nar-utils-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-properties-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-runtime-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\lib\slf4j-api-1.7.25.jar -Dorg.apache.jasper.compiler.disablejsr199=true -Xmx512m -Xms512m -Djavax.security.auth.useSubjectCredsOnly=true -Djava.security.egd=file:/dev/urandom -Dsun.net.http.allowRestrictedHeaders=true -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Djava.protocol.handler.pkgs=sun.net.www.protocol -XX:+UseG1GC -Dnifi.properties.file.path=C:\Demo\NIFI-1~1.0\.\conf\nifi.properties -Dnifi.bootstrap.listen.port=51328 -Dapp=NiFi -Dorg.apache.nifi.bootstrap.config.log.dir=C:\Demo\NIFI-1~1.0\bin\..\\logs --add-modules=java.xml.bind org.apache.nifi.NiFi
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.nifi.bootstrap.util.OSUtils (file:/C:/Demo/nifi-1.8.0/lib/bootstrap/nifi-bootstrap-1.8.0.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-02-02 10:38:23,912 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read pid file C:\Demo\NIFI-1~1.0\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-02-02 10:38:23,959 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read status file C:\Demo\NIFI-1~1.0\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

nifi-bootstrap Log

2019-02-02 10:38:23,759 INFO [main] o.a.n.b.NotificationServiceManager Successfully loaded the following 0 services: []
2019-02-02 10:38:23,773 INFO [main] org.apache.nifi.bootstrap.RunNiFi Registered no Notification Services for Notification Type NIFI_STARTED
2019-02-02 10:38:23,774 INFO [main] org.apache.nifi.bootstrap.RunNiFi Registered no Notification Services for Notification Type NIFI_STOPPED
2019-02-02 10:38:23,774 INFO [main] org.apache.nifi.bootstrap.RunNiFi Registered no Notification Services for Notification Type NIFI_DIED
2019-02-02 10:38:23,873 INFO [main] org.apache.nifi.bootstrap.Command Starting Apache NiFi...
2019-02-02 10:38:23,874 INFO [main] org.apache.nifi.bootstrap.Command Working Directory: C:\Demo\NIFI-1~1.0
2019-02-02 10:38:23,875 INFO [main] org.apache.nifi.bootstrap.Command Command: C:\Program Files\Java\jdk-11.0.2\bin\java.exe -classpath C:\Demo\NIFI-1~1.0\.\conf;C:\Demo\NIFI-1~1.0\.\lib\javax.servlet-api-3.1.0.jar;C:\Demo\NIFI-1~1.0\.\lib\jcl-over-slf4j-1.7.25.jar;C:\Demo\NIFI-1~1.0\.\lib\jetty-schemas-3.1.jar;C:\Demo\NIFI-1~1.0\.\lib\jul-to-slf4j-1.7.25.jar;C:\Demo\NIFI-1~1.0\.\lib\log4j-over-slf4j-1.7.25.jar;C:\Demo\NIFI-1~1.0\.\lib\logback-classic-1.2.3.jar;C:\Demo\NIFI-1~1.0\.\lib\logback-core-1.2.3.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-api-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-framework-api-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-nar-utils-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-properties-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\lib\nifi-runtime-1.8.0.jar;C:\Demo\NIFI-1~1.0\.\lib\slf4j-api-1.7.25.jar -Dorg.apache.jasper.compiler.disablejsr199=true -Xmx512m -Xms512m -Djavax.security.auth.useSubjectCredsOnly=true -Djava.security.egd=file:/dev/urandom -Dsun.net.http.allowRestrictedHeaders=true -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Djava.protocol.handler.pkgs=sun.net.www.protocol -XX:+UseG1GC -Dnifi.properties.file.path=C:\Demo\NIFI-1~1.0\.\conf\nifi.properties -Dnifi.bootstrap.listen.port=51328 -Dapp=NiFi -Dorg.apache.nifi.bootstrap.config.log.dir=C:\Demo\NIFI-1~1.0\bin\..\\logs --add-modules=java.xml.bind org.apache.nifi.NiFi 
2019-02-02 10:38:23,912 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read pid file C:\Demo\NIFI-1~1.0\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-02-02 10:38:23,959 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read status file C:\Demo\NIFI-1~1.0\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-02-02 10:38:24,002 INFO [main] org.apache.nifi.bootstrap.Command Launched Apache NiFi with Process ID 8560
2019-02-02 10:38:24,100 INFO [NiFi logging handler] org.apache.nifi.StdOut Error occurred during initialization of boot layer
2019-02-02 10:38:24,101 INFO [NiFi logging handler] org.apache.nifi.StdOut java.lang.module.FindException: Module java.xml.bind not found
2019-02-02 10:38:25,015 INFO [main] org.apache.nifi.bootstrap.RunNiFi NiFi never started. Will not restart NiFi

There is no log generated in file nifi-app.

Please help. I am new to Apache nifi and want to start exploring it asap.

1 REPLY 1

avatar
Super Mentor

@Angana Saha

-

I looks like you are trying to use Java 11 to run your NiFi instance. NiFi 1.8 supports Java 8.

As of Java 9 the java.se aggregate module does not include the Java EE APIs.

This is why you are seeing the following:
org.apache.nifi.StdOut java.lang.module.FindException:Module java.xml.bind not found

-

I suggest installing the latest version of Java 8 and see if NiFI launches fine for you then.

There is on going work to add support for Java 9 - 11 in future releases of NiFi.

-

Thank you,

Matt