GanosBase支援基於阿里雲Object Storage Service服務(OSS)、MinIO和HDFS的檔案匯入操作。
OSS檔案路徑
路徑格式如下:
oss://<access_id>:<secrect_key>@[<Endpoint>]/<bucket>/path_to/file其中,Endpoint可以被省略,系統會自動尋找相應的Endpoint。如果Endpoint被省略,路徑必須以/開頭。
說明
Endpoint為OSS的地區節點。為保證資料可訪問性,請確保雲資料庫與OSS所在Region相同,並使用internal地址進行訪問。相關資訊請參見OSS訪問網域名稱使用規則。
MinIO檔案路徑
路徑格式如下:
mio://<id>:<key>@<host>[:<port>]/<bucket>/path_to/file如果不指定port參數,會自動使用https連接埠。
說明
為保證資料匯入可訪問性和效能,請確保雲資料庫與自建的Minio所在Region相同,處於同一VPC環境下,並使用內網地址進行訪問。
HDFS檔案路徑
路徑格式如下:
HDFS://<user_name>@<host>:<port>/path_to/file其中:
如果不指定
user_name參數,會自動使用"hadoop"。host為HDFS設定檔中的RPC訪問地址與介面。
說明
為保證資料匯入可訪問性和效能,請確保雲資料庫與HDFS所在Region相同,處於同一VPC環境下,並使用內網地址進行訪問。
樣本
OSS
OSS://my_id:my_secret@oss-cn-hangzhou-internal.aliyuncs.com/my_bucket/my_folder/my_fileMinIO
MIO://my_id:my_secret@250.0.0.1:8080/my_bucket/my_folder/my_fileHDFS
不具有
secret,預設使用hadoop的樣本如下:HDFS://my_id@250.0.0.1:8081/my_folder/my_file具有
secret的樣本如下。HDFS://my_id:my_secret@250.0.0.1:8081/my_folder/my_file