greenplum5.19环境部署,执行gpinitsystem后提示initdb: 没有那个文件或目录

发布于 2022-09-11 20:35:33 字数 2987 浏览 17 评论 0

按照网上的教程进行部署的,前面都比较顺利,到执行gpinitsystem -c gpinitsystem_config -h seg_host命令后,输出初始化信息,输入Y后提示如下:
Continue with Greenplum creation Yy|Nn (default=N):

Y
20190620:17:38:53:001671 gpinitsystem:fex02:gpadmin-[INFO]:-Building the Master instance database, please wait...
/bin/cat: /home/gpadmin/gpdata/master/gpseg-1.initdb: 没有那个文件或目录
请问这个如何解决呢?非常感谢大家

gpinitsystem_config文件配置如下:

FILE NAME: gpinitsystem_config

Configuration file needed by the gpinitsystem

REQUIRED PARAMETERS
Name of this Greenplum system enclosed in quotes.

ARRAY_NAME="GPTEST"

Naming convention for utility-generated data directories.

SEG_PREFIX=gpseg

Base number by which primary segment port numbers
are calculated.

PORT_BASE=6000

File system location(s) where primary segment data directories
will be created. The number of locations in the list dictate
the number of primary segments that will get created per
physical host (if multiple addresses for a host are listed in
the hostfile, the number of segments will be spread evenly across
the specified interface addresses).

declare -a DATA_DIRECTORY=(/home/gpadmin/gpdata/primary /home/gpadmin/gpdata/primary /home/gpadmin/gpdata/primary)

OS-configured hostname or IP address of the master host.

MASTER_HOSTNAME=TMA

File system location where the master data directory
will be created.

MASTER_DIRECTORY=/home/gpadmin/gpdata/master

Port number for the master instance.

MASTER_PORT=5432

Shell utility used to connect to remote hosts.

TRUSTED_SHELL=ssh

Maximum log file segments between automatic WAL checkpoints.

CHECK_POINT_SEGMENTS=8

Default server-side character set encoding.

ENCODING=GBK

OPTIONAL MIRROR PARAMETERS
Base number by which mirror segment port numbers
are calculated.

MIRROR_PORT_BASE=7000

Base number by which primary file replication port
numbers are calculated.

REPLICATION_PORT_BASE=8000

Base number by which mirror file replication port
numbers are calculated.

MIRROR_REPLICATION_PORT_BASE=9000

File system location(s) where mirror segment data directories
will be created. The number of mirror locations must equal the
number of primary locations as specified in the
DATA_DIRECTORY parameter.

declare -a MIRROR_DATA_DIRECTORY=(/data1/mirror /data1/mirror /data1/mirror /data2/mirror /data2/mirror /data2/mirror)

OTHER OPTIONAL PARAMETERS
Create a database of this name after initialization.

DATABASE_NAME=GPTEST

Specify the location of the host address file here instead of
with the the -h option of gpinitsystem.

MACHINE_LIST_FILE=/home/gpadmin/seg_host

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

好倦 2022-09-18 20:35:33

你的问题解决了没?我也遇到这个问题了

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