Load data from Amazon S3 bucket to Vertica
Hi, Requirement: Load data from Amazon S3 bucket to Vertica Database. Current Setup: Three node cluster hosted on AWS Version: Vertica 6.1.1 OS: Linux CentOS 6 Database and tables created. Data loaded through COPY command from vsql client Some of the data files are resided on S3, this has to be loaded to Database. Installed 'fuse' and mounted the S3 on one of the clusters(linux server) on which the Vertica is hosted. Using s3cmd command I am able to view all my files which is residing in the bucket. Issue: When I run the below command to load the data from S3, it says the file is not available Seems like it is not recognizing the S3 filesystem Command used to load data from S3: COPY SAM_REP_SCHEMA.UN_MOB_MM_IOS_DATA FROM 's3://samevalbucket/mediadata/UN_MOB_MM_IOS_DATA _25Apr13.CSV' DELIMITER '|' ENCLOSED BY '"' NO ESCAPE NULL AS '\N' EXCEPTIONS '/tmp/UN_MOB_MM_IOS_DATA_25Apr13_Excep.txt' REJECTED DATA '/tmp/UN_MOB_MM_IOS_DATA_25Apr13_Rejct.txt' ON v_samdb_node0001 ; Error: ERROR 2886: Could not open file [s3n://samevalbucket/mediadata/UN_MOB_MM_IOS_DATA _25Apr13.CSV] for reading; No such file or directory Questions: Is there any variable I need to set before loading from S3? Is this the right command to load data from S3 into Vertica? Please suggest...
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.