Reply
New Contributor
Posts: 1
Registered: ‎11-19-2013

Host Inspector fails to run on all hosts

The Host inspector  picks up the first IP in /etc/hosts and validates it againsts the other IPs in the /etc/hosts ending in failure

 

/etc/hosts:

========

127.0.0.1   localhost

::1         localhost

 

162.209.126.118 hadoop2bg

2001:4802:7800:0001:839e:a3e4:ff20:07b0 hadoop2bg

10.176.8.21     hadoop2bg

#----------added by SRB rc.local

192.168.3.129    masterbg

192.168.3.130    backupbg

192.168.3.131   hadoop1bg

192.168.3.132   hadoop2bg

192.168.3.133   hadoop3bg

#-----------

 

input.json:

========

  "thisHost" : {

    "hostname" : "hadoop2bg",

    "id" : 2,

    "ipAddress" : "162.209.126.118"

  }

 

output.json

=========

"etcHostsMessages" : [ {

    "args" : [ "hadoop2bg", "2001:4802:7800:0001:839e:a3e4:ff20:07b0", "162.209.126.118" ],

    "messageId" : "message.inspector.etcHosts.hostnameMatchesWrongIp"

  }, {

    "args" : [ "hadoop2bg", "10.176.8.21", "162.209.126.118" ],

    "messageId" : "message.inspector.etcHosts.hostnameMatchesWrongIp"

  }, {

    "args" : [ "hadoop2bg", "192.168.3.132", "162.209.126.118" ],

    "messageId" : "message.inspector.etcHosts.hostnameMatchesWrongIp"

  } ],

 

Posts: 416
Topics: 51
Kudos: 84
Solutions: 49
Registered: ‎06-26-2013

Re: Host Inspector fails to run on all hosts

This is not a Cloudera Manager/Host Inspector thing, that is the expected behavior of name service lookups.  The first entry in the /etc/hosts file that matches the host name will be returned.  The others will not be found.  

 

I'm not sure what you're trying to accomplish by giving the same hostname different addresses, but usually this is handled by giving each unique interface of that host a different host name.  In other words, you could have entries for hadoop2bg, hadoop2bg-ipv6, and hadoop2bg-int (for your internal 10.176 address).

 

Also note that Hadoop does not currently support IPv6, so you'll not want your hadoop services binding to an IPv6 address/interface.

Announcements