

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 疑難排解 Amazon Redshift
<a name="data-not-delivered-to-rs"></a>

如果資料未交付到您的 Amazon Redshift 佈建叢集或 Amazon Redshift Serverless 工作群組，請檢查下列各項。

資料會先交付至您的 S3 儲存貯體，再載入 Amazon Redshift。如果資料未傳送至您的 S3 儲存貯體，請參閱[故障診斷 Amazon S3](data-not-delivered-to-s3.md)。
+ 檢查 Firehose `DeliveryToRedshift.Success` 指標，確認 Firehose 已嘗試將 S3 儲存貯體中的資料複製到 Amazon Redshift 佈建的叢集或 Amazon Redshift Serverless 工作群組。如需詳細資訊，請參閱[使用 CloudWatch 指標監控 Amazon Data Firehose](monitoring-with-cloudwatch-metrics.md)。
+ 若尚未啟用錯誤記錄，請啟用這項功能並檢查傳送失敗的錯誤記錄。如需詳細資訊，請參閱[使用 CloudWatch Logs 監控 Amazon Data Firehose](monitoring-with-cloudwatch-logs.md)。
+ 檢查 Amazon Redshift `STL_CONNECTION_LOG`資料表，查看 Firehose 是否可以成功進行連線。本表格可供您依使用者名稱檢視連線和狀態。如需詳細資訊，請參閱《Amazon Redshift 資料庫開發人員指南》**中的 [https://docs.aws.amazon.com/redshift/latest/dg/r_STL_CONNECTION_LOG.html](https://docs.aws.amazon.com/redshift/latest/dg/r_STL_CONNECTION_LOG.html)。
+ 如果上述檢查顯示連線已建立，則請查看 Amazon Redshift `STL_LOAD_ERRORS` 資料表以驗證 COPY 失敗原因。如需詳細資訊，請參閱《Amazon Redshift 資料庫開發人員指南》**中的 [https://docs.aws.amazon.com/redshift/latest/dg/r_STL_LOAD_ERRORS.html](https://docs.aws.amazon.com/redshift/latest/dg/r_STL_LOAD_ERRORS.html)。
+ 請確定 Firehose 串流中的 Amazon Redshift 組態準確且有效。
+ 請確定 Firehose 串流中指定的 IAM 角色可以存取 Amazon Redshift 複製資料的 S3 儲存貯體，以及用於資料轉換的 Lambda 函數 （如果啟用資料轉換）。此外，請確定 IAM 角色可存取 CloudWatch 日誌群組和日誌串流，以檢查錯誤日誌。如需詳細資訊，請參閱[授予 Firehose 對 Amazon Redshift 目的地的存取權](controlling-access.md#using-iam-rs)。
+ 如果您的 Amazon Redshift 佈建叢集或 Amazon Redshift Serverless 工作群組位於虛擬私有雲端 (VPC) 中，請確定叢集允許從 Firehose IP 地址存取。如需詳細資訊，請參閱[授予 Firehose 對 Amazon Redshift 目的地的存取權](controlling-access.md#using-iam-rs)。
+ 請確認 Amazon Redshift 佈建的叢集或 Amazon Redshift Serverless 工作群組可公開使用。
+ 若您正使用資料轉換功能，請確認 Lambda 函數的回應從未回傳大小超過 6 MB 的乘載。如需詳細資訊，請參閱 [Amazon Data FirehoseData 轉換](data-transformation.md)。