I’ve followed the installation procedure from here and when I reach the Inspect Role Assignments stage I only see one managed host: localhost.localdomain.
Any subsequent attempts to add other hosts have the same outcome:
- each cluster host installation is successful
- and the host does not show up as managed
What am I missing?
Update: I don’t like to answer my own questions so I am writing my answer here.
The solution is so obvious that I cloud not see it and left the problem unresolved for quite some time until it hit me while doing some checks.
The hostname provided at installation time was set in /etc/hosts for the IP 127.0.0.1 and localhost.localdomain witch was misleading for the Cloudera setup and basically made all hosts to have the same IP and hostname.
I’ve redone the setup with hostname.domain.local and now the hosts file feature a separate line with the specific IP and hostname and the /etc/resolv.conf file has line with search domain.local.
Even thou after this unpleasant experience I think that the installation documentation should feature these small details but, it’s like stating the obvious.
Looks like Cloudera (possibly recently) added a blurb about this to their documentation. I’ve been having this problem for a while, and the key for me was getting the following command to give correct results:
My soution involved setting up a local DNS server, but perhaps just having the same /etc/hosts on every node would have been sufficient. YMMV.