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.

NiFi Web UI not working -Facing ERROR- ERR_CONNECTION_REFUSED

Highlighted

NiFi Web UI not working -Facing ERROR- ERR_CONNECTION_REFUSED

New Contributor

Every thing is running fine But the Nifi UI is not working. I have tried everything that are given below:.

  • selinux is disabled
  • I look into the files: nifi-app.log and nifi-bootstarp.log i didn't get any error. Everything is fine
  • i have changed the port 8080 to 8075 from nifi.properties file
  • /bin/nifi.sh status command i got the response: 2017-06-11 19:02:30,402 INFO [main] org.apache.nifi.bootstrap.Command Apache NiFi is currently running, listening to Bootstrap on port 45613, PID=8707
  • i have tried this in both browser chrome and IE but got the same response
  • i have restart Nifi a number of times but it doesn't help me.

Please can anyone help me to resolve my issue.

2 REPLIES 2

Re: NiFi Web UI not working -Facing ERROR- ERR_CONNECTION_REFUSED

Master Guru

@Ahmad Mehr

When you start NiFi, the UI does not become available until the application has completed loading.

/bin/nifi.sh status

The above command simply shows that the application is running, but does not indicate the UI is available yet.

To verify that NiFi has completed the startup process and the UI is now available, you will need to look in the nifi-app.log for the following lines:

2017-06-12 09:16:16,029 INFO [main] org.apache.nifi.web.server.JettyServer NiFi has started. The UI is available at the following URLs:
2017-06-12 09:16:16,029 INFO [main] org.apache.nifi.web.server.JettyServer http://<HOSTNAME>:8075/nifi
2017-06-12 09:16:16,031 INFO [main] org.apache.nifi.BootstrapListener Successfully initiated communication with Bootstrap
2017-06-12 09:16:16,031 INFO [main] org.apache.nifi.NiFi Controller initialization took 14617467433 nanoseconds.

Until you see these log lines, the UI will not be accessible.

You can also run the following linux command to see if "something" is listening on port 8075 yet:

netstat -ant|grep LISTEN|grep 8075

Thank you,

Matt

Re: NiFi Web UI not working -Facing ERROR- ERR_CONNECTION_REFUSED

New Contributor

The problem may be is the host the NiFi web server listens on. Try to change the following parameter in Ambari then restart NiFi and wait a minute:

FROM: nifi.web.http.host={{nifi_node_host}}

TO: nifi.web.http.host=0.0.0.0