|||
若你在VirtualBox里的RHEL5里安装GreenPlumn单节点版本时,当执行到:
5. Run the gpssh-exkeys utility to exchange ssh keys for the local host:
$ gpssh-exkeys -h 127.0.0.1
会出现如下错误:
[gpadmin@bogon ~]$ gpssh-exkeys -h 127.0.0.1
Traceback (most recent call last):
File "/usr/local/greenplum-db/./bin/gpssh-exkeys", line 522, in <module>
(primary, aliases, ipaddrs) = socket.gethostbyaddr(hostname)
socket.gaierror: [Errno -2] Name or service not known
解决办法是:
切换到root用户,执行
[root@bogon gpadmin]# hostname localhost
既可解决。
当然上面只是临时解决,若想通过配置文件
二:修改linux主机的配置文件/etc/sysconfig/network 和 /etc/hosts
1.修改/etc/sysconfig/network里面的主机名字。
# vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost
参考:
http://hchmsguo.iteye.com/blog/1256315
http://www.uini.net/2011/04/greenplumsne-error-socket-gaierror-errno-3-temporary-failure-in-name-resolution.html
加我私人微信,交流技术。
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-11-22 07:05
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社