摘要:對象存儲在雲計算中被普遍使用,本文以QingCloud的對象存儲產品QingStore爲例說明如何將對象存儲數據導入到HashData(Greenplum雲端服務)sql
psql -d postgres -h 121.201.25.29 -p 5432 -U admin
CREATE TABLE CUSTOMER ( C_CUSTKEY INTEGER NOT NULL, C_NAME VARCHAR(25) NOT NULL, C_ADDRESS VARCHAR(40) NOT NULL, C_NATIONKEY INTEGER NOT NULL, C_PHONE CHAR(15) NOT NULL, C_ACCTBAL DECIMAL(15,2) NOT NULL, C_MKTSEGMENT CHAR(10) NOT NULL, C_COMMENT VARCHAR(117) NOT NULL); CREATE READABLE EXTERNAL TABLE e_CUSTOMER (LIKE CUSTOMER) LOCATION ('qs://hashdata-public.pek3a.qingstor.com/tpch/1g/customer/') FORMAT 'csv';
INSERT INTO CUSTOMER SELECT * FROM e_CUSTOMER;
SELECT * FROM CUSTOMER LIMIT 10;
開源的Greenplum能夠使用對象存儲嗎?post
對象存儲是雲計算環境特有的產品,包括公有云和私有云環境。開源的Greenplum暫時不支持,能夠採用GPLoad方式導入數據。雲計算