Greenplum搭建问题汇总

1. http://greenplum.org/install-greenplum-oss-on-ubuntu/

单机版官网安装过程,比较简单,但是按照这个过程安装不出来,在安装过程中还参考另外一篇文档,https://blog.csdn.net/doctor_who2004/article/details/43372963

2. 安装过程中,报错:

20180403:16:03:50:012050 gpstop:gp-master:gpadmin-[INFO]:-Starting gpstop with args:

20180403:16:03:50:012050 gpstop:gp-master:gpadmin-[INFO]:-Gathering information and validating the environment...

20180403:16:03:50:012050 gpstop:gp-master:gpadmin-[CRITICAL]:-gpstop failed. (Reason='Environment Variable MASTER_DATA_DIRECTORY not set!') exiting...

处理办法:

此时需要在./bashrc下添加下列内容:

vi /home/gpadmin/.bashrc
MASTER_DATA_DIRECTORY=/data/master_database/gpsne-1

export MASTER_DATA_DIRECTORY
 source /home/gpadmin/.bashrc

3. 出现错误:

20180403:17:32:56:014760 gpstop:gp-master:gpadmin-[WARNING]:-There are other connections to this instance, shutdown mode smart aborted

20180403:17:32:56:014760 gpstop:gp-master:gpadmin-[WARNING]:-Either remove connections, or use 'gpstop -M fast' or 'gpstop -M immediate'

20180403:17:32:56:014760 gpstop:gp-master:gpadmin-[WARNING]:-See gpstop -? for all options

20180403:17:32:56:014760 gpstop:gp-master:gpadmin-[ERROR]:-gpstop error: Active connections. Aborting shutdown...

20180403:17:32:56:014760: command not found

解决方法:

使用正确命令关闭greenplum,不正确的关闭方式导致/tmp/目录下出现.lock文件,同时还会出现5432端口占用情况。这时候先删除/tmp/目录下的 文件,然后关闭5432端口对应的进程 ,之后重新使用gpstart打开即可。

4. 安装完成之后进入到greenplum,先新建demo数据库,createdb demo,然后选择demo数据库,psql demo,进入之后如要退出,使用\q命令即可。

5. 远程使用psql命令连接greenplum:

psql -d demo -h localhost -U gpadmin -p 10016

6.postgres配置文件具体同容修改:

7. 在重装greenplum过程中报错:

问题原因及解决方法:

此问题是由于master与segment的greenplum版本不同造成的,此时在各个节点执行

sudo apt-get install greenplum-db-oss

重新更新即可。


欢迎补充!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值