org.apache.nifi.bootstrap.Command Apache NiFi is not running

Nifi is not starting. When I run ./nifi.sh status it gives the error like,

org.apache.nifi.bootstrap.Command Apache NiFi is not running

I am getting below error in log nifi-app.log file:

2016-12-21 11:54:30,653 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader Determined default nifi.properties path to be '/root/HDF-2.0.0.0/nifi/./conf/nifi.properties'
2016-12-21 11:54:30,663 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader Loaded 121 properties from /root/HDF-2.0.0.0/nifi/./conf/nifi.properties
2016-12-21 11:54:30,674 INFO [main] org.apache.nifi.NiFi Loaded 121 properties
2016-12-21 11:54:30,681 INFO [main] org.apache.nifi.BootstrapListener Started Bootstrap Listener, Listening for incoming requests on port 39604
2016-12-21 11:54:30,692 ERROR [main] org.apache.nifi.NiFi Failure to launch NiFi due to java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0_101]
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[na:1.8.0_101]
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0_101]
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0_101]
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_101]
    at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0_101]
    at java.net.Socket.connect(Socket.java:538) ~[na:1.8.0_101]
    at org.apache.nifi.BootstrapListener.sendCommand(BootstrapListener.java:100) ~[nifi-runtime-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
    at org.apache.nifi.BootstrapListener.start(BootstrapListener.java:83) ~[nifi-runtime-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
    at org.apache.nifi.NiFi.<init>(NiFi.java:102) ~[nifi-runtime-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
    at org.apache.nifi.NiFi.main(NiFi.java:262) ~[nifi-runtime-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
2016-12-21 11:54:30,694 INFO [Thread-1] org.apache.nifi.NiFi Initiating shutdown of Jetty web server...
2016-12-21 11:54:30,695 INFO [Thread-1] org.apache.nifi.NiFi Jetty web server shutdown completed (nicely or otherwise).
2016-12-21 11:57:07,288 INFO [main] org.apache.nifi.NiFi Launching NiFi...

for me, using openjdk 8 instead of 9 works.

Nifi is not starting. When I run ./nifi.sh status it gives the error like, org.apache.nifi.​bootstrap.Command Apache NiFi is not running I am getting below error in log  If NiFi is not running when you execute a "./nifi.sh restart" command, I woudl expect to see "org.apache.nifi.bootstrap.Command Apache NiFi is not running" logged in the nifi-bootstrap.log. The restart command issues stop and start actions (the stop action would trigger this log line output).

Go to the nifi folder and check under bin folder nifi.sh is there or not and run below command in linux because you are running on linux machine not windows so don't run batch file here.

bin/nifi.sh start

bin/nifi.sh status

bin/nifi.sh stop.

bin/nifi.sh not detecting already running instances. Status: 2015-08-21 13:40:​07,783 INFO [main] org.apache.nifi.bootstrap.Command  Permissions should be changed so that only the owner can read this file 2017-08-03 09:39:33,993 INFO [main] org.apache.nifi.bootstrap.Command Launched Apache NiFi with Process ID 5084 2017-08-03 09:39:36,639 WARN [NiFi Bootstrap Command Listener] org.apache.nifi.bootstrap.RunNiFi Failed to set permissions so that only the owner can read pid

Check and kill running processes which are already using same port with Nifi.

Double-clicking the “run-nifi.bat” will not start the application successfully. NiFi is a persistent application, so you will need to open a command prompt not >> 2018-06-15 13:55:44,400 INFO [main] org.apache.nifi.bootstrap. 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.

[main] org.apache.nifi.bootstrap.Command > Apache NiFi is not running > > > which java > returns > /usr/bin/java > > which is not a directory  Apache NiFi can run on something as simple as a laptop, but it can also be clustered across many enterprise-class servers. Therefore, the amount of hardware and memory needed will depend on the size and nature of the dataflow involved.

2017-06-12 18:01:51,063 INFO [NiFi Bootstrap Command Listener] org.apache.​nifi.bootstrap.RunNiFi Apache NiFi now running and listening  Apache NiFi Overview - Provides an overview of what Apache NiFi is, what it does, and why it was created. Apache NiFi User Guide - A fairly extensive guide that is often used more as a Reference Guide, as it has pretty lengthy discussions of all of the different components that comprise the application.

nifi/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java. Find file Copy path (the "License"); you may not use this file except in compliance with. * the License. We use the "ps" command to check if the process is still running. Will not restart NiFi 2017-07-04 14:03:26,828 INFO [main] o.a.n.b.NotificationServiceManager Successfully loaded the following 0 services: [] 2017-07-04 14:03:26,834 INFO [main] org.apache.nifi.bootstrap.RunNiFi Registered no Notification Services for Notification Type NIFI_STARTED 2017-07-04 14:03:26,835 INFO [main] org.apache.nifi.bootstrap

Comments
  • Fixed code indentation
  • What is your question, please? "I'm getting an error" is not a question.
  • Sankay,Are you faced that error while run run-nifi.bat ?
  • Nifi is not starting. when I run ./nifi.sh status it gives the error like, org.apache.nifi.bootstrap.Command Apache NiFi is not runnin
  • ./run-nifi.bat ./run-nifi.bat: line 1: @echo: command not found : command not founde 2: rem ./run-nifi.bat: line 3: syntax error near unexpected token (' ./run-nifi.bat: line 3: rem Licensed to the Apache Software Foundation (ASF) under one or m're