Reply
Highlighted
New Contributor
Posts: 5
Registered: ‎09-12-2018

New install: not able to add hosts with CM6

[ Edited ]

 

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 "cdhm.test.com" and restarted the machine and services. But the error insisted. Please help. 

 

 

/tmp/scm_prepare_node.hSFrEINk 
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 
/usr/bin/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/socket.py", 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
cdhm.test.com
[root@cdhm named]# cat /etc/hosts
172.17.1.247 cdhm.test.com cdhm
172.17.1.142 cdh1.test.com cdh1
172.17.1.143 cdh2.test.com cdh2
172.17.1.144 cdh3.test.com cdh3
172.17.1.145 cdh4.test.com cdh4
[root@cdhm named]#cat /etc/sysconfig/network
# Created by anaconda
NETWORKING=yes
HOSTNAME=cdhm.test.com
[root@cdhm named]# uname -a
Linux cdhm.test.com 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 "cdhm.test.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4781
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;cdhm.test.com.                 IN      A

;; ANSWER SECTION:
cdhm.test.com.          86400   IN      A       172.17.1.247

;; AUTHORITY SECTION:
test.com.               86400   IN      NS      test.com.

;; ADDITIONAL SECTION:
test.com.               86400   IN      A       172.17.1.247

Received 77 bytes from 172.17.1.247#53 in 0 ms
[root@cdhm named]#host -t PTR 172.17.1.247
247.1.17.172.in-addr.arpa domain name pointer ns.test.com.
247.1.17.172.in-addr.arpa domain name pointer cdhm.test.com.
[root@cdhm named]#  host cdhm.test.com
cdhm.test.com has address 172.17.1.247

 

Announcements