合 如何在ARM架构服务器上编译Greenplum
Greenplum是一款全球领先的开源大数据平台,为全球各行各业提供具备实时处理、弹性扩容、弹性计算、混合负载、云原生和集成数据分析能力的强大的大数据引擎,目前广泛的应用于包括金融、保险、证券、通信、航空、物流、零售、媒体、政府、医疗、制造、能源等行业。
目前Greenplum的二进制发行版本只能运行在X86服务器。无论是Greenplum的官方开发商Pivotal公司,还是其他Greenplum发行商,都没有提供Greenplum的ARM发行版。不过,Greenplum是开源软件,我们可以通过编译Greenplum源代码自行构建Greenplum的ARM版本。
本文将详细讲述如何在ARM服务器上编译并运行开源版Greenplum。
一 环境准备
1 2 | # yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm # yum makecache |
- 关闭防火墙
1 2 | # systemctl stop firewalld # systemctl disable firewalld |
- 配置Linux内核,修改/etc/sysctl.conf文件,添加下列内容
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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.tcp_tw_recycle = 1 net.ipv4.tcp_max_syn_backlog = 4096 net.ipv4.conf.defalut.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 |
- 修改/etc/security/limits.conf文件
1 2 3 4 | * soft nofile 524288 * hard nofile 524288 * soft nproc 131072 * hard nproc 131072 |
- 关闭SELinux,编辑/etc/selinux/config
1 2 3 4 5 6 7 8 9 10 | # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection. SELINUXTYPE=targeted |
- 创建gpadmin用户
1 2 | # useradd gpadmin # passwd gpadmin |