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.

Cannot access Nifi Web UI after set nifi.web.http.host

Cannot access Nifi Web UI after set nifi.web.http.host

Explorer

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, example: http://luan-ht01:8080/nifi/ . Do you have any solutions? Thank you very much.

I 'm using Nifi 1.9.0.


3 REPLIES 3
Highlighted

Re: Cannot access Nifi Web UI after set nifi.web.http.host

Super Mentor

@luan ha

Are you sure that "lunc-ht01" is your Public Hostname (OR) Private hostname ?

Is that public hostname "lunc-ht01" mapped with IP Address "107.113.193.160" ?

On the Nifi Host can you please try running the following command and share the output.

# curl -s http://169.254.169.254/latest/meta-data/public-hostname -o /tmp/public-hostname.txt  ; cat /tmp/public-hostname.txt 

# cat  /etc/hosts

# hostname -f

# netstat -tnlpa | grep 8080

.

Can you check your Local machine where you are opening the web browser to verify your "/etc/hosts" file to see if it is pointing to the Private IP Address of "lunc-ht01" ? On your Local machine where you are opening the browser.

# cat /etc/hosts

# telnet 107.113.193.160  8080
(OR)
# nc -v  107.113.193.160  8080

.



Highlighted

Re: Cannot access Nifi Web UI after set nifi.web.http.host

Community Manager

The above question and the entire response thread below was originally posted in the Community Help track. On Sun Jun 30 21:03 UTC 2019, a member of the HCC moderation staff moved it to the Data Ingestion & Streaming track. The Community Help Track is intended for questions about using the HCC site itself, not technical questions about the Nifi Web UI.

Bill Brooks, Community Manager
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Highlighted

Re: Cannot access Nifi Web UI after set nifi.web.http.host

@luan ha

If you want to be able to access the NiFi UI via all of those URLs, then you will have to clear the nifi.web.http.host property.

Don't have an account?
Coming from Hortonworks? Activate your account here