Hello.
Interesting issue because in your case logs actually say that master is 
resolved because http request returned 404.
But it also say that master cannot resolve itself.
Please check master host can be accessed by name master from itself.

Also it is recommended to use FQDNs with Ambari and Hadoop. So please consider 
extending your hosts file a bit.

Regards,
Myroslav

From: 张炜 [mailto:[email protected]]
Sent: Friday, October 16, 2015 5:10 PM
To: [email protected]
Subject: Error: Your requested host "master" could not be resolved by DNS

Dear all,
I am using VMware workstation and have created 3 nodes to build a HDP cluster. 
I named the 3 nodes:
master
node1
node2

Ambari-Server got successfully installed, but when I try to start all services, 
I saw the following error message:

resource_management.core.exceptions.Fail: Execution of 'curl -sS -L -w 
'%{http_code}' -X PUT 
'http://master:50070/webhdfs/v1/tmp?op=MKDIRS&user.name=hdfs'' returned 
status_code=404.

<TITLE>Network Error</TITLE>
<big>Network Error (dns_unresolved_hostname)</big>
Your requested host "master" could not be resolved by DNS.
...

I have added in /etc/hosts the information below:

192.168.136.7   master
192.168.136.8   node1
192.168.136.9   node2

I also verified the passwordless SSH is successful between these 3 nodes.

Please let me know what configuration is needed to make the webHDFS related 
services running, currently NameNode, HMaster etc. cannot run and the cluster 
cannot be used.
Thanks a lot!


Regards,
Sai

Reply via email to