Home System Tutorial LINUX Steps to install Greenplum 4.3.5.2 on CentOS 6.6

Steps to install Greenplum 4.3.5.2 on CentOS 6.6

Jan 04, 2024 pm 09:48 PM
greenplum centos6.6

On the GP official website, I can’t see the corresponding version of the latest GP on Centos, so just use the RedHat version.

Foreword:

GP installation is roughly like this, select one host as the Master machine and the others as Segment machines. Since there are not that many machines, I opened three centos6.6 virtual machines in 1+2 mode.

When installing, remember that GP can be installed on the Master machine first, and then similar remote installation can be performed by establishing mutual trust (gpssh-exkeys) between the Master machine and the Segment machine. You can log in to all machines through gpssh and perform What you want includes creating a user, copying the installed GP, and a series of other operations. Of course, before installation, some people will configure the kernel parameters, restriction parameters, etc., depending on your needs. Because my virtual machine and hardware basically cannot meet the official website requirements, I gave up this step.

Preparation before installation (optional)

1. Add

in /etc/sysctl.conf of the Master machine

[html] view plaincopy

kernel.shmmax = 500000000
kernel.shmmni = 4096
kernel.shmall = 4000000000
kernel.sem = 250 512000 100 2048
kernel.sysrq = 1
kernel.core_uses_pid = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.msgmni = 2048
net.ipv4.tcp_syncookies = 1
net.ipv4.ip_forward = 0
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 = 1025 65535
net.core.netdev_max_backlog = 10000
net.core.rmem_max = 2097152
net.core.wmem_max = 2097152
vm.overcommit_memory = 2
Copy after login

Restart the machine or run sysctl -p to take effect

2. Add

to the Master machine /etc/security/limits.conf

[html] view plaincopy

* soft nofile 65536
* hard nofile 65536
* soft nproc 131072
* hard nproc 131072
Copy after login

!!! Note that for RedHat 6.x and Centos6.x machines, the parameters in /etc/security/limits.d/90-nproc.conf will override the above file parameters. If parameters are set in both files, ensure that the parameters are set in 90-nproc.conf.

3. Turn off the firewall

chkconfig iptables off ;//Permanently closed, will not start after restart

service iptables stop ;//It will start after restarting, use service iptables status to check the status.

Start GP installation

1. Install GP on the Master with root permissions

Put the downloaded greenplum-db-4.3.5.2-build-1-RHEL5-x86_64.zip into a directory, decompress (unzip), and get a ReadMe and .bin file. The default GP is installed in /usr It is under /local/greenplum. In fact, it can be installed anywhere. Here we install it under /opt/greenplum/.

Execute the bin file and unzip the directory ./greenplum-db-4.3.5.2-build-1-RHEL5-x86_64.bin

Press the space bar all the way until you are asked to enter yes|no, hit yes

Select the installation directory and enter the directory you want to install, here /opt/greenplum/greenplum-db-4.3.5.2

Just go all the way to yes and it will be installed, very quickly.

2. It is customary to first create a user gpadmin responsible for the GP database on the master machine, and then add the user gpadmin on the segment machine through gpssh

Generally, there is no gpadmin user at the beginning, just create a new one

groupadd -g 530 gpadmin

useradd -g 530 -u 530 -m -d /home/gpadmin -s /bin/bash gpadmin

passwd gpadmin ;Add password

Modify permissions on the GP installation folder

chown -R gpadmin:gpadmin /home/gpadmin

chown -R gpadmin:gpadmin /opt/greenplum

Add an environment variable file in the GP installation directory to the user.

source /opt/greenplum/greenplum-db/greenplum_path.sh;/opt/greenplum/greenplum-db is a link to /opt/greenplum/greenplum-db-4.3.5.2. If not, link it yourself ln -s / opt/greenplum/greenplum-db-4.3.5.2 /opt/greenplum/greenplum-db

3. Establish mutual trust between hosts

First, on the Master machine, edit the /etc/hosts file,

Enter the IP and hostname of the Master machine and segment machine.

like

# /etc/hosts

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.127.136 mdw #master machine

192.168.127.137 sdw1 #segment machine

192.168.127.138 sdw2 #segment machine

Secondly, in a certain directory such as /var, create a file hostlists (name whatever you want) that protects the hostname of all hosts and seg_hosts containing the hostname of the segment machine.

/var/hostlists:

mdw

sdw1

sdw2

/var/seg_hosts

sdw1

sdw2

Start building mutual trust

gpssh-exkeys -f /var/hostlists

