I have a problem about Nifi Web UI. When I set nifi.web.http.host=luan-ht01, I could not access Nifi Web UI on browsers by public IP, example: http://localhost:8080/nifi/, http://107.113.193.160:8080/nifi. I only could access Nifi Web by host name. Do you have any solutions? Thank you very much.
Your experience is the expected behavior -- when you set the hostname explicitly, that is the address on which NiFi will respond. You can leave that property value blank to have NiFi respond on all available hosts, (i.e. localhost
, 127.0.0.1
, etc.). During startup, the $NIFI_HOME/logs/nifi-app.log
file will show a listing like below, enumerating all listening hosts.
2378 │ 2019-06-18 14:25:20,738 INFO [main] org.apache.nifi.web.server.JettyServer NiFi has started. The UI is available at the following URLs:
2379 │ 2019-06-18 14:25:20,738 INFO [main] org.apache.nifi.web.server.JettyServer https://node1.nifi:9441/nifi
2381 │ 2019-06-18 14:25:20,740 INFO [main] org.apache.nifi.BootstrapListener Successfully initiated communication with Bootstrap
2382 │ 2019-06-18 14:25:20,740 INFO [main] org.apache.nifi.NiFi Controller initialization took 93674324706 nanoseconds (93 seconds).