greenplum5.19环境部署,执行gpinitsystem后提示initdb: 没有那个文件或目录
按照网上的教程进行部署的,前面都比较顺利,到执行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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的问题解决了没?我也遇到这个问题了