Created 07-07-2017 07:42 PM
Hi,
Getting the below error during nifi startup:
Exception in thread "main" java.net.BindException: Cannot assign requested address (Bind failed) at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.bind(ServerSocket.java:329) at org.apache.nifi.bootstrap.NiFiListener.start(NiFiListener.java:38) at org.apache.nifi.bootstrap.RunNiFi.start(RunNiFi.java:1022) at org.apache.nifi.bootstrap.RunNiFi.main(RunNiFi.java:216)
I've left nifi.properties default and verified ports not being used
nifi.web.http.host=
nifi.web.http.port=8080
any ideas?
Created 07-07-2017 08:22 PM
What is the output of the following: netstat -ant |grep LISTEN
Created 08-09-2017 05:13 AM
Hi everybody,
I'm installing Nifi with Ambari on AWS EC2.
I got a similar error. What shall I do? Here the nifi-app.log:
2017-08-09 04:42:52,225 WARN [main] org.apache.nifi.web.server.JettyServer Failed to start web server... shutting down. java.net.BindException: Cannot assign requested address at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:433) at sun.nio.ch.Net.bind(Net.java:425) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:298) at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80) at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.server.Server.doStart(Server.java:431) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:705) at org.apache.nifi.NiFi.<init>(NiFi.java:160) at org.apache.nifi.NiFi.main(NiFi.java:267) 2017-08-09 04:42:52,228 INFO [Thread-1] org.apache.nifi.NiFi Initiating shutdown of Jetty web server... 2017-08-09 04:42:52,236 INFO [Thread-1] o.eclipse.jetty.server.AbstractConnector Stopped ServerConnector@25b88b09{HTTP/1.1,[http/1.1]}{<FQDN-of-my-EC2-instance>:9090} 2017-08-09 04:42:52,236 INFO [Thread-1] org.eclipse.jetty.server.session Stopped scavenging
Created 08-09-2017 05:29 AM
My first suggestion would be that another process is already using port 8080. You can check using
netstat -na|grep LISTEN|grep 8080