当前位置:网站首页>Greenplus enterprise deployment
Greenplus enterprise deployment
2022-07-29 07:52:00 【Lying cat】
Create user : groupadd -g 530 gpadmin
useradd -g 530 -u 530 -m -d /home/gpadmin -s /bin/bash gpadmin
Empower folders , Create passwords for new users :
chown -R gpadmin:gpadmin /home/gpadmin/
passwd gpadmin
vim /etc/hosts
192.168.10.1 mdw
192.168.10.2 sdw1
192.168.10.3 sdw2
192.168.10.4 sdw3
rpm -ivh --prefix=/opt/greenplum/ open-source-greenplum-db-6.16.0-rhel7-x86_64.rpm
chown -R gpadmin:gpamdin /opt/gpadmin
cd /opt/greenplum
vi hostlist
mdw
sdw1
sdw2
sdw3
vi seg_host
192.168.10.2
192.168.10.3
192.168.10.4
su gpadmin
source /opt/greenplum/greenplum-db/greenplum_path.sh
gpssh-exkeys -f /home/gpadmin/conf/hostlist
alias ssh='ssh -p 9922'
ssh sdw1
gpssh -f /home/gpadmin/conf/seg_hosts
=> pwd
[gp-sdw1] /home/gpadmin
[gp-sdw3] /home/gpadmin
[gp-sdw2] /home/gpadmin
[ gp-master] /home/gpadmin
chown -R gpadmin:gpadmin /usr/local/
chown -R gpadmin:gpadmin /opt
tar -cf gp.tar greenplum-db-5.0.0/
source /usr/local/ greenplum-db/greenplum_path.sh
gpssh -f /home/gpadmin/conf/hostlist
cd /usr/local
tar -xf gp.tar
ln -s ./greenplum-db-6.7.0 greenplum-db
mkdir -p /opt/greenplum/data/master
mkdir -p /opt/greenplum/data/primary
mkdir -p /opt/greenplum/data/mirror
mkdir -p /opt/greenplum/data2/primary
mkdir -p /opt/greenplum/data2/mirror
vi /home/gpadmin/.bash_profile
source /home/gpadmin/greenplum/greenplum-db/greenplum_path.sh
export MASTER_DATA_DIRECTORY=/home/gpadmin/greenplum/gpdata/gpmaster/gpseg-1
export PGPORT=15432
export GPPORT=15432
export PGDATABASE=testDB
source /home/gpadmin/.bash_profile
scp /home/gpadmin/.bash_profile gp-sdw1:/home/gpadmin/
scp /home/gpadmin/.bash_profile gp-sdw2:/home/gpadmin/
scp /home/gpadmin/.bash_profile gp-sdw3:/home/gpadmin/
gpinitsystem -c /home/gpadmin/gpinit_config -s sdw3
gpstate -e # see mirror The state of
gpstate -f # see standby master The state of
gpstate -s # View the entire GP The state of the cluster
gpstate -i # see GP Version of
gpstate --help # Help document , You can see gpstate More usage
边栏推荐
- 《nlp入门+实战:第五章:使用pytorch中的API实现线性回归》
- [cryoelectron microscope] relation4.0 - subtomogram tutorial
- Solving linear programming problems based on MATLAB
- Postman interface test | JS script blocking sleep and non blocking sleep
- [untitled] format save
- 佳木斯市场监管局开展防疫防虫害专题食品安全网络培训
- MySQL 45 | 08 is the transaction isolated or not?
- Joseph Ring problem
- 你学习·我奖励,21天学习挑战赛 | 等你来战
- What is the use of chat robots? What type? After reading these, you will understand!
猜你喜欢

Halcon installation and testing in vs2017, DLL configuration in vs2017
What are the principles and methods of implementing functional automation testing?
![[WPF] realize language switching through dynamic / static resources](/img/23/1e089ce4a07128323824b25897a8c4.png)
[WPF] realize language switching through dynamic / static resources

Go 事,如何成为一个Gopher ,并在7天找到 Go 语言相关工作,第1篇

@Use of jsonserialize annotation

Day 014 二维数组练习

Data unit: bit, byte, word, word length

What are the answers about older bloggers?

Pat class a 1146 topology sequence

What is the use of chat robots? What type? After reading these, you will understand!
随机推荐
[FPGA tutorial case 42] image case 2 - realize image binarization processing through Verilog, and conduct auxiliary verification through MATLAB
下推分析的限制
String class
QT connects two qslite databases and reports an error qsqlquery:: exec: database not open
佳木斯市场监管局开展防疫防虫害专题食品安全网络培训
Mutationobserver document learning
Basic introduction to pod
Phased learning about the entry-level application of SQL Server statements - necessary for job hunting (I)
Day 014 二维数组练习
FLink CDC 的mysql connector中,mysql的字段是varbinary, 官方
Ionicons icon Encyclopedia
在js中,0表示false,非0表示true
Data unit: bit, byte, word, word length
准备esp32环境
The smallest positive number that a subset of an array cannot accumulate
How to draw an excellent architecture diagram
性能更佳、使用更简单的懒加载IntersectionObserverEntry(观察者)
技术分享| 快对讲综合调度系统
在一个sql文件中,上面定义一个测试表及数据,下面可以select* from 测试表
Write some DP