[root@localhost ~]$ gpssh-exkeys -f /var/hostlists

[STEP 1 of 5] create local ID and authorize on local host

... /home/root/.ssh/id_rsa file exists ... key generation skipped

[STEP 2 of 5] keyscan all hosts and update known_hosts file

[STEP 3 of 5] authorize current user on remote hosts

... send to mdw

... send to sdw1

***

*** Enter password for sdw1:

[STEP 4 of 5] determine common authentication file content

[STEP 5 of 5] copy authentication files to all remote hosts

... finished key exchange with mdw

... finished key exchange with sdw1

[INFO] completed successfully

Note: If prompted that there is no secret key, just ssh-keygen -t rsa; ssh-add /root/.ssh/id_rsa. You can get the secret key. If you execute ssd-add and it appears that Could not open a connection to your authentication agent, just execute ssh-agent bash.

After establishing mutual trust, you can access all machines through gpssh -f /var/seg_hosts.

The above is the detailed content of Steps to install Greenplum 4.3.5.2 on CentOS 6.6. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1659
14
PHP Tutorial
1258
29
C# Tutorial
1233
24
What are the 5 basic components of Linux? What are the 5 basic components of Linux? Apr 06, 2025 am 12:05 AM

The five basic components of Linux are: 1. The kernel, managing hardware resources; 2. The system library, providing functions and services; 3. Shell, the interface for users to interact with the system; 4. The file system, storing and organizing data; 5. Applications, using system resources to implement functions.

How to learn Linux basics? How to learn Linux basics? Apr 10, 2025 am 09:32 AM

The methods for basic Linux learning from scratch include: 1. Understand the file system and command line interface, 2. Master basic commands such as ls, cd, mkdir, 3. Learn file operations, such as creating and editing files, 4. Explore advanced usage such as pipelines and grep commands, 5. Master debugging skills and performance optimization, 6. Continuously improve skills through practice and exploration.

What is the most use of Linux? What is the most use of Linux? Apr 09, 2025 am 12:02 AM

Linux is widely used in servers, embedded systems and desktop environments. 1) In the server field, Linux has become an ideal choice for hosting websites, databases and applications due to its stability and security. 2) In embedded systems, Linux is popular for its high customization and efficiency. 3) In the desktop environment, Linux provides a variety of desktop environments to meet the needs of different users.

What are Linux operations? What are Linux operations? Apr 13, 2025 am 12:20 AM

The core of the Linux operating system is its command line interface, which can perform various operations through the command line. 1. File and directory operations use ls, cd, mkdir, rm and other commands to manage files and directories. 2. User and permission management ensures system security and resource allocation through useradd, passwd, chmod and other commands. 3. Process management uses ps, kill and other commands to monitor and control system processes. 4. Network operations include ping, ifconfig, ssh and other commands to configure and manage network connections. 5. System monitoring and maintenance use commands such as top, df, du to understand the system's operating status and resource usage.

Does the internet run on Linux? Does the internet run on Linux? Apr 14, 2025 am 12:03 AM

The Internet does not rely on a single operating system, but Linux plays an important role in it. Linux is widely used in servers and network devices and is popular for its stability, security and scalability.

What are the disadvantages of Linux? What are the disadvantages of Linux? Apr 08, 2025 am 12:01 AM

The disadvantages of Linux include user experience, software compatibility, hardware support, and learning curve. 1. The user experience is not as friendly as Windows or macOS, and it relies on the command line interface. 2. The software compatibility is not as good as other systems and lacks native versions of many commercial software. 3. Hardware support is not as comprehensive as Windows, and drivers may be compiled manually. 4. The learning curve is steep, and mastering command line operations requires time and patience.

Is Linux hard to learn? Is Linux hard to learn? Apr 07, 2025 am 12:01 AM

Linuxisnothardtolearn,butthedifficultydependsonyourbackgroundandgoals.ForthosewithOSexperience,especiallycommand-linefamiliarity,Linuxisaneasytransition.Beginnersmayfaceasteeperlearningcurvebutcanmanagewithproperresources.Linux'sopen-sourcenature,bas

What is the salary of Linux administrator? What is the salary of Linux administrator? Apr 17, 2025 am 12:24 AM

The average annual salary of Linux administrators is $75,000 to $95,000 in the United States and €40,000 to €60,000 in Europe. To increase salary, you can: 1. Continuously learn new technologies, such as cloud computing and container technology; 2. Accumulate project experience and establish Portfolio; 3. Establish a professional network and expand your network.

See all articles