亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

GREENPLUM 5.17 centos 6.10安裝步驟是什么

發布時間:2021-11-09 14:16:22 來源:億速云 閱讀:158 作者:iii 欄目:關系型數據庫

本篇內容介紹了“GREENPLUM 5.17 centos 6.10安裝步驟是什么”的有關知識,在實際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓小編帶領大家學習一下如何處理這些情況吧!希望大家仔細閱讀,能夠學有所成!

安裝介質:
greenplum-db-5.17.0-rhel6-x86_64.zip

有二進制安裝包和RPM安裝包,我這里選擇二進制安裝包來安裝

機器規劃(一個主節點,三個數據節點):

192.168.11.210 mdw
192.168.11.211 sdw1
192.168.11.212 sdw2
192.168.11.213 sdw3


1,禁用防火墻和selinux

service iptables stop
chkconfig iptables off
vi /etc/selinux/config
selinux=disabled



2,配置內核參數
配置內核參數文件:

vi /etc/sysctl.conf
kernel.shmmax = 500000000
kernel.shmmni = 4096
kernel.shmall = 4000000000
kernel.sem = 500 1024000 200 4096
kernel.sysrq = 1
kernel.core_uses_pid = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.msgmni = 2048
net.ipv4.tcp_syncookies = 1
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.conf.all.arp_filter = 1
net.ipv4.ip_local_port_range = 10000 65535
net.core.netdev_max_backlog = 10000
net.core.rmem_max = 2097152
net.core.wmem_max = 2097152
vm.overcommit_memory = 2
vm.swappiness = 10
vm.dirty_expire_centisecs = 500
vm.dirty_writeback_centisecs = 100
vm.dirty_background_ratio = 0
vm.dirty_ratio=0
vm.dirty_background_bytes = 1610612736
vm.dirty_bytes = 4294967296

執行sysctl -p使內核參數生效

3,配置資源限制參數

vi  /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
* soft nproc 131072
* hard nproc 131072



4,文件系統格式
文件系統格式推薦使用XFS

5,配置磁盤文件預讀參數
推薦配置為16384
獲取當前值:/sbin/blockdev --getra /dev/sda
設置新值:/sbin/blockdev --setra 16384 /dev/sda

6,配置磁盤I/O調度策略
推薦設置成deadline模式,有兩種設置方法
方法一:

echo deadline /sys/block/sda/queue/scheduler



重啟之后失效,可以把上面命令配置到環境變量或者rc.local里面使之啟動生效

方法二(永久):
在grub.conf里面配置elevator=deadline:

vi /etc/grub.conf
kernel /vmlinuz-2.6.32-754.11.1.el6.x86_64 ro root=UUID=39773d5f-aa30-4e9c-aca4-b8f41a865397 elevator=deadline rd_NO_LUKS rd_NO_LVM.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet



7,禁用THP(透明大頁)
grub.conf里面添加transparent_hugepage=never:

vi /etc/grub.conf
kernel /vmlinuz-2.6.32-754.11.1.el6.x86_64 ro root=UUID=707d5027-2cc0-4111-9efc-bddc1cc4fe5d elevator=deadline rd_NO_LUKS rd_NO_LVM.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet transparent_hugepage=never



需要重啟生效

8,創建用戶和組

groupadd gpadmin
useradd gpadmin -g gpadmin
New password: <changeme>
Retype new password: <changeme>



9,安裝GPDB

unzip greenplum-db-5.17.0-rhel6-x86_64.zip 
./greenplum-db-5.17.0-rhel6-x86_64.bin



交互模式中需要接受license,設置安裝路徑等,本文安裝路徑為/home/gpadmin/greenplum

10,創建hostlist文件
創建兩個hostlist文件,列出各個節點的主機名(host列出所有機器主機名,seg_host僅列出segment主機名)

vi host
mdw
sdw1
sdw2
sdw3
vi seg_host
sdw1
sdw2
sdw3



11,配置各個節點互信

gpssh-exkeys -f  /home/gpadmin/greenplum/host



12,其它節點批量安裝GPDB

gpseginstall -f /home/gpadmin/greenplum/host



–確認其他節點安裝情況

gpssh -f /home/gpadmin/greenplum/host -e ls -l $GPHOME



13,創建數據存儲目錄
主節點創建數據目錄:

mkdir -p /home/gpadmin/gpdata/master



segment節點批量創建目錄

gpssh -f seg_host -e 'mkdir -p /home/gpadmin/gpdata/primary'
gpssh -f seg_host -e 'mkdir -p /home/gpadmin/gpdata/mirror'



由于本文是直接安裝在家目錄下面,不會涉及權限問題,如果安裝其它目錄下需要配置相應權限

14,配置NTP同步


15,配置初始化gpdb參數
復制初始化參數文件到gpdb安裝目錄

