0

我尝试从 eu-west-1 区域的 S3 存储桶批量导入 cockroach db

IMPORT TABLE osm.nodes (
        id INT PRIMARY KEY,
        version INT NOT NULL,
        lat DECIMAL NOT NULL,
        lon DECIMAL NOT NULL,
        changeset_id INT NOT NULL,
        visible BOOLEAN NOT NULL
    )
    CSV DATA ('s3://cockroach-import/nodes.csv?AWS_ACCESS_KEY_ID=<snip>&AWS_SECRET_ACCESS_KEY=<snip>')
    WITH
        temp = 's3://cockroach-import/?AWS_ACCESS_KEY_ID=<snip>&AWS_SECRET_ACCESS_KEY=<snip>',
        delimiter = ','
    ;

我收到错误消息:

failed to create s3 reader: 400: "The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'eu-west-1'"

如何在导入语句中指定 S3 区域?

4

1 回答 1

1

这是一个已在即将发布的 Cockroach 1.1.2 版本中修复的错误。https://github.com/cockroachdb/cockroach/issues/19435描述了问题并修复。

于 2017-10-24T17:45:55.537 回答