Support Questions

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

Launched Apache NiFi but could not determined the Process ID

avatar
Explorer

I switched over from one Nifi version to another and I am now getting this error in the command prompt

 

 

2022-08-29 13:16:49,926 INFO [main] org.apache.nifi.bootstrap.Command Failed to determine Process ID from [java.lang.ProcessImpl]: java.lang.Process.pid()
2022-08-29 13:16:49,926 WARN [main] org.apache.nifi.bootstrap.Command Launched Apache NiFi but could not determined the Process ID

 

With the following logs:

 

2022-08-29 13:16:49,909 INFO [main] org.apache.nifi.bootstrap.Command Working Directory: C:\Users\*\DOWNLO~1\NIFI-1~2.0-B\NIFI-1~1.0
2022-08-29 13:16:49,918 INFO [main] org.apache.nifi.bootstrap.Command Command: C:\Program Files\Java\jre1.8.0_333\bin\java.exe -classpath 
C:\Users\*\DOWNLO~1\NIFI-1~2.0-B\NIFI-1~1.0\.\conf;C:\Users\*\DOWNLO~1\NIFI-1~2.0-B\NIFI-1~1.0\.\lib\javax.servlet-api-3.1.0.jar;C:\Users\*\DOWNLO~1\NIFI-1~2.0-B\NIFI-1~1.0\.\lib\jcl-over-slf4j-1.7.36.jar;C:\Users\*\DOWNLO~1\NIFI-1~2.0-B\NIFI-1~1.0\.\lib\jetty-schemas-5.2.jar;C:\Users\*\DOWNLO~1\NIFI-1~2.0-B\NIFI-1~1.0\.\lib\jul-to-slf4j-1.7.36.jar;C:\Users\*\DOWNLO~1\NIFI-1~2.0-B\NIFI-1~1.0\.\lib\log4j-over-slf4j-1.7.36.jar;C:\Users\*\DOWNLO~1\NIFI-1~2.0-B\NIFI-1~1.0\.\lib\logback-classic-1.2.11.jar;C:\Users\*\DOWNLO~1\NIFI-1~2.0-B\NIFI-1~1.0\.\lib\logback-core-1.2.11.jar;C:\Users\*\DOWNLO~1\NIFI-1~2.0-B\NIFI-1~1.0\.\lib\nifi-api-1.17.0.jar;C:\Users\*\DOWNLO~1\NIFI-1~2.0-B\NIFI-1~1.0\.\lib\nifi-framework-api-1.17.0.jar;C:\Users\*\DOWNLO~1\NIFI-1~2.0-B\NIFI-1~1.0\.\lib\nifi-nar-utils-1.17.0.jar;C:\Users\*\DOWNLO~1\NIFI-1~2.0-B\NIFI-1~1.0\.\lib\slf4j-api-1.7.36.jar -Dorg.apache.jasper.compiler.disablejsr199=true -Xmx512m -Xms512m -Dcurator-log-only-first-connection-issue-as-error-level=true -Djavax.security.auth.useSubjectCredsOnly=true -Djava.security.egd=file:/dev/urandom -Dzookeeper.admin.enableServer=false -Dsun.net.http.allowRestrictedHeaders=true -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Djava.protocol.handler.pkgs=sun.net.www.protocol -Dnifi.properties.file.path=C:\Users\*\DOWNLO~1\NIFI-1~2.0-B\NIFI-1~1.0\.\conf\nifi.properties -Dnifi.bootstrap.listen.port=51521 -Dapp=NiFi -Dorg.apache.nifi.bootstrap.config.log.dir=C:\Users\*\DOWNLO~1\NIFI-1~2.0-B\NIFI-1~1.0\bin\..\\logs org.apache.nifi.NiFi 
2022-08-29 13:16:49,926 INFO [main] org.apache.nifi.bootstrap.Command Failed to determine Process ID from [java.lang.ProcessImpl]: java.lang.Process.pid()
2022-08-29 13:16:49,926 WARN [main] org.apache.nifi.bootstrap.Command Launched Apache NiFi but could not determined the Process ID
2022-08-29 13:16:50,572 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\*\DOWNLO~1\NIFI-1~2.0-B\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
2022-08-29 13:16:50,576 INFO [NiFi Bootstrap Command Listener] org.apache.nifi.bootstrap.RunNiFi Apache NiFi now running and listening for Bootstrap requests on p

 

2 REPLIES 2

avatar
New Contributor

Did you solve this ? 

 

avatar
Super Mentor

@Jacccs  
Was the nifi-app.log created?  If so, what was observed in that log?
Please share the exact versions of NiFi you used.

Have you tried using a Java JDK instead of Java JRE?

Thanks,

Matt