copy s3 ( .csv file Data ) from AWS s3 to vertica table
I am unable to copy the data from the .csv file present on AWS s3 to vertica .
I am executing these commands on VSQL first and then copy command as below -- >
ALTER SESSION SET UDPARAMETER FOR awslib aws_region='us-west-2';
ALTER SESSION SET UDPARAMETER FOR awslib aws_id='xxx';
ALTER SESSION SET UDPARAMETER FOR awslib aws_secret='XXX';
ERROR 5861: Error calling process() in User Function UDSource at [src/S3.cpp:137], error code: 0, message: Client Error: The AWS Access Key Id you provided does not exist in our records.
Please help.
0
Comments
Looks like you are attempting to configure it properly. The error "The AWS Access Key Id you provided does not exist in our records" is coming from AWS, not Vertica.
I think you are using an invalid AWS_ID.
I can easily duplicate the error...
dbadmin=> ALTER SESSION SET UDPARAMETER FOR awslib aws_id='... CORRECT ID ...'; ALTER SESSION dbadmin=> ALTER SESSION SET UDPARAMETER FOR awslib aws_secret='... CORRECT SECRET ...; ALTER SESSION dbadmin=> ALTER SESSION SET UDPARAMETER FOR awslib aws_region='us-east-2'; ALTER SESSION dbadmin=> CREATE FLEX EXTERNAL TABLE ge() AS COPY SOURCE s3(bucket='s3://vertica-mybucket/*.json') PARSER fjsonparser(); CREATE TABLE dbadmin=> SELECT name, type, height, hike_safety FROM ge; name | type | height | hike_safety ----------------+----------+--------+------------- Arenal Volcano | volcano | 5479 | 12.4 Joshua | mountain | 236172 | 100 Everest | mountain | 29029 | 34.1 Mt St Helens | volcano | 29029 | 15.4 Denali | mountain | 17000 | 12.2 Kilimanjaro | mountain | 14000 | Mt Washington | mountain | | 50.6 (7 rows)Now I will change to an invalid AWS_ID:
I got the same error as you!