cp /home/gpadmin/greenplum/docs/cli_help/gpconfigs/gpinitsystem_config  /home/gpadmin/greenplum



修改gpdb初始化參數文件

vi gpinitsystem_config 
ARRAY_NAME="Greenplum Data Platform"
SEG_PREFIX=gpseg
PORT_BASE=6000
declare -a DATA_DIRECTORY=(/home/gpadmin/gpdata/primary  /home/gpadmin/gpdata/primary /home/gpadmin/gpdata/primary)
MASTER_HOSTNAME=mdw
MASTER_DIRECTORY=/home/gpadmin/gpdata/master
MASTER_PORT=5432
TRUSTED_SHELL=ssh
CHECK_POINT_SEGMENTS=8
ENCODING=UNICODE
MIRROR_PORT_BASE=7000
REPLICATION_PORT_BASE=8000
MIRROR_REPLICATION_PORT_BASE=9000
declare -a MIRROR_DATA_DIRECTORY=(/home/gpadmin/gpdata/mirror /home/gpadmin/gpdata/mirror /home/gpadmin/gpdata/mirror)
DATABASE_NAME=devin
MACHINE_LIST_FILE=/home/gpadmin/greenplum/seg_host



15,初始化gpdb

gpinitsystem -c gpinitsystem_config -h seg_host



其他常用參數
-s 配置standby master
-S spread mirror (默認grouped mirror模式)

16,檢查gpdb狀態

[gpadmin@mdw ~]$ gpstate
20190422:16:26:09:015110 gpstate:mdw:gpadmin-[INFO]:-Starting gpstate with args: 
20190422:16:26:09:015110 gpstate:mdw:gpadmin-[INFO]:-local Greenplum Version: 'postgres (Greenplum Database) 5.17.0 build commit:fc9a9d4cad8dd4037b9bc07bf837c0b958726103'
20190422:16:26:09:015110 gpstate:mdw:gpadmin-[INFO]:-master Greenplum Version: 'PostgreSQL 8.3.23 (Greenplum Database 5.17.0 build commit:fc9a9d4cad8dd4037b9bc07bf837c0b958726103) on x86_64-pc-linux-gnu, compiled by GCC gcc (GCC) 6.2.0, 64-bit compiled on Feb 13 2019 15:26:39'
20190422:16:26:09:015110 gpstate:mdw:gpadmin-[INFO]:-Obtaining Segment details from master...
20190422:16:26:09:015110 gpstate:mdw:gpadmin-[INFO]:-Gathering data from segments...
.... 
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-Greenplum instance status summary
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-----------------------------------------------------
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Master instance                                           = Active
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Master standby                                            = No master standby configured
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total segment instance count from metadata                = 18
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-----------------------------------------------------
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Primary Segment Status
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-----------------------------------------------------
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total primary segments                                    = 9
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total primary segment valid (at master)                   = 9
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total primary segment failures (at master)                = 0
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total number of postmaster.pid files missing              = 0
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total number of postmaster.pid files found                = 9
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total number of postmaster.pid PIDs missing               = 0
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total number of postmaster.pid PIDs found                 = 9
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total number of /tmp lock files missing                   = 0
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total number of /tmp lock files found                     = 9
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total number postmaster processes missing                 = 0
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total number postmaster processes found                   = 9
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-----------------------------------------------------
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Mirror Segment Status
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-----------------------------------------------------
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total mirror segments                                     = 9
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total mirror segment valid (at master)                    = 9
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total mirror segment failures (at master)                 = 0
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total number of postmaster.pid files missing              = 0
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total number of postmaster.pid files found                = 9
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total number of postmaster.pid PIDs missing               = 0
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total number of postmaster.pid PIDs found                 = 9
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total number of /tmp lock files missing                   = 0
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total number of /tmp lock files found                     = 9
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total number postmaster processes missing                 = 0
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total number postmaster processes found                   = 9
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total number mirror segments acting as primary segments   = 0
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-   Total number mirror segments acting as mirror segments    = 9
20190422:16:26:13:015110 gpstate:mdw:gpadmin-[INFO]:-----------------------------------------------------

“GREENPLUM 5.17 centos 6.10安裝步驟是什么”的內容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業相關的知識可以關注億速云網站,小編將為大家輸出更多高質量的實用文章!

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

景泰县| 白玉县| 萍乡市| 察雅县| 陆川县| 洛宁县| 青川县| 泰兴市| 昆明市| 宜兴市| 黔江区| 汉阴县| 旅游| 兴城市| 华安县| 贺兰县| 新晃| 清水县| 都江堰市| 隆德县| 富民县| 石屏县| 普格县| 甘洛县| 吉安市| 乌海市| 宣武区| 库尔勒市| 高台县| 布拖县| 蒙城县| 永春县| 竹北市| 南漳县| 健康| 苍梧县| 额济纳旗| 镇远县| 永和县| 保康县| 上思县|