2017-10-20 103 views
0

我嘗試批量導入到蟑螂分貝在歐盟西1區如何從S3 eu-west-1區域的桶中導入?

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 = ',' 
    ; 

我得到的錯誤消息的S3存儲:

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

我如何指定S3區域在導入聲明中?

回答