Singlestore database on Activescale S3 bucket:
CREATE DATABASE <DB_NAME> ON S3 "<BucketName>"
CONFIG '{"compatibility_mode": true, "endpoint_url": "http://<endpointName>"}'
CREDENTIALS '{"aws_access_key_id":"<yourKey>","aws_secret_access_key":"<yourAccesKey>"}';
You might have faced following error while creating Singlestore database having files on S3 bucket on Activscale.
" The AWS Access Key Id you provided does not exist in our records. "
Create Database Pipeline:
CREATE PIPELINE library
AS LOAD DATA S3 '<bucketName>'
CONFIG '{"compatibility_mode": true, "endpoint_url": "http://<endpointName>"}'
CREDENTIALS '{"aws_access_key_id": "<yourKey>", "aws_secret_access_key": "<yourKey>"}'
INTO TABLE `<tableName>`
FIELDS TERMINATED BY ',';
When CSV files are copied to the S3 bucket data will be inserted ino to the table itself, no action is required.
Comments
Post a Comment