Greenplum安装初始化问题:tmp_file_test无法创建
根据网上找到的教程在三台安装了Centos6.5的物理机上安装Greenplum4.3.13,前面都比较顺利,直到初始化环节,报FATAL错误:
[gpadmin@gp1 conf]$ gpinitsystem -c /home/gpadmin/conf/gpinitsystem_config -h /home/gpadmin/conf/seg_hosts
20170512:00:29:03:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Checking configuration parameters, please wait...
20170512:00:29:03:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Reading Greenplum configuration file /home/gpadmin/conf/gpinitsystem_config
20170512:00:29:03:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Locale has not been set in /home/gpadmin/conf/gpinitsystem_config, will set to default value
20170512:00:29:04:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Locale set to en_US.utf8
/bin/touch: 无法创建"/home/gpdamin/gpdata/gpmaster/tmp_file_test": 没有那个文件或目录
20170512:00:29:04:gpinitsystem:gp1:gpadmin-[FATAL]:-Cannot write to /home/gpdamin/gpdata/gpmaster on master host Script Exiting!
检查了下目录和用户权限,都没有问题。自己试着去touch创建这个文件可以。不知道什么原因。
日志文件的内容更粗略,网上也找不到关于这个问题的参考资料,日志文件如下,求帮忙:
[gpadmin@gp1 gpAdminLogs]$ vim gpinitsystem_20170512.log
20170512:00:29:03:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Start Main
20170512:00:29:03:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Start Function CHK_GPDB_ID
20170512:00:29:03:002983 gpinitsystem:gp1:gpadmin-[INFO]:-End Function CHK_GPDB_ID
20170512:00:29:03:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Start Function CHK_PARAMS
20170512:00:29:03:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Start Function CHK_FILE
20170512:00:29:03:002983 gpinitsystem:gp1:gpadmin-[INFO]:-End Function CHK_FILE
ARRAY_NAME="Greenplum"
SEG_PREFIX=gpseg
PORT_BASE=33000
MASTER_DIRECTORY=/home/gpdamin/gpdata/gpmaster
MIRROR_PORT_BASE=43000
REPLICATION_PORT_BASE=34000
MACHINE_LIST_FILE=/home/gpadmin/conf/seg_hosts
20170512:00:29:03:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Reading Greenplum configuration file /home/gpadmin/conf/gpinitsystem_config
20170512:00:29:03:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Locale has not been set in /home/gpadmin/conf/gpinitsystem_config, will set to default value
20170512:00:29:03:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Start Function CHK_LOCALE_KNOWN
20170512:00:29:04:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Locale check passed on this host
20170512:00:29:04:002983 gpinitsystem:gp1:gpadmin-[INFO]:-End Function CHK_LOCALE_KNOWN
20170512:00:29:04:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Locale set to en_US.utf8
20170512:00:29:04:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Dump current system locale to log file
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=
20170512:00:29:04:002983 gpinitsystem:gp1:gpadmin-[INFO]:-End of system locale dump
20170512:00:29:04:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Start Function CHK_FILE
20170512:00:29:04:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Checking file /home/gpadmin/conf/seg_hosts
20170512:00:29:04:002983 gpinitsystem:gp1:gpadmin-[INFO]:-End Function CHK_FILE
20170512:00:29:04:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Completed check of file /home/gpadmin/conf/seg_hosts
20170512:00:29:04:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Start Function CHK_DUPLICATES
20170512:00:29:04:002983 gpinitsystem:gp1:gpadmin-[INFO]:-No duplicate segment instance hostnames found, will proceed
20170512:00:29:04:002983 gpinitsystem:gp1:gpadmin-[INFO]:-End Function CHK_DUPLICATES
20170512:00:29:04:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Setting up segment instance list array
20170512:00:29:04:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Checking write access to /home/gpdamin/gpdata/gpmaster on master host
20170512:00:29:04:002983 gpinitsystem:gp1:gpadmin-[INFO]:-Start Function ERROR_EXIT
20170512:00:29:04:gpinitsystem:gp1:gpadmin-[FATAL]:-Cannot write to /home/gpdamin/gpdata/gpmaster on master host Script Exiting!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在主节点执行以下命令看看
请问你是怎么解决的啊? QQ 894919006