doris进行远端s3存储时报错:Unable to marshall request to JSON:

提问者:Rae 问题分类:数据库
doris进行远端s3存储时报错,提示:
ERROR 1105 (HY000): errCode = 2, 
detailMessage = 
Failed to create repository: 
connect to s3 failed: 
Unable to marshall request to JSON: 
host must not be null.
1 个回答
鹿鸣山谷べ心相随
鹿鸣山谷べ心相随
S3 SDK 默认使用 virtual-hosted style 方式。但某些对象存储系统 (如:minio) 可能没开启或没支持 virtual-hosted style 方式的访问,此时我们可以添加 use_path_style 参数来强制使用 path style 方式:
CREATE RESOURCE "remote_s3"
PROPERTIES
(
    "type" = "s3",
    "s3.endpoint" = "bj.s3.com",
    "s3.region" = "bj",
    "s3.bucket" = "test-bucket",
    "s3.root.path" = "path/to/root",
    "s3.access_key" = "bbb",
    "s3.secret_key" = "aaaa",
    "s3.connection.maximum" = "50",
    "s3.connection.request.timeout" = "3000",
    "s3.connection.timeout" = "1000",
    "use_path_style" = "true"
);
发布于:4个月前 (01-12) IP属地:四川省
我来回答