GreenPlum介绍
PostgreSql
PostgreSQL is an advanced object-relational database management system that supports an extended subset of the SQL standard, including transactions, foreign keys, subqueries, triggers, user-defined types and functions. This distribution also contains C language bindings.
GreenPlum
The Greenplum Database (GPDB) is an advanced, fully featured, open source data warehouse. It provides powerful and rapid analytics on petabyte scale data volumes. Uniquely geared toward big data analytics, Greenplum Database is powered by the world’s most advanced cost-based query optimizer delivering high analytical query performance on large data volumes.
Greenplum 是基于 PostgreSQL 开发的,语法与 PostgreSQL 几乎一样。
本质上,Greenplum 是一个关系型数据库集群,由多个独立的数据库服务组 合成的逻辑数据库,对于用户来说 Greenplum 与 Oracle、PostgreSQL 并无不同, 都可以通过标准 SQL 语句对数据进行访问。
GreenPlum源码编译安装
以CentOS 6.9为例,下载地址为阿里云镜像。
CentOS-6.9-x86_64-bin-DVD1.iso
CentOS-6.9-x86_64-bin-DVD2.iso
强烈建议以gpadmin为用户名。
准备工作
添加用户root权限
vim 打开 /etc/sudoers 文件 (以root权限打开)
找到以下两行
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
并在下一行添加
gpadmin ALL=(ALL) ALL #注意对齐
保存并返回即可
安装gcc-c++
sudo yum install gcc-c++
安装git
sudo yum install git
安装cmake
cd /home/gpadmin
wget https://cmake.org/files/v3.5/cmake-3.5.2.tar.gz
tar -zxvf cmake-3.5.2.tar.gz
cd cmake-3.5.2
./configure --prefix=/usr/local
make
sudo make install
安装pip
sudo yum -y install epel-release
sudo yum -y