單機安裝Greenplum的小結

2021-06-05 22:05:17 字數 2015 閱讀 3556

總的流程參照同事的文章總算安裝上了,哈哈。也有其他同事的幫助,在此表示感謝。

安裝過程中出現了一些錯誤,小結一下:

安裝環境:centos 6.5

1、ssh: connect to host localhost port 22: connection refused

ssh服務沒有啟動, # service sshd start  (重啟後會復原)或 # chkconfig sshd on(永久生效)

2、把所有主機建立信任關係時出錯

這兒出錯了盡量要解決,跳過也是可以的,只不過在gpinitsystem時會要你輸很多次密碼。

2.1   [step 1 of 5] create local id and authorize on local host

[error] ssl-keygen failed:

第一步直接報錯了,且沒有什麼有意義的提示。

分析原因:出現這個是在載入了greenplum_path.sh裡的環境變數,它設定了openssl_conf

解決方法:$ unset openssl_conf

2.2  [step 3 of 5] authorize current user on remote hosts

... send to localhost

traceback (most recent call last):

file "/usr/local/greenplum-db/./bin/gpssh-exkeys", line 725, in

if not h.sendlocalid(localid, gv.passwd, tempdir if i***istinghost else none):

file "/usr/local/greenplum-db/./bin/gpssh-exkeys", line 183, in sendlocalid

ok = self.tryparamikoconnect(p, silence = true)

file "/usr/local/greenplum-db/./bin/gpssh-exkeys", line 161, in tryparamikoconnect

client.connect(self.m_host, password=pwd)

file "/usr/local/greenplum-db/lib/python/paramiko/client.py", line 277, in connect

self._auth(username, password, pkey, key_filename)

file "/usr/local/greenplum-db/lib/python/paramiko/client.py", line 369, in _auth

for key in agent().get_keys():

file "/usr/local/greenplum-db/lib/python/paramiko/agent.py", line 61, in __init__

conn.connect(os.environ['ssh_auth_sock'])

file "", line 1, in connect

socket.error: [errno 13] permission denied

許可權問題

解決方法:從root使用者切換到gpadmin時加要 「-」   # su - gpadmin

參考 第6樓

3、postgres: error while loading shared libraries: libesmtp.so.5

或者其它如類似的 shared libraries問題。

分析原因:找不到共享庫,ld_library_path沒有這個環境變數;其實還是在su切換使用者的時候的問題,沒有載入greenplum_path.sh。

解決方法:$ source $gphome/greenplum_path.sh

其它還有一些錯誤, 諸如初始化的時候配置檔案有問題,日誌裡會有比較明顯提示錯誤。

GreenPlum6 0單機安裝

本文參考修改為單機版安裝,用於測試使用 2 將安裝包上傳到伺服器 3 使用yum進行安裝 yum y install greenplum db 6.0.0 rhel7 x86 64.rpm 4 配置tcp引數。修改 etc sysctl.conf,修改完成後執行sysctl p讓配置生效 net.i...

centos7單機安裝Greenplum6 2 1

一 環境準備 作業系統 centos 7 x86 64 minimal 1810.iso 資料庫 greenplum db 6.2.1 rhel7 x86 64.rpm 集群配置 1 master,1 primary segment 1個mirror segment 二 安裝linux系統後配置 2...

Greenplum安裝手冊

gp安裝手冊 問題補充 問題一 root使用者登入,檢視selinuxstatus sestatus 如果不是disabled,則需要修改引數 vi etc selinux config 修改 selinux disabled 關閉防火牆 因為是centos7,預設防火牆為firewall,先檢視 ...