Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Confirm Hosts Failed for a local Linux PC

New Contributor

Hello,

I would like to make a very simple installation on a local Linux PC.

So at the Install Options Target Hosts I choosed : localhost.local

I read that it should be a Fully Qualified Domain Name (FQDN) and that it should be localhost.local and not simply localhost

And then I choosed :

Perform manual registration on hosts and do not use SSH

I did perform the manual registration according to

https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.2/bk_ambari-administration/content/install_th...

where I put int the ambari-agent.ini file :

[server]
hostname=localhost.local
url_port=8440
secured_url_port=8441

then at the next install step the Confirming Hosts step is failing.

I had a look at the /var/log/ambari-agent.log file which says :

INFO 2018-07-02 14:54:15,196 PingPortListener.py:50 - Ping port listener started on port: 8670
WARNING 2018-07-02 14:54:20,199 main.py:441 - Unable to determine the IP address of the Ambari server 'localhost.local'
INFO 2018-07-02 14:54:20,200 NetUtil.py:70 - Connecting to https://localhost.local:8440/ca
WARNING 2018-07-02 14:54:25,205 NetUtil.py:101 - Failed to connect to https://localhost.local:8440/ca due to [Errno -2] Nom ou service inconnu  
WARNING 2018-07-02 14:54:25,205 NetUtil.py:124 - Server at https://localhost.local:8440 is not reachable, sleeping for 10 seconds...

Please what do you suggest to make it work ??? I only need a very simple installation (no need for ssh and other servers for the moment)

Thanks in advance !

Philippe

4 REPLIES 4

Mentor

@Philippe Kevorkian

Can you share your hosts file?

New Contributor

Sure here it is :

127.0.0.1    localhost
127.0.1.1    philippe-All-Series-Invalid-entry-length-16-Fixed-up-to-11

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

@Philippe Kevorkian

You can simply use "localhost" in config files.

However, Do update the first line with below to resolve "localhost.local"

127.0.0.1    localhost localhost.local

Mentor

@Philippe Kevorkian

Please leave all the line linked ti IPv6 and update the line as stated by Sandeep, but I am wondering what is the output of the below commands

$ hostname 

or

vi /etc/hostname

Run the below command to get your ip, please append sudo where needed

$ ifconfig

The above steops should give you the output to add in your /etc/hosts the format is IP/hostname/Alias eg

192.145.90.10     myhdp.ubuntu.com    myhdp

With the above entry you can the Alias during the registration of the hosts in Ambari

HTH

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.