Created 05-12-2017 05:19 PM
Hi, I have successfully installed the NIFI on HDP 2.6. NIFI service is running and there is no error or warning in nifi-app.log file. Log file says that WEB UI of NIFI can be accessed at http://172.17.0.2:8079/nifi but when I hit this URL in my browser it does not open WEB UI.
Created 05-12-2017 05:23 PM
Can you ping that IP from the machine running your browser?
Make sure there isn't a firewall blocking access to port 8079.
Thanks, Matt
Created 05-12-2017 05:23 PM
Can you ping that IP from the machine running your browser?
Make sure there isn't a firewall blocking access to port 8079.
Thanks, Matt
Created 05-12-2017 05:44 PM
Ping says unknown host .. and secondly its not being blocked by firewall.
Created 05-12-2017 05:53 PM
Try using the telnet command verify you can connect to that port:
telnet 172.17.0.2 8079
Thanks,
Matt
Created 05-12-2017 05:56 PM
What do you see in your browser when you try to connect?
What NiFi version?
What browser version?
When you attempt to access that URL, what do you see in the nifi-user.log?
Thanks,
Matt
Created 05-12-2017 06:12 PM
1) in browser it says, this site cant be reached
2) Latest Version
3) Chrome - 58.0.3029.110
4) nifi-user.log file is empty
5) Telnet command says, connection refused
Created 05-12-2017 06:29 PM
If the following command shows NiFi is still running:
./nifi.sh status
and the following command shows NiFi listening on port 8079:
netstat -ant|grep LISTEN
Then the issue is not with NiFi.
There is something external to NiFi blocking connections to port 8079 from your host where your browser is running.
What OS version is running on the server/VM where NiFi is running?
Thanks,
Matt
Created 05-12-2017 06:55 PM
Both ports 8078 and 8079 are likely not being forwarded by your HDP sandbox and will need to be added.
https://hortonworks.com/hadoop-tutorial/sandbox-port-forwarding-guide/
Thanks,
Matt
Created 05-15-2017 05:27 PM
When NiFi starts and has not been configured with a specific hostname or IP in the (nifi.web.http.host=) in the nifi.properties file, it looks to bind to the IP address registered to every NIC card present on the host system. If you try to specify a hostname or IP that does not resolve or match the IP registered to any of your NIC cards, NiFi will fail to start. NiFi can not bind to a port that belongs to an IP it does not own. You can run the "ifconfig" command on the host running NiFi to see all NICs and the IP registered to them. You should see the 172.17.x.x address and not the 192.168.x.x address shown.
It definitely sounds like there is some network address translation going on here. The fact that you can reach NiFi over http://192.68.x.x:8078// confirms this. It is simply routing all traffic from the 192.169.x.x address to the internal 172.17.x.x address. We confirmed already your browser cannot resolve a path directly to 172.17.x.x, because if you could, NiFi's UI would have opened. NiFi is in fact bound to 172.17.x.x and not 192.168.x.x. NiFi cannot control how traffic is being routed to this endpoint by the network.
Thanks,
Matt
Created on 05-12-2017 06:49 PM - edited 08-17-2019 05:56 PM
@Matt Clarke
Yeah.. Nifi is running.
netstat -ant|grep LISTEN command showed me following result for my port:
tcp 0 0 0.0.0.0:8078 0.0.0.0:* LISTEN
I have changed the port from 8079 to 8078 but still the same issue.
I am using Hortanworks Sandbox (HDP 2.6) on my Laptop Windows is OS on my Laptop.
I installed the NIFI at below path: