• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

greenplum_installer: Greenplum6分布式数据库CentOS7系统下一键安装包

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

greenplum_installer

开源软件地址:

https://gitee.com/inrgihc/greenplum_installer

开源软件介绍:

Greenplum集群一键安装

一、功能简介

基于ansible自动化运维工具提供Greenplum6数据库多节点在CentOS7系统下的一键安装部署功能。

二、安装包制作

[root@localhost root]# git clone  https://gitee.com/inrgihc/greenplum_installer.git[root@localhost root]# cd greenplum_installer && make all[root@localhost root]# tree bin/.├── host.ini└── greenplum6-centos7-installer-release.bin

三、配置文件host.ini说明

安装所需的配置文件为host.ini,配置内容包括:

1、 主机列表配置

见host.ini文件中的[node]节,要求:

  • (1)主机列表至少有3台机器(虚拟机或物理机,不支持容器等);

  • (2)ansible_ssh_user参数必须为root,端口号必须为22;

  • (3)Greenplum的master节点与standby节点不能重叠(复用)

  • (5)[all:vars]节中必须使用主机名进行主机角色配置

示例如下:

[node]192.168.31.54 hostname=node1 ansible_ssh_user=root ansible_ssh_port=22 ansible_ssh_pass='123321'192.168.31.55 hostname=node2 ansible_ssh_user=root ansible_ssh_port=22 ansible_ssh_pass='123321'192.168.31.56 hostname=node3 ansible_ssh_user=root ansible_ssh_port=22 ansible_ssh_pass='123321'192.168.31.57 hostname=node4 ansible_ssh_user=root ansible_ssh_port=22 ansible_ssh_pass='123321'

说明

第一列为主机的IP地址(根据实际IP进行填写);

第二列为对应主机的主机名hostname(可自定义各个主机的主机名);

第三列为登录账号ansible_ssh_user必须为root;

第四列为服务器SSH的端口号(必须为22);

第五列为对应主机root账号的密码。

2、 集群参数配置

Greenplum集群参数配置包括:

# greenplum在主机上的数据存储目录位置greenplum_data_directory='/data/gpdb'# Greenplum数据库的master节点主机名,只能为一个主机greenplum_master_node='node1'# greenplum的standby节点主机名,只能为一个主机,可选项,如# 果被井号注释则代表不配置standby节点,如果配置则务必不能与master节点复用# greenplum_standby_node='node2'## greenplum的segment主机节点列表,要求至少有2个节点greenplum_segment_nodes='node2 node3 node4'

3、 离线参数配置

离线安装的参数配置包括:

# whether can connect to internet network####################################################################### if can not connect internet,Please do flollows:## (1) install all dependency packages## (2) Synchronize time for all node host manually#####################################################################network_connected=true

说明:如果配置network_connected=false,则离线安装前需要做如下操作:

  • (1) 在所有的主机节点上安装相关依赖

通常的方法有以下两种:

  • (a) 配置内网环境内搭建一个yum源,集群内的所有主机都配置好该内网的yum源,以便主机上可以直接用yum命令安装依赖;

  • (b) 先在可联网的相同版本操作系统的虚拟机内安装,并开启(安装节点的)yum依赖缓存,以收集找到所有的rpm依赖包,将其到内网机上进行全部安装,然后再使用本工具包进行安装(注意配置参数network_connected=false)

  • (2) 手动配置所有主机节点的时间同步

四、安装与卸载

  • 安装操作

请按照上述配置内容配置host.ini文件,然后执行如下命令进行实际的安装操作:

[root@localhost bin]# sh ./greenplum6-centos7-installer-release.bin ./host.ini install
  • 卸载操作

卸载时的配置host.ini文件内容必须与安装时的配置内容完全一致,然后方可执行如下命令进行卸载操作:

[root@localhost bin]# sh ./greenplum6-centos7-installer-release.bin ./host.ini uninstall

五、问题反馈

如果您看到或使用了本工具,或您觉得本工具对您有价值,请为此项目点个赞,多谢!如果您在使用时遇到了bug,欢迎在issue中反馈。也可扫描下方二维码入群讨论:(加好友请注明:"程序交流")

structure


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap