当前位置:网站首页>greenplum企业部署
greenplum企业部署
2022-07-29 05:26:00 【趴着的猫】
创建用户 : groupadd -g 530 gpadmin
useradd -g 530 -u 530 -m -d /home/gpadmin -s /bin/bash gpadmin
对文件夹进行赋权,为新用户创建密码:
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 #查看mirror的状态
gpstate -f #查看standby master的状态
gpstate -s #查看整个GP群集的状态
gpstate -i #查看GP的版本
gpstate --help #帮助文档,可以查看gpstate更多用法
边栏推荐
- 多路IO用法
- Arrays&Object&System&Math&Random&包装类
- Understand the great changes of network security in five years
- day17_集合下
- FPGA - odd even frequency division and decimal frequency division code routine
- 黑客攻击入侵服务器的6种常见方式
- day04_数组
- 基于FPGA的4位减法器设计及仿真代码
- Complex floating point division of vivado IP core floating point
- Advanced socket programming (options and control information)
猜你喜欢

day13_ Under multithreading

Joint use skills of joiner.on and stream().Map

day06_类与对象

day03_1_流程控制

What are the advantages of software testing? See how much you know

Conversion of fixed-point number to floating-point number of vivado IP core

通过os-shell引发的mysql拿shell的思考

Design of IIR filter based on FPGA

Ansible(自动化软件)

Hongke white paper | how to use TSN time sensitive network technology to build a digital factory in industry 4.0?
随机推荐
Handwritten digit recognition using neural network
day04_数组
DDoS攻击与CC攻击的区别
What is the basic principle of Library collision and library collision attack
Idea practical shortcut key novice must see
Design of IIR filter based on FPGA
[interview questions] the latest software test interview questions in 2022 (400) [with answers] continue to update
day03_ 2_ task
Arrays & object & System & Math & random & Packaging
FIR滤波器设计(1)——利用matlab的fdatool工具箱设计FIR滤波器参数
Advanced socket programming (options and control information)
day03_1_流程控制
day02_基本语法
软件包设置成——>YUM源
day04_ array
day06_ Classes and objects
What is WAF protection
Plugin location in mavan
Why are the job requirements for software testing in 2022 getting higher and higher? Is there any secret in it?
Circular linked list and bidirectional linked list