GBase 8a 部署(8.6)
本次实验涉及三个节点,即是管理节点 又是数据节点
数据库版本 GBase8a 8.6.2
操作系统版本 CentOS Linux release 7.9.2009 (Core)
验证开启ssh【所有节点】
[root@localhost ~]# service sshd status
关闭selinux【所有节点】
[root@localhost ~]# vi /etc/selinux/config
[root@localhost ~]# reboot
[root@localhost ~]# sestatus
SELINUX=disabled
关闭防火墙【所有节点】
[root@localhost ~]# systemctl stop firewalld.service
[root@localhost ~]# systemctl status firewalld.service
安装解压软件【所有节点】
[root@localhost opt]# yum -y install bzip2.x86_64
解压【在一个管理节点执行即可】
[root@localhost ~]# cd /opt/
[root@localhost opt]# ls
GBase8a_MPP_Cluster-NoLicense-8.6.2_build43-R33-132743-redhat7-x86_64.tar.bz2
[root@localhost opt]# tar xfj GBase8a_MPP_Cluster-NoLicense-8.6.2_build43-R33-132743-redhat7-x86_64.tar.bz2
配置集群信息
[root@localhost gcinstall]# vi demo.options
installPrefix= /opt
coordinateHost = 192.168.61.132,192.168.61.133,192.168.61.134
coordinateHostNodeID = 132,133,134
dataHost = 192.168.61.132,192.168.61.133,192.168.61.134
#existCoordinateHost =
#existDataHost =
loginUser= root
loginUserPwd = '111111'
#loginUserPwdFile = loginUserPwd.json
dbaUser = gbase
dbaGroup = gbase
dbaPwd = 'gbase'
rootPwd = '111111'
#rootPwdFile = rootPwd.json
dbRootPwd = ''
#mcastAddr = 226.94.1.39
mcastPort = 5493
安装
[root@localhost gcinstall]# ./gcinstall.py --slient=demo.options
查看集群运行状态
[root@localhost gcinstall]# service gcware status
corosync (pid 5042) is running...
gclusterd (pid 5766) is running...
gcrecover (pid 5827) is running...
gbased (pid 5133) is running...
gc_sync_server (pid 5732) is running...
[root@localhost gcinstall]# gcadmin
CLUSTER STATE: ACTIVE
CLUSTER MODE: NORMAL=====================================================================
| GBASE COORDINATOR CLUSTER INFORMATION |
=====================================================================
| NodeName | IpAddress |gcware |gcluster |DataState |
---------------------------------------------------------------------
| coordinator1 | 192.168.61.132 | OPEN | OPEN | 0 |
---------------------------------------------------------------------
| coordinator2 | 192.168.61.133 | OPEN | OPEN | 0 |
---------------------------------------------------------------------
| coordinator3 | 192.168.61.134 | OPEN | OPEN | 0 |
---------------------------------------------------------------------
=================================================================
| GBASE DATA CLUSTER INFORMATION |
=================================================================
|NodeName | IpAddress |gnode |syncserver |DataState |
-----------------------------------------------------------------
| node1 | 192.168.61.132 | OPEN | OPEN | 0 |
-----------------------------------------------------------------
| node2 | 192.168.61.133 | OPEN | OPEN | 0 |
-----------------------------------------------------------------
| node3 | 192.168.61.134 | OPEN | OPEN | 0 |
-----------------------------------------------------------------
设置集群分布方式
【p=2 每个节点2个分片,d=2 每个分片2个备份,pattern=1 负载均衡分布方式】
[root@localhost opt]# su - gbase
[gbase@localhost ~]$ cd /opt/gcinstall/
[gbase@localhost gcinstall]$ gcadmin distribution gcChangeInfo.xml p 2 d 2 pattern 1
gcadmin generate distribution ...NOTE: node [192.168.61.132] is coordinator node, it shall be data node too
NOTE: node [192.168.61.133] is coordinator node, it shall be data node too
NOTE: node [192.168.61.134] is coordinator node, it shall be data node too
gcadmin generate distribution successful
查看集群分布情况
[gbase@localhost gcinstall]$ gcadmin showdistribution nodeDistribution ID: 1 | State: new | Total segment num: 6====================================================================================================================================
|nodes | 192.168.61.132 | 192.168.61.133 | 192.168.61.134 |
------------------------------------------------------------------------------------------------------------------------------------
|primary | 1 | 2 | 3 |
|segments | 4 | 5 | 6 |
------------------------------------------------------------------------------------------------------------------------------------
|duplicate | 3 | 1 | 2 |
|segments 1| 5 | 6 | 4 |
------------------------------------------------------------------------------------------------------------------------------------
|duplicate | 2 | 3 | 1 |
|segments 2| 6 | 4 | 5 |
====================================================================================================================================
连接并初始化数据库
[gbase@localhost gcinstall]$ gccli -uroot -p
Enter password: GBase client 8.6.2.43-R33.132743. Copyright (c) 2004-2022, GBase. All Rights Reserved.gbase> show database;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your GBase server version for the right syntax to use near 'database' at line 1
gbase> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| performance_schema |
| gbase |
| gclusterdb |
| gctmpdb |
+--------------------+
5 rows in set (Elapsed: 00:00:00.01)gbase> create database a;
ERROR 1707 (HY000): gcluster command error: (GBA-02CO-0003) nodedatamap is not initialized.
gbase> initnodedatamap;
Query OK, 0 rows affected (Elapsed: 00:00:01.12)gbase> create database a;
Query OK, 1 row affected (Elapsed: 00:00:00.00)
GBase 8a 部署(8.6)相关推荐
- GBase 8a 部署(centos8)
这篇文章(推荐看这篇 里面记录了很多问题)介绍了在centos7上 部署了GBase8a 9.5版本 本次的实验内容是在 Centos8上部署Gbase8a 9.5版本,其实Gbase的部署步骤都一样 ...
- GBase 8a 虚拟集群
虚拟集群是在一个物理集群中又划分出来一个两个或多个虚拟集群 比如在一个物理集群中包含六个节点 192.168.61.1-6[安装时 demo.options里面配置6个节点] 其中192.168.61 ...
- CENTOS 8上部署GBase 8a的环境配置
REDHAT 8/CENTOS 8使用的命令与之前的版本有一些区别,习惯了使用6.7版本的命令在8版本下部署GBase 8a,发现有很多变化.下面是创建虚拟机使用CENTOS 8的ISO安装文件安装环 ...
- 技术分享|GBase 8a在某客户的部署方案
软硬件需求估算 配置计算原则 按照客户方估算:初始入库10TB左右,月增长1TB左右,数据保存年限15年,基于以上计算考虑到系统冗余,集群整体数据承载能力需求大于200TB.建议部署3节点集群.由我方 ...
- GBase 8a 高可用集群同城双活灾备方案
GBase 8a数据库集群支持主备模式的同城双活灾备方案,其原理为主集群承担应用,对数据进行批量操作(包括数据加载和数据加工),在主集群加工完数据之后,每天特定时间点将数据增量同步到同城双活的备集群当 ...
- 分析型数据库产品的排头兵GBase 8a
南大通用大规模分布式并行数据库集群系统,简称:GBase 8a MPP Cluster,它是在GBase 8a列存储数据库基础上开发的一款Shared Nothing架构的分布式并行数据库集群,具备高 ...
- GBase 8a的产品简介
产品简介 节点类型 Coordinator节点:集群入口节点,gclusterd .gcware.gc_recover等服务所在的节点,实现跨业务关联访问和操作.包括跨业务数据访问和用户权限管理. d ...
- 生态 | 南大通用GBase 8a与Suma完成兼容性互认证
日前,GBASE南大通用分析型集群数据库GBase 8a MPP Cluster集群数据库与中科可控信息产业有限公司的H系列服务器完成兼容性适配.经南大通用与中科可控联合测试,GBase 8a集群与H ...
- Gbase 8a MPP Cluster维护过程中可能遇到的故障管理(五)
管理工具 1 在集群中使用 hint 优化,没有效果 问题现象 在集群中使用 hint 优化,没有效果. 解决方法 在登录数据库时,需要加入-c 参数才能使优化起作用, gccli–uroot–c 即 ...
最新文章
- Scalaz(12)- Monad:再述述flatMap,顺便了解MonadPlus
- 海军工程大学学生电子课程-DIY Final预验收
- 小科知道20211202
- java 链表反转_剑指BAT:如何最优雅着反转单链表?
- Remote PC另类用法:远程控制
- 使用Maven编译项目遇到——“maven编码gbk的不可映射字符”解决办法 ——转载...
- nhibernate入门系列: many-to-many映射
- 6、PXE安装ESXI6.0
- idea全局搜索替换快捷键
- 4418GPIO口调用过程
- 【Win】KMS 激活命令记录
- django教程day07
- unity开发炉石传说系列卡牌生成代码部分代码
- HyperMesh 2D网格划分
- python气泡图画_Python使用Plotly绘图工具,绘制气泡图
- 【附源码】计算机毕业设计java医疗物资管理系统设计与实现
- OVS 流表轨迹入门及典型场景举例【ovs-appctl ofproto/trace】
- 电路方案分析(十六)带有C2000微控制器且精度为 ±0.1° 的分立式旋转变压器前端参考设计
- 2016-ECCV-《Learning without Forgetting》论文阅读笔记
- Android 电池电量监控初步