Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Please see the Cloudera blog for information on the Cloudera Response to CVE-2021-4428

Problem login for first time in Nifi

Hi All,

My Apache Nifi is running properly but  unable to open my ec2 ubuntu IP-address in browser . I am getting This site can't be reached error. Please help me to resolve this issue .

7 REPLIES 7

Mentor

@Phanikondeti 
Please can you share how you installed your nifi , version, and install documents followed? 
The errors logs would be good to share too.

Apache nifi version : 1.14.0

installed 

java : apt-get install openjdk-8-jdk

location path : vi /etc/profile.d/java.sh

tar -zxvf nifi-1.9.2-bin.tar.gz
mv nifi-1.9.2 /opt/
ln -s /opt/nifi-1.9.2/ /opt/nifi
cd /opt/nifi
bin/nifi.sh install

Phanikondeti_0-1633355569484.png

 

 

Master Guru

@Phanikondeti 

 

Thanks for sharing the log output.  Your NiFi is not up, It failed to start because it was unable to bind to the IP and port shown in the logs.  That IP address would correlate to what you have set in either of the following properties in the nifi.properties file:

(if unsecured) nifi.web.http.host=
(if secured) nifi.web.https.host=

 

You could use ifconfig command to see if your server has a network interface with that IP assigned to it.

If it was a port issue, I'd expect you to see a log message about port already being in use or that you're trying to launch NiFi as a privileged user and tried to use a port number below 1024.

If you found this response assisted with your query, please take a moment to login and click on "Accept as Solution" below this post.

Thank you,

Matt

Error: 

org.apache.nifi.web.server.JettyServer NiFi has started, but the UI is not available on any hosts. Please verify the host properties.

Phanikondeti_0-1633438897916.png

 

Master Guru

@Phanikondeti 

Does the host or IP you configured in this property match with what is assigned to the host?

The following command will show you your NIFi host's hostname: 

 

hostname

 

The following command will show you the IP addresses associated with your network interfaces on the host:

 

ifconfig

ip address show

 

The following command will allow you to see if some process is already binding to your configured port in the nifi.web.http(s).port= property in the nifi.properties file:

 

netstat -anop|grep 8075|grep LISTEN

 

If you get a return from above, it will include a Process Id (pid) that you can lookup using:

 

ps -ef|grep <pid>

 


The latest exception you shared is different form the first:
"NiFi has started, but the UI is not available on any host". NiFi throws this WARN log line when the NiFi code returns no URLs post starting the NiFi JettyServer.

In this setup, I would guess that you set the nifi.web.http(s).host= set to either blank or 0.0.0.0.
So NiFi passes the earlier checks and start the JettyServer, but then when it tries to bind to all the network interfaces it finds known and throws the above WARN exception.  This points at a setup issue on your Amazon EC2 setup and not an issue with NiFi.  I'd use the above command to verify that your ec2 shows properly setup interfaces.  If you find issues with your ec2 unbuntu interface setup, you may need to reach out to Amazon to help there.

If you found this response assisted with your query, please take a moment to login and click on "Accept as Solution" below this post.

Thank you,

Matt

Master Guru

@Phanikondeti 

When NiFi is the bootstrap process starts a child process that may take a little time to fully start depending on size fo flowfile_repository and the size of the flow.xml.gz being loaded.

You will want to search the nifi-app.log for the following lines:

2021-10-04 18:05:57,212 INFO [main] org.apache.nifi.web.server.JettyServer NiFi has started. The UI is available at the following URLs:
2021-10-04 18:05:57,212 INFO [main] org.apache.nifi.web.server.JettyServer https://<nifi-hostname or IP>:<nifi port>/nifi
2021-10-04 18:05:57,216 INFO [main] org.apache.nifi.BootstrapListener Successfully initiated communication with Bootstrap

Until you see these lines, NiFi is still coming up and the UI will not yet be reachable.

If you do see these lines, you will want to make sure that your host where you have launched your browser can reach the hostname/IP logged in the above message.
You should also check to see which network interface your NiFi bound to on startup if you have multiple interfaces available.

If you found this response assisted with your query, please take a moment to login and click on "Accept as Solution" below this post.

Thank you,

Matt

error : 

org.apache.nifi.web.server.JettyServer NiFi has started, but the UI is not available on any hosts. Please verify the host properties.

Phanikondeti_0-1633438849310.png