Professional Documents
Culture Documents
#############################
Summary
#############################################################################
############### STEP: 1 (OS Pre-requisites & GPDB Installation)##############
a. Hardware Pre-requisites
- File Systems: xfs required for data storage on SUSE Linux and Red Hat (ext3
supported for root file system)
- Minimum CPU: Pentium Pro compatible (P3/Athlon and above)
- Minimum Memory: 24 GB RAM per server
- Disk Requirements: 150MB per host for Greenplum installation and
Approximately 300MB per segment instance for meta data
- Network Requirements: 10 Gigabit Ethernet within the array
d. By using below command verify that yum repository is configured properly else
ask Infra
# sudo yum repolist all
#####################################################################
########### STEP: 1 (OS Pre-requisites & GPDB Installation) #########
sudo vi /etc/ssh/sshd_config
#add following lines at bottom
MaxStartups 100:30:200
MaxSessions 200
#####################
#Greenplum Ports Requirement:
#Following ports should be open on Greenplum Database Server
#• 22 in case Ansible Deployment
#• 5888, 5889 PXF
#• 8081, 8082 GPfdist
#• 8443 Tomcat
#• 50000 ~ 50050+ segments and background processes (Keep Room)
#• 55432 GP-Master Port
###############################################
vi /etc/selinux/config
#Update SELINUX value as below
SELINUX=disabled
cd /usr/local
sudo tar -xvf go1.13.linux-amd64.tar.gz
sudo sysctl -p
sudo vi /etc/security/limits.d/20-nproc.conf
#add following lines at bottom
* soft nproc 131072
#ignore_errors if occur
ls -al /home/gpadmin/.bashrc
##########################################################################
############## STEP 2 (GPDB Master & Segment Configuration) ##############
vi /home/gpadmin/gp_init_config
#sample here
ARRAY_NAME="greenplum" #Change as per hostname
MACHINE_LIST_FILE=/home/gpadmin/hostfile
SEG_PREFIX=gpseg
PORT_BASE=50000
declare -a DATA_DIRECTORY=(/data/primary /data/primary /data/primary
/data/primary ) #Copy /data/primary as many times as
#You may verify the services by using the below command it will show you the
processes of postgres if services has been started
ps -ef|grep post
#####################################################################
###################### STEP 3 (Zabbix Configuration) ################
sudo cp
/data/required_packages/scripts/zabbix/zabbix_agentd.d/template_db_postgresql.conf
/etc/zabbix/zabbix_agentd.d/
sudo chmod 0644 /etc/zabbix/zabbix_agentd.d/template_db_postgresql.conf
######################################################################
#################### STEP 4 (GPFDist Configuration) ##################
pkill -f gpfdist
sudo cp /data/required_packages/scripts/gpfdist/start*
/home/gpadmin/scripts/gpfdist/
sudo chown gpadmin:gpadmin
/home/gpadmin/scripts/gpfdist/startGPFDist8081Profiler.sh
sudo chown gpadmin:gpadmin /home/gpadmin/scripts/gpfdist/startGPFDist8082GPLogs.sh
sudo chmod 0755 /home/gpadmin/scripts/gpfdist/startGPFDist8081Profiler.sh
sudo chmod 0755 /home/gpadmin/scripts/gpfdist/startGPFDist8082GPLogs.sh
###############################################################################
#################### STEP 5 (Configure & Enable Cronjobs) #####################
#################### Configuring Cron-Jobs #####################
sudo vi /etc/crontab
#add following lines at bottom
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
################################################################################
############################ STEP 6 (PXF Installation) #########################
vi .bash_profile
#add following lines at bottom
GPHOME=/usr/local/greenplum-db
export GPHOME
PATH=$GPHOME/bin:$PATH
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el7_8.x86_64
#Change Path Accordingly
export PXF_HOME=/usr/local/greenplum-db/pxf
export PGPORT=55432
. .bash_profile
sudo cp /home/gpadmin/pxf/templates/jdbc-site.xml
/home/gpadmin/pxf/servers/mysqlarch/
=================================ADDITIONAL SETTINGS============================
#OS Users:
#---------
gpadmin
afinitidba
software.dba
#DB Users:
#---------
gpadmin