ubuntu@hadoop:~$ hostname host-192-130-3-18.openstacklocal
ubuntu@hadoop:~$ host host-192-130-3-18.openstacklocal
Host host-192-130-3-18.openstacklocal not found: 3(NXDOMAIN)
ubuntu@hadoop:~$ host 22.214.171.124 Host 126.96.36.199.in-addr.arpa. not found: 3(NXDOMAIN)
I feel my hdp is not working because of this. Can someone comment on it. I can edit the hostname by hostname abc
but i dont know how it work. Your valuable comments will be highly appreciated.
I can do a hostname and it returns me
host command is a dns utility , just like nslookup. Do you have DNS configured? You can try the command
#getent hosts <hostname>
Can you please explain more about hdp is not working, what error you see when you try to start services?
In addition to rguruvannagari comment.
- When you get "Host 188.8.131.52.in-addr.arpa. not found: 3" this it is not good as Because all the hosts in your system must be configured for both forward and and reverse DNS. If you are unable to configure DNS in this way, you should edit the /etc/hosts file on every host in your cluster to contain the IP address and Fully Qualified Domain Name of each of your hosts.
Hadoop relies heavily on DNS, and as such performs many DNS lookups during normal operation. it is not must to have the "host" utlility installed. But it is better to have it.
@Jay SenSharma @rguruvannagari Than you guys. Yes forward and reverse dns lookup is important for multi cluster but i for me it was not necessary.. However, i am working on a single node cluster(virual server on cloud). It has two ip address one is called floating ip. That is used to communicate outside the machine. The other is its actual ip. So I was using floating ip in the hosts file. That was failing the resource manager with the error given below. Now it sounds good and RM is running fine and i could run a MR example job too.
INFO client.RMProxy: Connecting to ResourceManager at hadoop.localdomain/127.0.1.1:805016/12/21 11:58:20 INFO ipc.Client: Retrying connect to server: hadoop.localdomain/127.0.1.1:8050. Already tried 0 time(s); retry policy is RetryUpToMaxi sleepTime=1000 MILLISECONDS)