![](/img/trans.png)
[英]Error : INVALID_ARGUMENT: Path already exists when scheduled firestore export job runs
[英]Path already exists ERROR using DatastoreExportOperator on Airflow
我正在嘗試使用 DatastoreExportOperator 運算符將一些數據存儲文件加載到 GCS 中。 配置如下:
export_collection = DatastoreExportOperator(
task_id='export_data_to_gcs',
bucket=GCS_BUCKET,
datastore_conn_id='google_cloud_datastore_default',
cloud_storage_conn_id='google_cloud_default',
overwrite_existing=True,
dag=dag
)
但是,即使在設置了overwrite_existing=True,
參數之后,我仍然收到 Path already exists 錯誤。
根據github中的代碼,條件似乎需要填寫“命名空間”。 您可以在代碼(第 116 行)中看到,如果 overwrite_existing 和 namespace 那么首先刪除 namespace 中的文件。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.