Reply
Explorer
Posts: 16
Registered: ‎12-21-2017
Accepted Solution

How to configure to access web ui (like hue) via ip address instead host name?

I have installed cdh successfully and it runs well.

 

But there is one problem now: Whenever I open the web ui included in a module, like Hue or HDFS , the link is presented by the host name rather than ip address. Even though I can replace the host name by ip address manually,  it is very uncomfortable. I don't have administrator access to my computer, so editting the local host file is impossible. 

 

How to solve it? 

Posts: 602
Topics: 1
Kudos: 141
Solutions: 75
Registered: ‎04-22-2014

Re: How to configure to access web ui (like hue) via ip address instead host name?

@darouwan,

 

I am not clear on what you links or hostnames you are trying to change.  Can you share a screenshot or two to help us understand?

 

Thanks!

Explorer
Posts: 16
Registered: ‎12-21-2017

Re: How to configure to access web ui (like hue) via ip address instead host name?

For example, I have three nodes and change the hosts file as following:

 

10.0.1.10 master

10.0.1.11 slave1

10.0.1.12 slave2

 

After installation, if I click the NameNode WEB UI link under HDFS or HUE, the link direct me to address like master:50070. However I want to change this link to 10.0.1.10:50070 in default, since my dev computer doesn't have host info of master.  Even though I can access the HDFS namenode web ui by type 10.0.1.10:50070 manualy,  it is still a little incovenient. 

Contributor
Posts: 52
Registered: ‎01-08-2016

Re: How to configure to access web ui (like hue) via ip address instead host name?

Hello darouwan,

 

You can create an entry in your /etc/hosts file and map your IP address and hostname. This will help to resolve your query.

Explorer
Posts: 16
Registered: ‎12-21-2017

Re: How to configure to access web ui (like hue) via ip address instead host name?

Hi ,

I have tried it, however I have no authority to change the hosts file on my computer since the computer is belong to company and I am not an administrator  user. 

 

Even though I can access the web ui directly by changing local host file, it is still not available for other users. After all I cannot force every user to change his/her local host file. 

Highlighted
Contributor
Posts: 52
Registered: ‎01-08-2016

Re: How to configure to access web ui (like hue) via ip address instead host name?

Hello darouwan,

 

After reading your post, it was assumed that you only have the issue. In this case, you can have a proxy setup and have an entry in dns server redirect it to the proxy.

Explorer
Posts: 16
Registered: ‎12-21-2017

Re: How to configure to access web ui (like hue) via ip address instead host name?

Thanks a lot!

 

It may be a good idea for my issue!

Contributor
Posts: 52
Registered: ‎01-08-2016

Re: How to configure to access web ui (like hue) via ip address instead host name?

[ Edited ]

You are welcome buddy.

New Contributor
Posts: 1
Registered: ‎06-12-2018

Re: How to configure to access web ui (like hue) via ip address instead host name?

hi~ i am facing the same problem....can u show the steps to slove?

Announcements