Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

how does cloudera manager decide the hostname? Why doe it always use localhost?

avatar
Explorer

I installed cloudera manager a couple time with different hostname config in my machine but it always use localhost and access link like:

http://localhost:7180 but never used my real hostname.

How do I let cloudera manager use my real hostname in installation?

1 ACCEPTED SOLUTION

avatar

I believe the installer.bin may tell you to look at localhost:7180, but that doesn't (always) mean that the only way to access the web UI is through localhost. I think the message actually says something along those lines.

 

Did you try accessing the web UI via the normal host name for your machine?

 

If that didn't work, did you make sure you don't have a firewall in the way?

 

What does your host report as its own name? Use the following command to check:

python -c 'import socket; print socket.getfqdn(), socket.gethostbyname(socket.getfqdn())'

 

Thanks,

Darren

View solution in original post

5 REPLIES 5

avatar
Master Guru

Hi.

 

I'm not sure what you mean by "it always use localhost and access link"

 

Could you describe what you are doing, what you expect to have happen, and what actually happens?

 

If the host on which you installed Cloudera Manager is resolvable (via hosts file, DNS, etc.) then you should be able to access it with a hostname or use the ip too.

 

Regards,

 

Ben

 

 

avatar
Explorer

@bgooley wrote:

Hi.

 

I'm not sure what you mean by "it always use localhost and access link"

 

Could you describe what you are doing, what you expect to have happen, and what actually happens?

 

If the host on which you installed Cloudera Manager is resolvable (via hosts file, DNS, etc.) then you should be able to access it with a hostname or use the ip too.

 

Regards,

 

Ben

 

 




I want to know how cloudera manager decides what hostname to use.

Because I tried a few of different setup and try to let cloudera manager have an access link like:

http;//myhostname.mydomain:7180/

But after installation, cloudera manager alway generate link

http://localhost:7180/

avatar
Master Guru

Right, but it isn't clear what you mean by "it generates".  If you use your hostname in the URL, can you get to Cloudera Manager?  I am not sure what you are trying to configure, what page you are on, what URL you are trying to access, how, etc.

 

What, exactly, are you trying to do?

 

A fictitious example of a description may be:

 

I type the following URL in my Chrome browser, but I get redirected to a "localhost" URL that is not accessible remotely:

http://myNewCDH.mydomain.cm:7180

I expect that it would not redirect to:

http://localhost:7180/cmf/home

 

We need to undertand what you are trying to do, what you expect to have happen, and what actually happens in order to be able to help. Please clarify as much as you can.

 

Ben

avatar
Explorer

@bgooley wrote:

Right, but it isn't clear what you mean by "it generates".  If you use your hostname in the URL, can you get to Cloudera Manager?  I am not sure what you are trying to configure, what page you are on, what URL you are trying to access, how, etc.

 

What, exactly, are you trying to do?

 

A fictitious example of a description may be:

 

I type the following URL in my Chrome browser, but I get redirected to a "localhost" URL that is not accessible remotely:

http://myNewCDH.mydomain.cm:7180

I expect that it would not redirect to:

http://localhost:7180/cmf/home

 

We need to undertand what you are trying to do, what you expect to have happen, and what actually happens in order to be able to help. Please clarify as much as you can.

 

Ben


Cloudera manager points to localhost:7180 to access cloudera manager after installation. But I wish I can use

myhost.mydomain:7180 to access it.

But myhost.mydomain:7180 did not work and it is not accessiable.

 

avatar

I believe the installer.bin may tell you to look at localhost:7180, but that doesn't (always) mean that the only way to access the web UI is through localhost. I think the message actually says something along those lines.

 

Did you try accessing the web UI via the normal host name for your machine?

 

If that didn't work, did you make sure you don't have a firewall in the way?

 

What does your host report as its own name? Use the following command to check:

python -c 'import socket; print socket.getfqdn(), socket.gethostbyname(socket.getfqdn())'

 

Thanks,

Darren