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.

Can't find the name of my ambari server host

Highlighted

Can't find the name of my ambari server host

New Contributor

Hi,

I'm following the Apache Ambari Installation tutorial and I'm stuck in point 6.2 Log In to Apache Ambari.

When trying to point my web browser to

http://<your.ambari.server>:8080

I don't know which is my server's name.

I have already tried the following command:

109749-1562598276046.png

But still have not found it.

Could you please help me?

Thanks in advance.

1 REPLY 1

Re: Can't find the name of my ambari server host

Community Manager

@Nacho Bagui To really answer this question, you'd have to tell us what OS (or distribution of Linux) you're running. From the looks of the command you tried already, I'd guess you're running something that's Unix-like.

Try using the 'hostname' command at the command line:

[juser@ip-172-31-254-254 box]$ hostname
ip-172-31-254-254

…in this case, the string ip-172-31-254-254 is the hostname you can use in the browser to access Ambari.

Alternatively, you can try 'cat'-ing the /proc/sys/kernel/hostname "file", like this:

[juser@ip-172-31-254-254 box]$ cat /proc/sys/kernel/hostname
ip-172-31-254-254

…again, the string returned by the operating system, ip-172-31-254-254 is the hostname. You may need to fully qualify it in the browser.

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.
Don't have an account?
Coming from Hortonworks? Activate your account here