分散式MPP資料庫Greenplum一鍵安裝
阿新 • • 發佈:2020-08-09
一、Greenplum資料庫
Greenplum是一款開源的分散式資料庫儲存解決方案,官方的安裝操作文件地址為:
https://gpdb.docs.pivotal.io/6-7/install_guide/install_guide.html
二、Greenplum一鍵安裝
由於安裝Greenplum需要每臺機器操作,雖然官方在文件中也指出了可以編寫yml用ansible-playbook安裝,但並未提供具體的實現方法。為此,特意研究了下Greenplum一鍵安裝,具體如下:
1、使用如下命令製作安裝bin包
[root@localhost root]# yum install epel-release -y
[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/
.
├── account.txt
└── greenplum6-centos7-release.bin
2、將打包的bin包拷貝到部署伺服器上(其中一個主機節點即可)
[root@localhost ~]# ll
total 67980
-rwxr-xr-x 1 root root 69609042 Jun 12 21:51 greenplum6-centos7-release.bin
3、配置安裝伺服器的賬號資訊
[root@localhost ~]# cat account.txt
10.101.1.10 root 123321
10.101.1.11 root 123321
10.101.1.12 root 123321
10.101.1.13 root 123321
注:第一行為master節點,第二行為standby節點,第三行至最後均為segement節點
4、一鍵安裝命令
[root@localhost ~]# ll total 67984 -rw-r--r-- 1 root root 96 Jun 12 21:52 account.txt -rwxr-xr-x 1 root root 69609042 Jun 12 21:51 greenplum6-centos7-release.bin
[root@localhost ~]# sh bin/greenplum6-centos7-release.bin ./account.txt install
等待安裝完成後,即可用客戶端登入訪問資料庫了。
5、客戶端訪問資料庫
使用如下資訊登入資料庫:
名稱 | 引數 |
主機地址: | 10.101.1.10 |
埠號: | 5432 |
資料庫: | studydb |
賬號: | study |
密碼: | 123321 |