Doris 3.0.1,创建REPOSITORY报错

Viewed 56

通过这个文档创建,关于阿里云oss的REPOSITORY报错:https://doris.apache.org/zh-CN/docs/sql-manual/sql-statements/Data-Definition-Statements/Backup-and-Restore/CREATE-REPOSITORY

语句:
CREATE REPOSITORY ali_oss_repo
WITH S3
ON LOCATION "s3://backet1/test_backup/"
properties
(
"s3.endpoint" = "oss-cn-shenzhen-internal.aliyuncs.com",
"s3.access_key" = "xx",
"s3.secret_key" = "xx",
"s3.region" = "cn-shenzhen"
)

返回:
11:28:36 CREATE REPOSITORY ali_oss_repo WITH S3 ON LOCATION "s3://backet1/test_backup/" properties ( "s3.endpoint" = "oss-cn-shenzhen-internal.aliyuncs.com", "s3.access_key" = "xxx", "s3.secret_key" = "xxx", "s3.region" = "cn-shenzhen" ) Error Code: 1105. errCode = 2, detailMessage = Unsupported operation 0.038 sec

是不支持阿里oss的创建吗?

3 Answers

doris什么版本呢,存算分离还是存算一体?参考一下这个语法再试试:

CREATE REPOSITORY `s3_repo`
WITH S3
ON LOCATION "s3://bucket_name/test"
PROPERTIES
(
    "AWS_ENDPOINT" = "http://xxxx.xxxx.com",
    "AWS_ACCESS_KEY" = "xxxx",
    "AWS_SECRET_KEY"="xxx",
    "AWS_REGION" = "xxx"
); 

对接本地的minio,遇到相同的问题,请问如何解决呢
报错提示 ERROR 1105 (HY000): errCode = 2, detailMessage = Unsupported operation

存算分离 3.0.2
CREATE REPOSITORY s3_repo
WITH S3
ON LOCATION "s3://bucket_name/test"
PROPERTIES
(
"AWS_ENDPOINT" = "http://xxxx.xxxx.com",
"AWS_ACCESS_KEY" = "xxxx",
"AWS_SECRET_KEY"="xxx",
"AWS_REGION" = "xxx"
);
报错信息一样,
报错提示 ERROR 1105 (HY000): errCode = 2, detailMessage = Unsupported operation