gpinitsystem未知主机mdw

时间:2016-12-07 08:25:37

标签: linux greenplum

我确信主机文件中主机名(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!

1 个答案:

答案 0 :(得分:1)

你的绿叶中有多少台主机。您的/etc/hosts不包含有关mdwsdw的任何信息。

假设您的greenplum中有两个名为mdwsdw1的主机,/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中的任何主机都存在。