0
我一直在努力構建和測試用於Greenplum的開源項目的代碼按在site給出的步驟。 我可以構建代碼。不過,有一節「基本的GPDB源代碼配置,編譯,gpdemo集羣創建和測試執行示例」。因此爲了測試演示集羣,我面臨一個問題。有人可以看看它,並幫助我知道什麼是缺少的?Greenplum的數據庫演示集羣腳本不工作
總之,隨後的步驟是:
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"
完整的日誌製作集羣命令如下:
[[email protected] 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)
謝謝,這是因爲root用戶的問題。 – DPM