我一直在尝试按照site中给出的步骤构建和测试greenplum开源项目的代码。 我可以构建代码。但是,有一节“基本GPDB源配置,编译,gpdemo集群创建和测试执行示例”。因此,为了测试演示集群,我遇到了一个问题。有人可以看看它,并帮助我知道缺少什么?
简而言之,接下来的步骤是:
Cd /root/greenplum/gpdb-master/
./configure --prefix=/root/greenplum/gpdb-master
make
make install
source /root/greenplum/gpdb-master/greenplum_path.sh
cd gpAux/gpdemo
make cluster
截至目前,我仍然坚持“制造集群”的步骤。它显示错误:
优化程序状态..:错误:无法识别的配置参数"优化程序"
Make cluster命令的完整日志如下:
[root@ vm gpdemo]# make cluster
这是Greenplum数据库系统的演示。我们将创造 具有主节点和6个段实例的集群安装 (3个主要和3个镜子)。
GPHOME ................. : /root/greenplum/gpdb-master
MASTER_DATA_DIRECTORY .. : /root/greenplum/gpdb-master/gpAux/gpdemo/datadirs/qddir/demoDataDir-1
MASTER PORT (PGPORT) ... : 15432
SEGMENT PORTS .......... : 25432 25433 25434 25435 25436 25437 25438 25439 25440 25441 25442 25443
说明(S):
* The DB ports identified above must be available for use.
* An environment file gpdemo-env.sh has been created for your use.
executing:
/root/greenplum/gpdb-master/bin/gpinitsystem -a -c clusterConfigFile ""
20151214:18:30:22:027540 gpinitsystem:root-[WARN]:-No initdb file, unable to verify id
20151214:18:30:22:027540 gpinitsystem:root-[INFO]:-Checking configuration parameters, please wait...
20151214:18:30:22:gpinitsystem:root-[FATAL]:-Unable to run this script as root Script Exiting!
========================================
gpinitsystem returned: 2
========================================
OPTIMIZER STATE
----------------------------------------------------------------------
Optimizer state .. : ERROR: unrecognized configuration parameter "optimizer"
======================================================================
PostgreSQL 8.4.20 on x86_64-redhat-linux-gnu, compiled by GCC gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4), 64-bit
(1 row)
======================================================================
make: [cluster] Error 2 (ignored)
答案 0 :(得分:1)
请不要以root身份运行它。没有必要是root用户,并且有一个致命的错误告诉你你应该避免这种情况。