doris1.2.4创建远端s3 REPOSITORY报错

Viewed 10

CREATE REPOSITORY s3_repo
WITH S3
ON LOCATION "s3://backup2"
PROPERTIES
(
"AWS_ENDPOINT" = "xxx.xxx.xxx.xxx:8082",
"AWS_ACCESS_KEY" = "2sdfsfsfsdfsdfdsfsfENK",
"AWS_SECRET_KEY"="E4sdfsdfsdfsdfsdOs",
"AWS_REGION" = "us-west-2"
);
使用同样的语句在Doris 2.1.6能够成功执行,但是在1.2.4执行报错。

2 Answers

应该是1.2.4的bug了,建议升级下版本的,1.2.4 这个版本有点旧了哈,可以的话升级到2.1最新的版本上

1.2.4版本增加了参数 "USE_PATH_STYLE" = "true",问题解决,遇到同样问题的同学可以参考。

CREATE REPOSITORY s3_repo4
WITH S3
ON LOCATION "s3://backup"
PROPERTIES
(
"AWS_ENDPOINT" = "http://xxx.xxx.xxx.xxx:8082",
"AWS_ACCESS_KEY" = "24WJ2N1Vasdfasdfasdfa",
"AWS_SECRET_KEY"="E4s05UM0ULNasdfasdfasdfasfasdfasdfzQKGOF8jOyfYOs",
"AWS_REGION" = "us-west-1",
"USE_PATH_STYLE" = "true"
);