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.

Unable to install NiFi on windows

Unable to install NiFi on windows

New Contributor

I'm unable to install Nifi, I can't check the logs of file. provided are the screenshots of cmd, nifi-app.log and nifi-bootstrap.log,

cmd:

\bin>run-nifi.bat
2018-08-03 22:53:28,736 INFO [main] org.apache.nifi.bootstrap.Command Starting Apache NiFi...
2018-08-03 22:53:28,739 INFO [main] org.apache.nifi.bootstrap.Command Working Directory: C:\Users\siri\DOWNLO~1\NIFI-1~1.1
2018-08-03 22:53:28,739 INFO [main] org.apache.nifi.bootstrap.Command Command: C:\Program Files\Java\jdk1.8.0_171\bin\java.exe -classpath C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\conf;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\javax.servlet-api-3.1.0.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\jcl-over-slf4j-1.7.25.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\jetty-schemas-3.1.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\jul-to-slf4j-1.7.25.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\log4j-over-slf4j-1.7.25.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\logback-classic-1.2.3.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\logback-core-1.2.3.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\nifi-api-1.7.1.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\nifi-framework-api-1.7.1.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\nifi-nar-utils-1.7.1.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\nifi-properties-1.7.1.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\nifi-runtime-1.7.1.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\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 -XX:+UseG1GC -Djava.protocol.handler.pkgs=sun.net.www.protocol -Dnifi.properties.file.path=C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\conf\nifi.properties -Dnifi.bootstrap.listen.port=49835 -Dapp=NiFi -Dorg.apache.nifi.bootstrap.config.log.dir=C:\Users\siri\DOWNLO~1\NIFI-1~1.1\bin\..\\logs org.apache.nifi.NiFi
2018-08-03 22:53:30,610 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read pid file C:\Users\siri\DOWNLO~1\NIFI-1~1.1\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-08-03 22:53:30,669 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read status file C:\Users\siri\DOWNLO~1\NIFI-1~1.1\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-08-03 22:53:30,732 INFO [main] org.apache.nifi.bootstrap.Command Launched Apache NiFi with Process ID 12568

Nifi-app.log

2018-08-03 22:53:30,403 INFO [main] org.apache.nifi.NiFi Launching NiFi...
2018-08-03 22:53:31,685 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader Determined default nifi.properties path to be 'C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\conf\nifi.properties'
2018-08-03 22:53:31,695 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader Loaded 148 properties from C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\conf\nifi.properties
2018-08-03 22:53:31,711 INFO [main] org.apache.nifi.NiFi Loaded 148 properties
2018-08-03 22:53:32,052 INFO [main] org.apache.nifi.BootstrapListener Started Bootstrap Listener, Listening for incoming requests on port 49836
2018-08-03 22:53:32,155 INFO [main] org.apache.nifi.BootstrapListener Successfully initiated communication with Bootstrap
2018-08-03 22:53:32,248 INFO [main] org.apache.nifi.nar.NarUnpacker Expanding 98 NAR files with all processors...

Nifi-bootstrap.log

2018-08-03 22:53:28,638 INFO [main] o.a.n.b.NotificationServiceManager Successfully loaded the following 0 services: []
2018-08-03 22:53:28,655 INFO [main] org.apache.nifi.bootstrap.RunNiFi Registered no Notification Services for Notification Type NIFI_STARTED
2018-08-03 22:53:28,657 INFO [main] org.apache.nifi.bootstrap.RunNiFi Registered no Notification Services for Notification Type NIFI_STOPPED
2018-08-03 22:53:28,658 INFO [main] org.apache.nifi.bootstrap.RunNiFi Registered no Notification Services for Notification Type NIFI_DIED
2018-08-03 22:53:28,736 INFO [main] org.apache.nifi.bootstrap.Command Starting Apache NiFi...
2018-08-03 22:53:28,739 INFO [main] org.apache.nifi.bootstrap.Command Working Directory: C:\Users\siri\DOWNLO~1\NIFI-1~1.1
2018-08-03 22:53:28,739 INFO [main] org.apache.nifi.bootstrap.Command Command: C:\Program Files\Java\jdk1.8.0_171\bin\java.exe -classpath C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\conf;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\javax.servlet-api-3.1.0.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\jcl-over-slf4j-1.7.25.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\jetty-schemas-3.1.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\jul-to-slf4j-1.7.25.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\log4j-over-slf4j-1.7.25.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\logback-classic-1.2.3.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\logback-core-1.2.3.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\nifi-api-1.7.1.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\nifi-framework-api-1.7.1.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\nifi-nar-utils-1.7.1.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\nifi-properties-1.7.1.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\lib\nifi-runtime-1.7.1.jar;C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\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 -XX:+UseG1GC -Djava.protocol.handler.pkgs=sun.net.www.protocol -Dnifi.properties.file.path=C:\Users\siri\DOWNLO~1\NIFI-1~1.1\.\conf\nifi.properties -Dnifi.bootstrap.listen.port=49835 -Dapp=NiFi -Dorg.apache.nifi.bootstrap.config.log.dir=C:\Users\siri\DOWNLO~1\NIFI-1~1.1\bin\..\\logs org.apache.nifi.NiFi 
2018-08-03 22:53:30,610 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read pid file C:\Users\siri\DOWNLO~1\NIFI-1~1.1\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-08-03 22:53:30,669 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read status file C:\Users\siri\DOWNLO~1\NIFI-1~1.1\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-08-03 22:53:30,732 INFO [main] org.apache.nifi.bootstrap.Command Launched Apache NiFi with Process ID 12568
2018-08-03 22:53:32,088 WARN [NiFi Bootstrap Command Listener] org.apache.nifi.bootstrap.RunNiFi Failed to set permissions so that only the owner can read pid file C:\Users\siri\DOWNLO~1\NIFI-1~1.1\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-08-03 22:53:32,117 WARN [NiFi Bootstrap Command Listener] org.apache.nifi.bootstrap.RunNiFi Failed to set permissions so that only the owner can read status file C:\Users\siri\DOWNLO~1\NIFI-1~1.1\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-08-03 22:53:32,154 INFO [NiFi Bootstrap Command Listener] org.apache.nifi.bootstrap.RunNiFi Apache NiFi now running and listening for Bootstrap requests on port 49836
1 REPLY 1
Highlighted

Re: Unable to install NiFi on windows

Guru

I don't see any errors in your logs other than changing permissions issue which shouldn't stop Nifi from coming up. If you have full list of processors, initial start can be longer, please retry in 5-10 minutes after start.

Please also check for running processes (with netstat to see if any java/nifi processes are running).