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.

can't able to start nifi.sh in

Solved Go to solution

can't able to start nifi.sh in

when i tried to run nifi

bin]# ./nifi.sh start Java home: /usr/jdk64/jdk1.8.0_112/ NiFi home: /usr/src/nifi-1.6.0 Bootstrap Config File: /usr/src/nifi-1.6.0/conf/bootstrap.conf

bin]#

nifi.app.log

2018-08-25 05:04:09,166 INFO [main] org.apache.nifi.NiFi Launching NiFi... 2018-08-25 05:04:09,452 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader Determined default nifi.properties path to be '/usr/src/nifi-1.6.0/./conf/nifi.properties' 2018-08-25 05:04:09,455 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader Loaded 146 properties from /usr/src/nifi-1.6.0/./conf/nifi.properties 2018-08-25 05:04:09,462 INFO [main] org.apache.nifi.NiFi Loaded 146 properties 2018-08-25 05:04:09,470 INFO [main] org.apache.nifi.BootstrapListener Started Bootstrap Listener, Listening for incoming requests on port 45601 2018-08-25 05:04:09,475 ERROR [main] org.apache.nifi.NiFi Failure to launch NiFi due to java.net.ConnectException: Connection refused (Connection refused) java.net.ConnectException: Connection refused (Connection refused) at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at java.net.Socket.connect(Socket.java:538) at org.apache.nifi.BootstrapListener.sendCommand(BootstrapListener.java:100) at org.apache.nifi.BootstrapListener.start(BootstrapListener.java:83) at org.apache.nifi.NiFi.<init>(NiFi.java:102) at org.apache.nifi.NiFi.<init>(NiFi.java:71) at org.apache.nifi.NiFi.main(NiFi.java:292) 2018-08-25 05:04:09,475 INFO [Thread-1] org.apache.nifi.NiFi Initiating shutdown of Jetty web server... 2018-08-25 05:04:09,476 INFO [Thread-1] org.apache.nifi.NiFi Jetty web server shutdown completed (nicely or otherwise). 2018-08-25 05:18:38,994 INFO [main] org.apache.nifi.NiFi Launching NiFi... 2018-08-25 05:18:39,278 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader Determined default nifi.properties path to be '/usr/src/nifi-1.6.0/./conf/nifi.properties' 2018-08-25 05:18:39,281 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader Loaded 146 properties from /usr/src/nifi-1.6.0/./conf/nifi.properties 2018-08-25 05:18:39,289 INFO [main] org.apache.nifi.NiFi Loaded 146 properties 2018-08-25 05:18:39,297 INFO [main] org.apache.nifi.BootstrapListener Started Bootstrap Listener, Listening for incoming requests on port 42511 2018-08-25 05:18:39,301 ERROR [main] org.apache.nifi.NiFi Failure to launch NiFi due to java.net.ConnectException: Connection refused (Connection refused) java.net.ConnectException: Connection refused (Connection refused) at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at java.net.Socket.connect(Socket.java:538) at org.apache.nifi.BootstrapListener.sendCommand(BootstrapListener.java:100) at org.apache.nifi.BootstrapListener.start(BootstrapListener.java:83) at org.apache.nifi.NiFi.<init>(NiFi.java:102) at org.apache.nifi.NiFi.<init>(NiFi.java:71) at org.apache.nifi.NiFi.main(NiFi.java:292) 2018-08-25 05:18:39,302 INFO [Thread-1] org.apache.nifi.NiFi Initiating shutdown of Jetty web server... 2018-08-25 05:18:39,302 INFO [Thread-1] org.apache.nifi.NiFi Jetty web server shutdown completed (nicely or otherwise). 2018-08-25 05:25:03,091 INFO [main] org.apache.nifi.NiFi Launching NiFi... 2018-08-25 05:25:03,443 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader Determined default nifi.properties path to be '/usr/src/nifi-1.6.0/./conf/nifi.properties' 2018-08-25 05:25:03,446 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader Loaded 146 properties from /usr/src/nifi-1.6.0/./conf/nifi.properties 2018-08-25 05:25:03,453 INFO [main] org.apache.nifi.NiFi Loaded 146 properties 2018-08-25 05:25:03,462 INFO [main] org.apache.nifi.BootstrapListener Started Bootstrap Listener, Listening for incoming requests on port 34170 2018-08-25 05:25:03,466 ERROR [main] org.apache.nifi.NiFi Failure to launch NiFi due to java.net.ConnectException: Connection refused (Connection refused) java.net.ConnectException: Connection refused (Connection refused) at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at java.net.Socket.connect(Socket.java:538) at org.apache.nifi.BootstrapListener.sendCommand(BootstrapListener.java:100) at org.apache.nifi.BootstrapListener.start(BootstrapListener.java:83) at org.apache.nifi.NiFi.<init>(NiFi.java:102) at org.apache.nifi.NiFi.<init>(NiFi.java:71) at org.apache.nifi.NiFi.main(NiFi.java:292) 2018-08-25 05:25:03,467 INFO [Thread-1] org.apache.nifi.NiFi Initiating shutdown of Jetty web server... 2018-08-25 05:25:03,467 INFO [Thread-1] org.apache.nifi.NiFi Jetty web server shutdown completed (nicely or otherwise).

nifi-boostrap.log

/nifi.properties -Dnifi.bootstrap.listen.port=35814 -Dapp=NiFi -Dorg.apache.nifi.bootstrap.config.log.dir=/usr/src/nifi-1.6.0/logs org.apache.nifi.NiFi 2018-08-25 05:25:02,775 INFO [main] org.apache.nifi.bootstrap.Command Launched Apache NiFi with Process ID 3121 2018-08-25 05:25:03,777 INFO [main] org.apache.nifi.bootstrap.RunNiFi NiFi never started. Will not restart NiFi

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: can't able to start nifi.sh in

Cloudera Employee
@Hariprasanth Madhavan

Nifi on start , tries to launch a bootstrap process which tries to connect to ports available on the server(host). In your case, it was trying to connect to port(42511) in first instance of startup and port(34170) in second instance of start up. But ports seems to have blocked, hence you are getting connection refused. Please check your firewall settings.

1 REPLY 1
Highlighted

Re: can't able to start nifi.sh in

Cloudera Employee
@Hariprasanth Madhavan

Nifi on start , tries to launch a bootstrap process which tries to connect to ports available on the server(host). In your case, it was trying to connect to port(42511) in first instance of startup and port(34170) in second instance of start up. But ports seems to have blocked, hence you are getting connection refused. Please check your firewall settings.

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