开发者社区> 问答> 正文

greenplum 初始化时报unknown host mdw?报错

报错的日志:


[gpadmin@mdw gpconfigs]$ gpinitsystem -c /home/gpadmin/gpconfigs/gpinitsystem_config -h /opt/gpinit/all_host
20161208:15:49:46:013093 gpinitsystem:mdw:gpadmin-[INFO]:-Checking configuration parameters, please wait...
20161208:15:49:46:013093 gpinitsystem:mdw:gpadmin-[INFO]:-Reading Greenplum configuration file /home/gpadmin/gpconfigs/gpinitsystem_config
20161208:15:49:46:013093 gpinitsystem:mdw:gpadmin-[INFO]:-Locale has not been set in /home/gpadmin/gpconfigs/gpinitsystem_config, will set to default value
20161208:15:49:46:013093 gpinitsystem:mdw:gpadmin-[INFO]:-Locale set to en_US.utf8
20161208:15:49:46:013093 gpinitsystem:mdw:gpadmin-[INFO]:-MASTER_MAX_CONNECT not set, will set to default value 250
20161208:15:49:46:013093 gpinitsystem:mdw:gpadmin-[INFO]:-Checking configuration parameters, Completed
20161208:15:49:46:013093 gpinitsystem:mdw:gpadmin-[INFO]:-Commencing multi-home checks, please wait...
.20161208:15:49:46:gpinitsystem:mdw:gpadmin-[FATAL]:-Unknown host mdw Script Exiting!



初始化greenplum数据库时报错。下面是/ect/hosts文件内容:
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
172.18.210.7 s7.bigplus.sunsheen.cn mdw
172.18.210.8 s8.bigplus.sunsheen.cn smdw
172.18.210.9 s9.bigplus.sunsheen.cn sdw1
172.18.210.10 s10.bigplus.sunsheen.cn sdw2





下面是all_host文件内容
mdw
smdw
sdw1
sdw2

通过ssh命令都能连接上mdw,smdw,sdw1,sdw2这四台服务器,但是初始化的时候就报无法识别。

请帮忙解答一下,谢谢了。


展开
收起
爱吃鱼的程序员 2020-06-08 20:14:14 813 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    gpadmin用户没有ping的权限

    你应该在hosts中配置这台机器

    mdw对应的ip啊,

    比如

    192.168.0.2 mdw


    你在从节点上, 也配置了么?所有主机,然后在主机上ping一下吧我配置了的,上面我已经将hosts文件列出来了
    2020-06-08 20:14:32
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
MongoShake -- Multi Active-Active and Cross-Region Disaster Recoverable MongoDB Service 立即下载
The state of SQL-on-Hadoop in 立即下载
The state of SQL-on-Hadoop in the Cloud 立即下载