cloudera manager 4.8 添加设备DNS反向解析有关问题
cloudera manager 4.8 添加设备DNS反向解析问题添加设备时agent会使用host命令反向解析获取cloudera manag
cloudera manager 4.8 添加设备DNS反向解析问题
添加设备时agent会使用host命令反向解析获取cloudera manager server 主机名,我这里服务器默认安装了bind,而且/etc/hosts解析也不能成功,导致无法获取server主机名,错误信息如下:
?
BEGIN host -t PTR 172.16.11.25
25.11.16.172.in-addr.arpa domain name pointer localhost.
END (0)
using localhost as scm server hostname
BEGIN which python
/usr/local/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();' localhost 7182
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 111] Connection refused
?
不优雅解决办法:
?
mv /usr/bin/host /usr/bin/host.bak
?
--end
?