错误信息

安装时报:unknown host

  1. 20200328:07:29:33:023109 gpinitsystem:mdw:gpadmin-[INFO]:-Start Function PING_HOST
  2. 20200328:07:29:33:023109 gpinitsystem:mdw:gpadmin-[INFO]:-Start Function ERROR_EXIT
  3. 20200328:07:29:33:023109 gpinitsystem:mdw:gpadmin-[FATAL]:-Unknown host spshckdb01:
  4. ping: spshckdb01: 未知的名称或服务
  5. ping: spshckdb01: 未知的名称或服务 Script Exiting!
  6. 20200328:07:29:33:023109 gpinitsystem:mdw:gpadmin-[WARN]:-Script has left Greenplum Database in an incomplete state
  7. 20200328:07:29:33:023109 gpinitsystem:mdw:gpadmin-[WARN]:-Run command bash /home/gpadmin/gpAdminLogs/backout_gpinitsystem_gpadmin_20200328_072838 to remove these changes
  8. 20200328:07:29:33:023109 gpinitsystem:mdw:gpadmin-[INFO]:-Start Function BACKOUT_COMMAND
  9. 20200328:07:29:33:023109 gpinitsystem:mdw:gpadmin-[INFO]:-End Function BACKOUT_COMMAND

错误问题描述

1 最开始服务器名称spshckdb01,被修改成mdw
2 关于hosts文件已经配置好,检查无误

修改思路

查找整个服务器中,文件内容和 spshckdb01相同的

  1. find . -name "*.*" |xargs grep "spshckdb01"

查找结果

找到关键信息,进入文件做修改
image.png
image.png

修改结果

image.png
再次执行初始化成功