Greenplum安装初始化问题:tmp_file_test无法创建

发布于 2022-09-04 22:16:23 字数 4124 浏览 23 评论 0

根据网上找到的教程在三台安装了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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

请叫√我孤独 2022-09-11 22:16:23

在主节点执行以下命令看看

su - gpadmin
touch /home/gpdamin/gpdata/gpmaster/test_write
无所的.畏惧 2022-09-11 22:16:23

请问你是怎么解决的啊? QQ 894919006

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文