1.系統環境和形對應軟體版本: centos6.5 green-plum的版本是4.3.5.2
2.在安裝過程中:
1)已經修改了核心參數:
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 1
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.msgmni = 2048
kernel.shmmax = 500000000
kernel.shmmni = 4096
kernel.shmall = 4000000000
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.ip_local_port_range = 1025 65535
net.core.netdev_max_backlog = 10000
vm.overcommit_memory = 2
net.ipv4.conf.all.arp_filter = 1
net.core.rmem_max = 2097152
net.core.wmem_max = 2097152
2)修改了软硬连接数:
* soft nofile 65536
* hard nofile 65536
* soft nproc 131072
* hard nproc 131072
3)關閉防火牆和selinux.
4)host中已將修好了設定:
192.168.9.173 ljlj-master mt
192.168.9.153 ljlj-slave st
5)安裝greenplum流程沒有問題,已經將其安裝到/usr/local/greenplum中了,
自己尽力一个conf文件放hostfile,里面内容是:
mt
st
6)/usr/local/greenplum所有者和所有者群組都已經設定為gpadmin用戶(該用戶提前被建立)
7)切換到gpadmin用戶,執行gpssh-exkeys -f /usr/local/greenplum/ conf/hostfile
在此出現報錯:
[STEP 1 of 5] create local ID and authorize on local host
... /home/gpadmin/.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 st
*
* Enter password for st:
[WOR
*
Enter password for st: [ERROR st] Host key for server st does not match!
*
*
Enter *
*
Enter comm for st: pass pass在這裡輸入的st端root的密碼,但是它一直報錯Host key for server st does not match!
但是當我ping st是通的
PING ljlj-slave (192.168.9.153) 56(84) bytes of data.
64 bytes from ljlj-slave (192.168.9.153): icmp.
64 bytes from ljlj-slave (192.168.9.153): icmp_seq=2 ttl=64 time=0.189 ms
64 bytes from ljlj-slave (192.168.9.153): icmp_seq=3 ttl=64 time=0.187 ms
64 bytes from ljlj-slave (192.168.9.153): icmp_seq=4 ttl=64 time=0.184 ms
64 bytes from ljlj-slave (192.168.9.153): icmp_seq=5 ttl=64 88.9.153): icmp_seq=5 ttl=64 85-6 192.168.9.153): icmp_seq=6 ttl=64 time=0.130 ms
64 bytes from ljlj-slave (192.168.9.153): icmp_seq=7 ttl=64 time-0.1868 ---
7 packets transmitted, 7 received, 0% packet loss, time 6462ms
rtt min/avg/max/mdev = 0.130/0.307/1.089/0.320 ms
[STEP 1 of 5] create local ID and authorize on local host
... /home/gpadmin/.ssh/id_rs fileexist skipped
[STEP 3 of 5] authorize current user on remote hosts
... send to 192.168.9.153
*
* Enter pass字*
* Enter password 192153. 3] bad password
*
* Enter password for 192.168.9.153: [ERROR 192.168.9.153] bad password
phpcn_u15822017-04-26 09:04:22
再看查詢百度安裝過程中,幾乎所有的內容都是說執行gpssh-exkeys -f /usr/local//conf/hostfile 要用gpadmin用戶,但是在使用該用戶一直報上面的錯誤,但是當我使用root使用者執行的時候就能夠執行過去.
在此還要注意以下問題: 1.ssh埠使用22
2.root能够登陆
3.root命令执行gpssh-exkeys -f /usr/local//conf/hostfile
補充一下:可以自行使用金鑰交換.使用ssh-copy-id -i id_rsa.pub ip位址 (預設22埠)