Dear GPDB Developer Team,
I'm a developer who is trying to build Greenplum from source code. Since I don’t have the experiences of using Greenplum, I just try to run it in centos from the shell. But as I followed the instructions in README.md and went on to run the command: DATADIRS=/tmp/gpdb-cluster PORT_BASE=5555 NUM_PRIMARY_MIRROR_PAIRS=1 WITH_MIRRORS=false make create-demo-cluster, I got a failure message, which states that the server can only be started in (Pasted below in Section 1)
Because I don’t know how to establish a development environment and don’t have many servers for development, I think that running in docker may be a solution,though I don’t know how to deal with it either.
Any guide that can help on build greeplum, both in how to run a gpdb and run a cluster in docker? Thanks a lot.
Secition 1
…(stripped)
make -C gpAux/gpdemo create-demo-cluster
make[1]: Entering directory `/home/faiss/Labs/gpdb_src/gpAux/gpdemo'
======================================================================
______ _____ ______ _______ _______ _____
| ____ |_____] | \ |______ | | | | |
|_____| | |_____/ |______ | | | |_____|
----------------------------------------------------------------------
This is a MIRRORLESS demo of the Greenplum Database system. We will create
a cluster installation with coordinator and 1 segment instances.
GPHOME ................... : /usr/local/gpdb
COORDINATOR_DATA_DIRECTORY : /tmp/gpdb-cluster/qddir/demoDataDir-1
COORDINATOR PORT (PGPORT). : 5555
STANDBY PORT ............. : 5556
SEGMENT PORTS ............ : 5557
NOTE(s):
* The DB ports identified above must be available for use.
* An environment file gpdemo-env.sh has been created for your use.
======================================================================
grep: clusterConfigPostgresAddonsFile: No such file or directory
======================================================================
CLUSTER_CONFIG_POSTGRES_ADDONS: clusterConfigPostgresAddonsFile
----------------------------------------------------------------------
fsync=off
======================================================================
==========================================================================================
executing:
/usr/local/gpdb/bin/gpinitsystem -a -c clusterConfigFile -l /tmp/gpdb-cluster/gpAdminLogs -p clusterConfigPostgresAddonsFile ""
==========================================================================================
20230519:10:55:43:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Checking configuration parameters, please wait...
20230519:10:55:43:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Reading Greenplum configuration file clusterConfigFile
20230519:10:55:44:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Locale has not been set in clusterConfigFile, will set to default value
20230519:10:55:45:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-No DATABASE_NAME set, will exit following template1 updates
20230519:10:55:45:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-COORDINATOR_MAX_CONNECT not set, will set to default value 150
20230519:10:55:46:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Detected a single host GPDB array build, reducing value of BATCH_DEFAULT from 60 to 4
20230519:10:55:47:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Checking configuration parameters, Completed
20230519:10:55:47:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Commencing multi-home checks, please wait...
.
20230519:10:55:48:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Configuring build for standard array
20230519:10:55:49:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Commencing multi-home checks, Completed
20230519:10:55:49:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Building primary segment instance array, please wait...
.
20230519:10:55:52:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Checking Coordinator host
20230519:10:55:53:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Checking new segment hosts, please wait...
.
20230519:10:55:58:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Checking new segment hosts, Completed
20230519:10:55:59:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Building the Coordinator instance database, please wait...
20230519:10:56:14:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Starting the Coordinator in admin mode
20230519:10:56:21:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Commencing parallel build of primary segment instances
20230519:10:56:21:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Spawning parallel processes batch [1], please wait...
.
20230519:10:56:22:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Waiting for parallel processes batch [1], please wait...
......................
20230519:10:56:48:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:------------------------------------------------
20230519:10:56:48:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Parallel process exit status
20230519:10:56:48:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:------------------------------------------------
20230519:10:56:48:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Total processes marked as completed = 1
20230519:10:56:48:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Total processes marked as killed = 0
20230519:10:56:48:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Total processes marked as failed = 0
20230519:10:56:48:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:------------------------------------------------
20230519:10:56:49:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Removing back out file
20230519:10:56:49:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-No errors generated from parallel processes
20230519:10:56:49:021301 gpinitsystem:VM-12-16-centos:faiss-[INFO]:-Restarting the Greenplum instance in production mode
Error: unable to import module: No module named 'pgdb'
20230519:10:56:50:021301 gpinitsystem:VM-12-16-centos:faiss-[FATAL]:-Error from Greenplum instance shutdown, check log files Script Exiting!
========================================
gpinitsystem returned: 1
========================================
======================================================================
OPTIMIZER STATE
----------------------------------------------------------------------
Optimizer state .. : psql: error: FATAL: System was started in single node mode - only utility mode connections are allowed
======================================================================
psql: error: FATAL: System was started in single node mode - only utility mode connections are allowed
======================================================================
make[1]: Leaving directory `/home/faiss/Labs/gpdb_src/gpAux/gpdemo'
|
!! External Email
|
|
!! External Email: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender.
|
|
!! External Email
|
Dear GPDB Developer Team,
pip3 install -r python-dependencies.txt