简体   繁体   中英

Running a query shows error on AWS Redshift “Queries” dashboard

I have to run a query to copy data from s3 to redshift. Total size of the data to copy 110GB Query runs fine for 1-2hr after that i see this error

There was an error retrieving the details for this query: Invalid Input. Expected Input: Load Id NOT_NULL, Load Status NOT_NULL

Query:

copy prod_data from 's3://my-buckets/prod-data/'  
access_key_id ''
secret_access_key ''
region 'eu-central-1'
delimiter ','
MAXERROR 100000;

Error snapshot: 在此处输入图片说明

Please suggest how can i solve this issue.

Unfortunately, the Redshift console seems to be a little flaky at times, so you can't really "solve" this issue.

However, you can work around it and find out what's going on with your load. All the web console does is read from Redshift's built-in system tables, so you can query these directly and get the information using your SQL client instead.

The stl_load_errors table contains details of any errors encountered during your data loads (ie the COPY command). You can find out more information about this here: http://docs.aws.amazon.com/redshift/latest/dg/r_STL_LOAD_ERRORS.html

If you want to check the status of queries that are executing, or have previously been executed, you can also use the stl_query table: http://docs.aws.amazon.com/redshift/latest/dg/r_STL_QUERY.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM