centos - 關於安裝greenplum過程中的問題
PHPz
PHPz 2017-04-26 09:02:22
0
1
896

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

但是當我手動添加:gpssh-exkeys -h 192.168.9.153

[STEP 1 of 5] create local ID and authorize on local host
... /home/gpadmin/.ssh/id_rs fileexist 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 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

*

不報 🎜求大神們,解釋一下這是什麼原因造成的,求解答!謝謝了,大神們!!!🎜
PHPz
PHPz

学习是最好的投资!

全部回覆(1)
phpcn_u1582

再看查詢百度安裝過程中,幾乎所有的內容都是說執行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埠)

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!