gpload是EMC在greenplum中提供的用來進行數據裝載的工具。我們既可以在服務端訪問它,也可以把它拷貝到遠程的ETL服務器,進行遠程數據加載。經驗不足的人在使用的時候,難免會出現一些問題,現在將這些問題彙總如下:
問題1.環境準備
1.提示內容:-bash: gpload: command not found
錯誤原因:greenplum的環境沒有source
修改方法:source /usr/local/greenplum-db/greenplum_path.sh
2.提示內容:未知
錯誤原因:你使用的服務器上需要安裝gpfdist程序
改正方法:裝gpfdist程序,並把它設置到環境變量PATH中(可以從數據庫服務器端的安裝目錄的子目錄bin中拷貝該工具)
問題2.格式問題
問題3.參數設置問題
database 錯誤:database "tita" does not exist
user和password錯誤:password authentication failed for user "cs"
host配置錯誤:could not connect to database: could not translate host name "m153" to address: Name or service not known
port配置錯誤:could not connect to server: Connection refused Is the server running on host "m150" (192.168.10.150) and accepting TCP/IP connections on port 54321?. Is the Greenplum Database running on port 54321?
這類錯誤根據提示,基本上可以迅速判斷,不再11列舉。
3.編碼問題
。。。
4.每行的數據太長
。。。
5.類型不匹配
。。。。