本人在安装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!
同样也一样的报错
不知道是什么原因?
哪位大师可以解释下?
谢谢
grep -rn "iZ11mtchp6vZ" /home/gpadmin/ 有一个cache文件莫名其妙会被修改,手动改过来就好了。
我也遇到这个问题了,莫名奇妙
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
.20160908:15:16:35:gpinitsystem:iZ115m3daskZ:gpadmin-[FATAL]:-Unknown host iZ11mtchp6vZ Script Exiting!
你直接 ssh iZ11mtchp6vZ
看看能不能连通
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。