1.使用root用户在所有节点创建用户
groupadd gbase;\
useradd gbase -d /home/gbase -m -g gbase;\
echo "gbase" | passwd --stdin gbase
2.使用 root 用户在所有节点关闭防火墙和 selinux
systemctl stop firewalld;systemctl disable firewalld
vi /etc/sysconfig/selinux
将 SELINUX=enforcing 修改为 SELINUX=disabled
setenforce 0
3.使用 gbase 用户将安装包上传到一台管理节点并解压,以下示例解压路径为 /opt/gbase
cd /opt/gbase
tar -xjvf GBase8a_MPP_Cluster-License-9.5.3.013-redhat7.3-x86_64.tar.bz2
4.使用root用户在所有节点执行系统参数初始化脚本
cd /opt/gbase/gcinstall
将 SetSysEnv.py 文件拷贝到所有节点,然后执行如下命令
./SetSysEnv.py --dbaUser=gbase --installPrefix=/opt/gbase
5. 使用gbase用户执行安装
修改安装配置文件,按照实际情况修改各进程IP
vi demo.options
安装
./gcinstall.py --silent=demo.options
6. 使用gbase用户激活license
获取指纹
./gethostsid -n 192.168.2.101,192.168.2.102,192.168.2.103 -f finger.txt -u gbase -p gbase
导入license
./License -n 192.168.2.101,192.168.2.102,192.168.2.103 -f license.lic -u gbase -p gbase
使用gbase用户在所有节点启动服务
gcluster_services all start
7. 使用gbase用户创建distribution
cd /opt/gbase/gcinstall
gcadmin distribution gcChangeInfo.xml p 1 d 1
如果只有一个节点,使用 p 1 d 0
8.登录数据库进行初始化
gccli -uroot
initnodedatamap;
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




