MPP架构之Greenplum的安装配置高级版(企业配置)

0    230    3

Tags:

👉 本文共约5605个字,系统预计阅读时间或需22分钟。

简介

硬件要求:https://docs.vmware.com/en/VMware-Tanzu-Greenplum/6/greenplum-database/GUID-install_guide-platform-requirements-overview.html

操作系统要求

Greenplum Database 6 runs on the following operating system platforms:

  • Red Hat Enterprise Linux 64-bit 8.7 or later (As of Greenplum Database version 6.20. See the following Note)
  • Red Hat Enterprise Linux 64-bit 7.x (See the following Note.)
  • Red Hat Enterprise Linux 64-bit 6.x
  • CentOS 64-bit 7.x
  • CentOS 64-bit 6.x
  • Ubuntu 18.04 LTS
  • Oracle Linux 64-bit 7, using the Red Hat Compatible Kernel (RHCK)

依赖包要求

GPDB6 ON RHEL/CentOS 6/7 systems

Greenplum Database 6 requires the following software packages on RHEL/CentOS 6/7 systems which are installed automatically as dependencies when you install the Greenplum RPM package)

  • apr
  • apr-util
  • bash
  • bzip2
  • curl
  • krb5
  • libcgroup (RHEL/CentOS 6)
  • libcgroup-tools (RHEL/CentOS 7)
  • libcurl
  • libevent
  • libxml2
  • libyaml
  • zlib
  • openldap
  • openssh-client
  • openssl
  • openssl-libs (RHEL7/Centos7)
  • perl
  • readline
  • rsync
  • R
  • sed (used by gpinitsystem)
  • tar
  • zip

VMware Greenplum Database 6 client software requires these operating system packages:

  • apr
  • apr-util
  • libyaml
  • libevent

Greenplum Database 6 uses Python 2.7.18, which is included with the product installation (and not installed as a package dependency).

软件下载

可以从以下2个地方下载:

1、从 Greenplum 的 GitHub 页面(https://github.com/greenplum-db/gpdb/releases)下载RPM

2、需要注册并登录到 Pivotal 公司官网(https://network.pivotal.io/products/vmware-tanzu-greenplum)进行下载

安装包大约66MB,如下:

环境申请

本文以1个master+1个standby master,4个segment的集群示例,OS均为CentOS 7.6.1810,采用docker初始化环境。

每个segment主机上有4个Primary Segment Instance 和 4个Mirror Segment Instance共8个实例。

所以,该集群共有16个Primary实例和16个Mirror实例,再加1个master实例和1个standby master实例共34个数据库实例。

master对外服务的端口号为5432,其它segment的端口号为primary从6000-6003,对应的mirror为7000-7003

MPP架构之Greenplum的安装配置高级版(企业配置)

MPP架构之Greenplum的安装配置高级版(企业配置)

IP主机名内存CPU硬盘操作系统数据目录端口备注
172.72.6.50mdw64G32200GCentOS 7.6/opt/greenplum/data/master5432,28080Master host
172.72.6.51smdw64G32200GCentOS 7.6/opt/greenplum/data/master5432,28080Standby host
172.72.6.52sdw164G324TCentOS 7.6/opt/greenplum/data/primary
/opt/greenplum/data/mirror
主:6000-6003
镜像:7000-7003
segment host1,配置4个主实例+4个镜像实例
172.72.6.53sdw264G324TCentOS 7.6/opt/greenplum/data/primary
/opt/greenplum/data/mirror
主:6000-6003
镜像:7000-7003
segment host2,配置4个主实例+4个镜像实例
172.72.6.54sdw364G324TCentOS 7.6/opt/greenplum/data/primary
/opt/greenplum/data/mirror
主:6000-6003
镜像:7000-7003
segment host3,配置4个主实例+4个镜像实例
172.72.6.55sdw464G324TCentOS 7.6/opt/greenplum/data/primary
/opt/greenplum/data/mirror
主:6000-6003
镜像:7000-7003
segment host4,配置4个主实例+4个镜像实例
172.72.6.59VIP,在mdw和smdw上进行漂移

docker环境:

修改主机名

修改内核参数

若是docker环境,则以下配置需要在宿主机运行。

修改/etc/hosts文件

在Greenplum中,习惯将Master机器叫做mdw,将Segment机器叫做sdw。dw的含义为Data Warehouse。

mdw和sdw只是一个主机的别名,不影响程序去查找IP。

docker环境每次重启容器都会重置/etc/hosts文件的内容,但是这不会影响GreenPlum的正常运行。

本人提供Oracle(OCP、OCM)、MySQL(OCP)、PostgreSQL(PGCA、PGCE、PGCM)等数据库的培训和考证业务,私聊QQ646634621或微信db_bao,谢谢!
MPP架构之Greenplum的安装配置高级版(企业配置)后续精彩内容已被小麦苗无情隐藏,请输入验证码解锁本站所有文章!
验证码:
请先关注本站微信公众号,然后回复“验证码”,获取验证码。在微信里搜索“DB宝”或者“www_xmmup_com”或者微信扫描右侧二维码都可以关注本站微信公众号。

标签:

Avatar photo

小麦苗

学习或考证,均可联系麦老师,请加微信db_bao或QQ646634621

您可能还喜欢...

发表回复

嘿,我是小麦,需要帮助随时找我哦。
  • 18509239930
  • 个人微信

  • DB宝
  • 个人邮箱
  • 点击加入QQ群
  • 个人微店

  • 回到顶部