Support Questions
Find answers, ask questions, and share your expertise

New install: not able to add hosts with CM6

New install: not able to add hosts with CM6

New Contributor


I met below error while adding new hosts, it suppose to be "host -t PTR " with IP instead of "dev1", "dev1" was the initial hostname when the machine been created.


I have changed everything related to hostname to "" and restarted the machine and services. But the error insisted. Please help. 



opening logging file descriptor 
Starting installation script...
Acquiring installation lock...
BEGIN flock 4 
END (0) 
Detecting root privileges...
effective UID is 0 
Detecting distribution...
BEGIN grep Tikanga /etc/redhat-release 
END (1) 
BEGIN grep 'Scientific Linux release 5' /etc/redhat-release 
END (1) 
BEGIN grep Santiago /etc/redhat-release 
END (1) 
BEGIN grep 'CentOS Linux release 6' /etc/redhat-release 
END (1) 
BEGIN grep 'CentOS release 6' /etc/redhat-release 
END (1) 
BEGIN grep 'Scientific Linux release 6' /etc/redhat-release 
END (1) 
BEGIN grep Maipo /etc/redhat-release 
END (1) 
BEGIN grep 'CentOS Linux release 7' /etc/redhat-release 
CentOS Linux release 7.3.1611 (Core) 
END (0) 
/etc/redhat-release ==> CentOS 7 
Detecting Cloudera Manager Server...
BEGIN host -t PTR dev1 
Host dev1 not found: 3(NXDOMAIN) 
END (1) 
BEGIN which python 
END (0) 
BEGIN python -c 'import socket; import sys; s = socket.socket(socket.AF_INET); s.settimeout(5.0); s.connect((sys.argv[1], int(sys.argv[2]))); s.close();' lxh1 7182 
Traceback (most recent call last): 
File "<string>", line 1, in <module> 
File "/usr/lib64/python2.7/", line 224, in meth 
return getattr(self._sock,name)(*args) 
socket.gaierror: [Errno -2] Name or service not known 
END (1) 
could not contact scm server at dev1:7182, giving up 
waiting for rollback request 
detected rollback request 
rolling back installation 
Reverting changes...
rollback started 

 Below are some configurations I made, 


[root@cdhm named]# cat /etc/hostname
[root@cdhm named]# cat /etc/hosts cdhm cdh1 cdh2 cdh3 cdh4
[root@cdhm named]#cat /etc/sysconfig/network
# Created by anaconda
[root@cdhm named]# uname -a
Linux 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[root@cdhm named]# host -v -t A $(hostname)
Trying ""
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4781
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;                 IN      A

;; ANSWER SECTION:          86400   IN      A

;; AUTHORITY SECTION:               86400   IN      NS

;; ADDITIONAL SECTION:               86400   IN      A

Received 77 bytes from in 0 ms
[root@cdhm named]#host -t PTR domain name pointer domain name pointer
[root@cdhm named]#  host has address



Re: New install: not able to add hosts with CM6




it looks like agent is not able to resolve the hostname dev1

could you please let us know if you are able to ssh to dev1 from agent machine and vice-versa and telnet dev1 7182