Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

The hostname and canonical name for this host are not consistent when checked from a Java process.

The hostname and canonical name for this host are not consistent when checked from a Java process.

New Contributor

My cloudera manager reports hostname inconsistent error. The cloest thread is https://community.cloudera.com/t5/Cloudera-Manager-Installation/The-hostname-and-canonical-name-for-..., but it's for redhat dist. My dist is debian based.

 

/etc/hosts is configured with following content

 

 

# ip    hostname.domain    hostname
x.x.x.x myhost.mydomain.com myhost

 

With above setting, hostname -i, hostname -f, hostname can correctly interpete correct value.

 

If chaning to

 

# ip    hostname.domain    hostname
x.x.x.x myhost.mydomain.com myhost.mydomain.com

 

or

 

# ip    hostname.domain    hostname
x.x.x.x myhost myhost

 

Command hostname throws "hostname: Name or service not known" message.

 

Am I missing any configuration?

 

 

1 REPLY 1
Highlighted

Re: The hostname and canonical name for this host are not consistent when checked from a Java proces

Super Guru

@willnopt,

 

The inconsistent notification message is generated based on the output of:

# java -classpath /usr/share/cmf/lib/agent-5.*.jar com.cloudera.cmon.agent.DnsTest

 

Try running that on your host when your hosts file is configured with:


# ip    hostname.domain    hostname
x.x.x.x myhost.mydomain.com myhost