I am installing Cloudera Manager in my system(14.04/64b).

While installing at the final step, before finish installation I got some ERRORs in validation as shown below,

enter image description here

errors in above page are,

  1. ERROR 1

    Individual hosts resolved their own hostnames correctly.

    Host localhost expected to have name localhost but resolved (InetAddress.getLocalHost().getHostName()) itself to arul-pc.

  2. ERROR 2

    The following errors were found while checking /etc/hosts...

    • The hostname localhost is not the first match for address in /etc/hosts on localhost. Instead, arul-pc is the first match. The FQDN must be the first entry in /etc/hosts for the corresponding IP.
    • In /etc/hosts on localhost, the IP is present multiple times. A given IP should only be listed once.


In my /etc/hosts,       localhost       arul-pc

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Note 2(my try)::

I tried to avoid arul-pc from /etc/hosts/ as,       localhost
#      arul-pc

after saved and Run again, Error 2 cleared, but Error 1 changed as,

Individual hosts resolved their own hostnames correctly.

Host localhost failed to execute InetAddress.getLocalHost() with error: arul-pc: arul-pc. This typically means that the hostname could not be resolved.


The configuration in /etc/hosts that removed the warning for me was

#       localhost  cloudera2

localhost is commented and I only use the machine ip the machine hostname is also cloudera2

if you don't want to expose your machine, then use only  cloudera2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.