Created 09-29-2014 12:52 AM
Hi All,
When I added a new node in cloudera cluster, The node went to bad health and shows error message like "The hostname and canonical name for this host are not consistent when checked from a Java process" Can any one help us to fix this issue.
Thanks,
Sathishkumar M
Created 09-29-2014 12:58 AM
Created 09-29-2014 01:23 AM
Created 09-29-2014 12:58 AM
Created 09-29-2014 01:14 AM
Thanks Gautam, It is working.
But, Other nodes in the same cluster dont have this FQDN in that path /etc/sysconfig/network and those are working fine.Is there any specific reason?
Created 09-29-2014 01:23 AM
Created 09-29-2014 02:21 AM
Yes,The onliner diplaying the FQDN in both the nodes. But we tried after removing that FQDN in /etc/sysconfig/network file also and we got the same output.
Created 09-29-2014 02:23 AM
Created 09-29-2014 04:55 AM
Thanks Gautam for your reply. We checked only after the reboot.
Created 09-29-2014 07:50 PM
Created 09-29-2014 10:15 PM
Network file for that node which is in bad health before change
cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=node10
Output of Python code
python -c "import socket; print socket.getfqdn(); print
socket.gethostbyname(socket.getfqdn())"
node10.cluster1.com
Network file for that node which is already in good health
cat /etc/sysconfig/network
python -c "import socket; print socket.getfqdn(); print
socket.gethostbyname(socket.getfqdn())"
node6.cluster1.com
Thanks
Sathishkumar M
Created 10-01-2014 04:16 AM