Greenplum 数据库演示集群脚本不工作
Greenplum database demo cluster scripts are not working
我一直在尝试按照 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
截至目前,我停留在“制作集群”步骤。它显示错误为:
Optimizer state .. : ERROR: unrecognized configuration parameter "optimizer"
Make cluster命令的完整日志如下:
[root@ vm gpdemo]# make cluster
这是Greenplum数据库系统的演示。我们将创造
具有 master 和 6 个 segment 实例的集群安装
(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
注意:
* 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)
请不要运行 root 用户。不需要 root,并且有一个致命错误告诉你应该避免这种情况。
我一直在尝试按照 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
截至目前,我停留在“制作集群”步骤。它显示错误为:
Optimizer state .. : ERROR: unrecognized configuration parameter "optimizer"
Make cluster命令的完整日志如下:
[root@ vm gpdemo]# make cluster
这是Greenplum数据库系统的演示。我们将创造 具有 master 和 6 个 segment 实例的集群安装 (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
注意:
* 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)
请不要运行 root 用户。不需要 root,并且有一个致命错误告诉你应该避免这种情况。