Hi Tao,

Can you run the following API call from the Ambari Server host?
Please replace the hostnames and jdk_location appropriately.

curl -i -uadmin:admin -H 'X-Requested-By: ambari' -d '{
  "RequestInfo": {
    "action": "check_host",
    "context": "Check host",
    "parameters": {
      "check_execute_list": "host_resolution_check",
      "hosts": "c6401.ambari.apache.org, c6402.ambari.apache.org, 
c6403.ambari.apache.org",
      "jdk_location":"/usr/jdk64/jdk1.7.0_67",
      "threshold": "20"
    }
  },
  "Requests/resource_filters": [
    {
      "hosts": 
"c6401.ambari.apache.org,c6402.ambari.apache.org,c6403.ambari.apache.org"
    }
  ]
}' http://localhost:8081/api/v1/requests

After you make the call, you will get a response like:
{
  "href" : "http://localhost:8081/api/v1/requests/32";,
  "Requests" : {
    "id" : 32,
    "status" : "InProgress"
  }
}

Note the "id", and make the following call (replace id 32 with the actual id 
you get):
curl -i -u admin:admin 
http://localhost:8080/api/v1/requests/32/tasks?fields=Tasks/*

Keep calling the above call until the checks complete.
You should be able to see what went wrong.

I hope this helps,
Yusaku

From: <Yu>, Tao <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Friday, February 13, 2015 11:48 AM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: (Host Checks) Hostname Resolution Issues

Hi all,

I am trying to create a stack through Ambari Web "install wizard". At step 
"Confirm Hosts", all nodes pass "registration", but one node reports "Hostname 
Resolution Issues", with this detailed report:

######################################
# Hostname Resolution
#
# A newline delimited list of hostname resolution issues.
######################################
HOSTNAME RESOLUTION ISSUES
vm-galaxy03.aware.com could not resolve: .


I do not see any difference between this node (vm-galaxy03.aware.com) and 
others.  Could any one help?

Thanks,
-Tao

Reply via email to