我确信主机文件中的主机名前后没有多余的空格,使用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_config20161209:21:01:14:030310 gpinitsystem:mdw:gpadmin-[INFO]:-Locale has not been set in /home/gpadmin/gpconfigs/gpinitsystem_config, will set to default value20161209:21:01:14:030310 gpinitsystem:mdw:gpadmin-[INFO]:-Locale set to en_US.utf820161209:21:01:15:030310 gpinitsystem:mdw:gpadmin-[INFO]:-MASTER_MAX_CONNECT not set, will set to default value 25020161209:21:01:15:030310 gpinitsystem:mdw:gpadmin-[INFO]:-Checking configuration parameters, Completed20161209: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!拜托。 最佳答案 你的青梅里有多少主人。您的/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.localdomain6172.31.25.24 mdw172.31.16.170 sdw1将ip和主机名替换为您自己的。在再次尝试gpinitsystem之前,请确保已成功执行gpssh-exkeys。更新:我用Skype帮他解决了这个问题。答案是,他的gpadmin帐户没有权限调用ping实用工具,导致gpinitsystem调用确保DBMS中的任何主机存在。 10-08 04:58