我确信主机文件中主机名(S)之前或之后没有多余的空格,使用ssh mdw
可以连接到mdw
。
/etc/hosts
是这样的:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
错误日志:
20161209:21:01:14:030310 gpinitsystem:mdw:gpadmin-[INFO]:-Checking configuration parameters, please wait...
20161209:21:01:14:030310 gpinitsystem:mdw:gpadmin-[INFO]:-Reading Greenplum configuration file /home/gpadmin/gpconfigs/gpinitsystem_config
20161209:21:01:14:030310 gpinitsystem:mdw:gpadmin-[INFO]:-Locale has not been set in /home/gpadmin/gpconfigs/gpinitsystem_config, will set to default value
20161209:21:01:14:030310 gpinitsystem:mdw:gpadmin-[INFO]:-Locale set to en_US.utf8
20161209:21:01:15:030310 gpinitsystem:mdw:gpadmin-[INFO]:-MASTER_MAX_CONNECT not set, will set to default value 250
20161209:21:01:15:030310 gpinitsystem:mdw:gpadmin-[INFO]:-Checking configuration parameters, Completed
20161209:21:01:15:030310 gpinitsystem:mdw:gpadmin-[INFO]:-Commencing multi-home checks, please wait...
.20161209:21:01:17:gpinitsystem:mdw:gpadmin-[FATAL]:-Unknown host mdw Script Exiting!
请
答案 0 :(得分:1)
你的绿叶中有多少台主机。您的/etc/hosts
不包含有关mdw
和sdw
的任何信息。
假设您的greenplum中有两个名为mdw
和sdw1
的主机,/etc/hosts
个文件应该是这样的:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
172.31.25.24 mdw
172.31.16.170 sdw1
用您自己的名称替换ip和主机名。在再次尝试gpinitsystem
之前,您需要确保已成功执行gpssh-exkeys
。
<强>更新强>:
我使用Skype帮助他解决了这个问题。答案是他的gpadmin
帐户没有权限调用ping
实用程序,导致gpinitsystem
调用ping
以确保DBMS中的任何主机都存在。