AWS Glue ETL Error

0

An error occurred while calling o85.getSink. key not found: url

I've been searching for a long time and I have no idea what just happen with this kind of error.

Axel
已提問 9 個月前檢視次數 255 次
1 個回答
0

That normally means you are trying to a JDBC or other source that needs a url, and that is not specified on the options or a connection.

profile pictureAWS
專家
已回答 9 個月前
  • My Script for Redshift node are like this

    Script generated for node Amazon Redshift

    AmazonRedshift_node1695279214701 = glueContext.write_dynamic_frame.from_options( frame=SQLQuery_node1695266498590, connection_type="redshift", connection_options={ "redshiftTmpDir": "s3://aws-glue-assets-186167104265-ap-southeast-1/temporary/", "useConnectionProperties": "true", "dbtable": "datamart.transactional_sales_report", "connectionName": "DW_RedShift_Production", "preactions": "DROP TABLE IF EXISTS datamart.transactional_sales_report; CREATE TABLE IF NOT EXISTS datamart.transactional_sales_report (order_date DATE, order_id VARCHAR, source VARCHAR, channel VARCHAR, subchannel VARCHAR, platform VARCHAR, outlets VARCHAR, order_status VARCHAR, payment_method VARCHAR, brand_category VARCHAR, brand VARCHAR, sku VARCHAR, item VARCHAR, quantity DECIMAL, priceretail INTEGER, price INTEGER, total_retail_exc_vat DECIMAL, total_price_without_disc_exc_vat DECIMAL);", }, transformation_ctx="AmazonRedshift_node1695279214701", )

    can you help me is there a mistake from my script? because the job keep telling me the error "An error occurred while calling o85.getSink. key not found: url"

    thank you.

  • Sounds like that connection DW_RedShift_Production is not valid, can you open it and check if in the connection details there is a "Connection URL" starting with jdbc:redshift://

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南