Home Forums HDP on Linux – Installation Hosts "Name" column is blank

This topic contains 2 replies, has 2 voices, and was last updated by  Matias Kvaternik 8 months ago.

  • Creator
    Topic
  • #50495

    Matias Kvaternik
    Participant

    Hi,

    I have a provisioned a small 4-node Hadoop cluster with ambari, and all went fairly smooth and I can manage and view information about the cluster through the console, there is one small glitch however: None of the server hostnames show up in the console view (under Hosts). I do see 4 records, and IP address is listed and also I see the green status circle, but for some reason the hostname is not there. What method is ambari using to resolve IP to hostname? I have /etc/hosts entries across the board.
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #50557

    Matias Kvaternik
    Participant

    Thanks Jeff. This appears to give good results. some JSON with the right info. E.g.:

    {
    “href” : “http://10.0.0.112:8080/api/v1/hosts”,
    “items” : [
    {
    “href” : “http://10.0.0.112:8080/api/v1/hosts/dmnode01.demo.dm4h.ec2″,
    “Hosts” : {
    “cluster_name” : “DM4H”,
    “host_name” : “dmnode01.demo.dm4h.ec2″
    }
    },
    {
    “href” : “http://10.0.0.112:8080/api/v1/hosts/dmnode02.demo.dm4h.ec2″,
    “Hosts” : {
    “cluster_name” : “DM4H”,
    “host_name” : “dmnode02.demo.dm4h.ec2″
    }
    }, ……

    As for the setup, it’s standard /etc/hosts entries. We’re in an amazon VPC. There are no reverse lookup entries on the IP addresses, and I’m guessing that’s why servers are blank, but why is ambari trying to reverse lookup the IP if all hosts are registered already successfully. Everything works great except for this one anomaly.

    Collapse
    #50536

    Jeff Sposetti
    Moderator

    Using the REST API, what is the output of this call (to your ambari server)?

    http://your.ambari.server:8080/api/v1/hosts

    Anything special about your network configuration? Public and private networks?

    Collapse
Viewing 2 replies - 1 through 2 (of 2 total)