开发者社区> 问答> 正文

在安装greenplum集群进行初始化的时候报错?不知道什么原因?

本人在安装greenplum集群进行初始化的时候报错,1个节点做master,2个节点做Segment,1个节点做Master Standy。
在进行初始化数据库的时候:
[gpadmin@iZ115m3daskZ ~]$ gpinitsystem -c /home/gpadmin/conf/gpinitsystem_config -s iZ1191gmulmZ
find: 鈥opt/greenplum/greenplum-db/./greenplum-db-4.3.9.0鈥 Too many levels of symbolic links
20160908:15:16:33:011210 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Checking configuration parameters, please wait...
20160908:15:16:34:011210 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Reading Greenplum configuration file /home/gpadmin/conf/gpinitsystem_config
20160908:15:16:34:011210 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Locale has not been set in /home/gpadmin/conf/gpinitsystem_config, will set to default value
20160908:15:16:34:011210 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Locale set to en_US.utf8
20160908:15:16:34:011210 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-No DATABASE_NAME set, will exit following template1 updates
20160908:15:16:34:011210 gpinitsystem:iZ115m3daskZ:gpadmin-[WARN]:-CHECK_POINT_SEGMENTS variable not set, will set to default value
20160908:15:16:34:011210 gpinitsystem:iZ115m3daskZ:gpadmin-[WARN]:-ENCODING variable not set, will set to default UTF-8
20160908:15:16:34:011210 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-MASTER_MAX_CONNECT not set, will set to default value 250
20160908:15:16:34:011210 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Master IP address array = 10.25.21.225
20160908:15:16:34:011210 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Standby IP address array = 10.46.29.83
20160908:15:16:35:011210 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Checking configuration parameters, Completed
20160908:15:16:35:011210 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Commencing multi-home checks, please wait...
.20160908:15:16:35:gpinitsystem:iZ115m3daskZ:gpadmin-[FATAL]:-Unknown host iZ11mtchp6vZ Script Exiting!
报错
alert日志显示:
20160908:15:19:31:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Completed /home/gpadmin/conf/gpinitsystem_config dump to logfile
20160908:15:19:31:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Reading Greenplum configuration file /home/gpadmin/conf/gpinitsystem_config
20160908:15:19:31:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Locale has not been set in /home/gpadmin/conf/gpinitsystem_config, will set to default value
20160908:15:19:31:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Start Function CHK_LOCALE_KNOWN
20160908:15:19:31:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Locale check passed on this host
20160908:15:19:31:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-End Function CHK_LOCALE_KNOWN
20160908:15:19:31:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Locale set to en_US.utf8
20160908:15:19:31:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Dump current system locale to log file
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
20160908:15:19:31:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-End of system locale dump
20160908:15:19:31:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Start Function CHK_FILE
20160908:15:19:31:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Checking file /home/gpadmin/conf/seg_hosts
20160908:15:19:31:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-End Function CHK_FILE
20160908:15:19:31:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Completed check of file /home/gpadmin/conf/seg_hosts
20160908:15:19:31:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Start Function CHK_DUPLICATES
20160908:15:19:31:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-No duplicate segment instance hostnames found, will proceed
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-End Function CHK_DUPLICATES
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Setting up segment instance list array
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Checking write access to /home/gpadmin/gpdata/gpmaster on master host
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Write test passed /home/gpadmin/gpdata/gpmaster directory on master host
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-No DATABASE_NAME set, will exit following template1 updates
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[WARN]:-CHECK_POINT_SEGMENTS variable not set, will set to default value
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[WARN]:-ENCODING variable not set, will set to default UTF-8
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-MASTER_MAX_CONNECT not set, will set to default value 250
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Setting segment instance MAX_CONNECTIONS to
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Number of segment instance hosts = 3
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Start Function ERROR_CHK
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Successfully completed obtain IP address of Master host
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-End Function ERROR_CHK
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Master IP address array = 10.25.21.225
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Start Function ERROR_CHK
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Successfully completed obtain IP address of standby Master host
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-End Function ERROR_CHK
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Standby IP address array = 10.46.29.83
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Checking configuration parameters, Completed
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-End Function CHK_PARAMS
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Start Function CHK_MULTI_HOME
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Commencing multi-home checks, please wait...
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Start Function PING_HOST
20160908:15:19:32:015368 gpinitsystem:iZ115m3daskZ:gpadmin-[INFO]:-Start Function ERROR_EXIT
20160908:15:19:32:gpinitsystem:iZ115m3daskZ:gpadmin-[FATAL]:-Unknown host iZ11mtchp6vZ Script Exiting!
同样也一样的报错
不知道是什么原因?
哪位大师可以解释下?
谢谢

展开
收起
药味 2016-09-08 15:24:38 10915 0
4 条回答
写回答
取消 提交回答
  • grep -rn "iZ11mtchp6vZ" /home/gpadmin/ 有一个cache文件莫名其妙会被修改,手动改过来就好了。

    2020-04-16 18:23:05
    赞同 展开评论 打赏
  • 我也遇到这个问题了,莫名奇妙
    ping 也能平通,ssh也能连,但初始化就是报:
    20170906:07:12:48:005011 gpinitsystem:mdw:gpadmin-[INFO]:-Start Function PING_HOST
    20170906:07:12:48:005011 gpinitsystem:mdw:gpadmin-[INFO]:-Start Function ERROR_EXIT
    20170906:07:12:48:gpinitsystem:mdw:gpadmin-[FATAL]:-Unknown host sdw1

    解决方法:
    添加/tmp/greenplum/seg_hosts_ip,里面填写IP,不写host,然后用IP的配置文件来初始化就可以了:
    gpinitsystem -c gpinitsystem_config -h /tmp/greenplum/seg_hosts_ip

    我也是刚学,欢迎大家多交流,qq:286376015

    2019-07-17 20:08:31
    赞同 展开评论 打赏
  • 请问你这个错误时怎么解决的呢?

    2019-07-17 20:08:31
    赞同 展开评论 打赏
  • 阿里云PostgreSQL和Greenplum内核开发

    .20160908:15:16:35:gpinitsystem:iZ115m3daskZ:gpadmin-[FATAL]:-Unknown host iZ11mtchp6vZ Script Exiting!

    你直接 ssh iZ11mtchp6vZ

    看看能不能连通

    2019-07-17 20:08:30
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
PostgreSQL复制原理及高可用集群 立即下载
PolarDB for PostgreSQL三节点功能介绍 立即下载
PolarDB PG核心特性介绍 立即下载