-
Greenplum
环境安装配置步骤
分类:
Greenplum
2014-03-10 10:23
1145
人阅读
评论
(0)
收藏举报
hadoop
数据库
emcgreenplumdatabase
1
、环境准备
服务器分配
192.168.100.101--mdw
192.168.100.11--smdw
192.168.100.12--sdw1
192.168.100.13--sdw2
ms1
与
ms2
之间的心跳
ip
配置
10.10.10.1--mdw
10.10.10.2--
smdw
2
、修改
hosts
文件
(
所有主机<
/p>
hosts
文件必须全部修改)
vi /etc/hosts
192.168.100.101 mdw
192.168.100.11 smdw
192.168.100.12 sdw1
192.168.100.13 sdw2
3
、关闭
iptables
和
selinux
[root@mdw ~]#
serviceiptables stop
[root@mdw ~]#
[root@mdw ~]#
[root@mdw ~]#
[root@mdw ~]#
[root@mdw ~]#
chkconfigiptables --list
iptables
0:
鍏抽棴
1:
鍏抽棴
2:
鍏抽棴
3:
鍏抽棴
[root@mdw ~]# export LANG=zh_CN
[root@mdw ~]# chkconfigiptables --list
iptables
0:
关闭
1:
关闭
2:
关闭
3:
关闭
4:
关闭
5:
关闭
6:
关闭
[root@mdw ~]# cat /etc/selinux/config
# This file controls the
state of SELinux on the system.
#
SELINUX= can take one of these three values:
4:
鍏抽棴
5:
鍏抽棴<
/p>
6:
鍏抽棴
#
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
[root@mdw ~]# setenforce 0
4
、修改系统参数
1
)
vi /etc/
[root@mdw ~]# sysctl -p
_forward = 0
_filter = 1
_source_route = 0
= 1
_uses_pid = 1
_syncookies =
1
error:
error:
error:
= 65536
= 65536
= 68719476736
=
4294967296
error:
mmit_memory = 2
error:
_max_syn_backlog = 4096
_filter = 1
error:
_max_backlog = 10000
error:
= 4096
= 250 512000 100
2048
_tw_recycle = 1
_filter
= 1
= 2048
2)
vi /etc/security/
*
softnofile 65536
* hardnofile 65536
* softnproc 131072
*
hardnproc 131072
在
RHEL6.x
版本需要修改文件
/etc/security/limits.d/
,增加如下内容:
* softnproc 131072
* hardnproc
131072
4
、修改完系统参数后重启服务器
5
、创建
g
padmin
用户
useraddgpadmin
6
、安装
GP
1)
上传安装文件解压缩
2
)执行安装文件
[root@mdw GPDB]# ./greenplum-
db-4.2.6.3-build-2-RHEL5-x86_
I HAVE READ AND AGREE TO THE TERMS OF
THE ABOVE EMC SOFTWARE
LICENSE
AGREEMENT.
****************
**************************************************
**************
Do you accept the EMC
Database license agreement? [yes|no]
**
**************************************************
****************************
yes
************
**************************************************
******************
Provide the
installation path for Greenplum Database or press
ENTER to
accept the default
installation path: /usr/local/greenplum-db-4.2.6.3
***************************************
*****************************************
/home/gpadmin/GPDB/install
***************************
**************************************************
***
Install Greenplum Database into
? [yes|no]
**************************************************
******************************
yes
************
**************************************************
******************
[Optional] Provide
the path to a previous installation of Greenplum
Database,
or press ENTER to skip this
step. e.g. /usr/local/greenplum-db-4.1.1.3
This installation step will
migrate any Greenplum Database extensions from the
provided path to the version currently
being installed. This step is optional
and can be run later with:
gppkg --migrate
************
**************************************************
******************
Extracting product to
/home/gpadmin/GPDB/install
Skipping migration of Greenplum
Database extensions...
*************************
**************************
*****************************
Installation complete.
Greenplum Database is installed in
/home/gpadmin/GPDB/install
Greenplum Database documentation is
available for download
at .
**************************************************
******************************
[root@mdw GPDB]#
[root@mdw install]# source greenplum_
[root@mdw install]#
3
)准备
allnotes
文
件
[root@mdw install]# pwd
/home/gpadmin/GPDB/install
[root@mdw install]#
[root@mdw install]#
[root@mdw install]#
[root@mdw install]# ls
allnotes
bin
demo
docs
etc
ext
greenplum_
include
lib
arty
sbin
share
[root@mdw install]#
catallnotes
sdw1
sdw2
smdw
4
)建立多机互信
[root@mdw install]# gpssh-exkeys -f
allnotes
[STEP 1 of 5] create local ID
and authorize on local host
...
/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 sdw1
... send to sdw2
***
*** Enter
password for sdw2:
... send to smdw
[STEP 4 of 5] determine
common authentication file content
[STEP 5 of 5] copy authentication files
to all remote hosts
... finished key
exchange with sdw1
[ERROR] unable to
copy authentication files to sdw2
lost connection
[ERROR]
unable to copy authentication files to smdw
lost connection
上述报错解决办法:删除
mdw
/root/.ssh/
目录下的内容重新执行
gpssh-
exkeys -f allnotes
5
)创建存放数据的目录
[root@mdw GPDB]# mkdir data
[root@mdw GPDB]# mkdir data/master
[root@mdw GPDB]#
chowngpadmin:gpadmin data -R
[root@mdw
GPDB]#
-
-
-
-
-
-
-
-
-
上一篇:LTE中RRC连接建立详细的流程图
下一篇:浙江版小学数学五年级上册教案第1单元