当前位置:网站首页>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
边栏推荐
- 技术分享| 快对讲综合调度系统
- 准备esp32环境
- Write some DP
- Cfdiv1+2-bash and a high math puzzle- (gcd+ summary of segment tree single point interval maintenance)
- [note] the art of research (understand the importance of the problem)
- FLink CDC 的mysql connector中,mysql的字段是varbinary, 官方
- 10 practical uses of NFT
- Cross domain problems when downloading webapi interface files
- [memo] summary of the reasons why SSH failed? Remember to come next time.
- Space shooting Lesson 17: game over (end)
猜你喜欢
MySQL uses date_ FORMAT(date,'%Y-%m')
Jianmu continuous integration platform v2.5.2 release
Up sampling deconvolution operation
Android interview question | how to write a good and fast log library?
[lecture notes] how to do in-depth learning in poor data?
Technology sharing | quick intercom integrated dispatching system
Solve the problem that CSDN cannot publish blog due to unknown copyright
CDM - code division multiplexing (easy to understand)
[paper reading | cryoelectron microscope] interpretation of the new subtomogram averaging method in relion 4.0
[paper reading | cryoet] gum net: fast and accurate 3D subtomo image alignment and average unsupervised geometric matching
随机推荐
String class
UPC little C's King Canyon
Zip gzip tar compression Advanced Edition
[introduction to cryoelectron microscopy] Caltech open class course notes part 3:image formation
【深度学习】数据准备-pytorch自定义图像分割类数据集加载
输出1234无重复的三位数
准备esp32环境
Sort out the two NFT pricing paradigms and four solutions on the market
Amaze UI 图标查询
RoBERTa:A Robustly Optimized BERT Pretraining Approach
Day 014 二维数组练习
@Detailed explanation of requestmapping usage
The difference between static library and dynamic library of program
RoBERTa:A Robustly Optimized BERT Pretraining Approach
Prometheus and grafana
[flask introduction series] installation and configuration of flask Sqlalchemy
[experience] relevant configuration of remote connection to intranet server through springboard machine
Matlab simulation of LDPC minimum sum decoding based on high-order six ring free
@Use of jsonserialize annotation
MySQL 45 讲 | 07 行锁功过:怎么减少行锁对性能的影响?