[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[[["\u003cp\u003eDeployed batch pipelines in Cloud Data Fusion can be edited, allowing for incremental feature additions without creating duplicate pipelines.\u003c/p\u003e\n"],["\u003cp\u003eEditing a pipeline in Cloud Data Fusion generates a new version, maintaining a history of changes and enabling users to view or restore previous versions.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of an edited pipeline is the active one, inheriting configurations and schedules from previous versions, and can be run or scheduled to run.\u003c/p\u003e\n"],["\u003cp\u003eEdited versions of pipelines can be exported as JSON files, facilitating sharing, version control, or movement between development and production environments.\u003c/p\u003e\n"],["\u003cp\u003eDeleting the latest version of a deployed pipeline removes all its versions, while drafts become orphaned and require redeployment to become active again.\u003c/p\u003e\n"]]],[],null,["# Edit pipelines\n\nThis page describes how to edit deployed batch pipelines in Cloud Data Fusion.\n\nEditing a pipeline lets you do the following:\n\n- Incrementally add features to a deployed pipeline without creating duplicates. For example, you can add, remove, or modify plugins, then redeploy the pipeline. Editing a pipeline creates a new version of the same pipeline, which prevents a proliferation of pipelines, allowing for better organization. Duplicating a pipeline creates a new pipeline with a different name.\n- Maintain a history of the edited versions.\n- View and restore old versions of a pipeline.\n- Edit any part of the pipeline, such as the pipeline structure, configuration, metadata, preferences, and comments.\n- Export an edited JSON file for a deployed pipeline.\n\nWhen you edit the pipeline, Cloud Data Fusion creates a new draft, which\nbecomes the *latest version*. The name of the pipeline remains the same. You\ndevelop the pipeline iteratively, without creating duplicate pipelines with\nunique names. The latest version retains the triggers, pipeline configurations,\nruntime arguments, metadata, comments, and schedules from the previous version.\nThe latest version is the active version of the pipeline: it can be run or\nscheduled to run.\n\nBefore you begin\n----------------\n\n- Cloud Data Fusion supports editing deployed batch pipelines in version 6.9.1 and later. To upgrade to the latest version, see [Upgrade your Cloud Data Fusion environment](/data-fusion/docs/how-to/upgrading).\n- Cloud Data Fusion doesn't support editing deployed real-time pipelines or replication jobs.\n\nEdit the pipeline\n-----------------\n\nTo edit a deployed batch pipeline in Cloud Data Fusion, follow these steps:\n\n1. Go to your instance:\n 1. In the Google Cloud console, go to the Cloud Data Fusion page.\n\n 2. To open the instance in the Cloud Data Fusion Studio,\n click **Instances** , and then click **View instance**.\n\n [Go to Instances](https://console.cloud.google.com/data-fusion/locations/-/instances)\n2. Click **List \\\u003e Deployed**.\n3. Go to the pipeline that you want to edit and click\n more_vert **More \\\u003e Edit**.\n\n A new draft of the pipeline appears on\n the **Studio** page.\n4. Edit your pipeline. For example, add a new analytics node, or\n edit the properties of a source.\n\n5. Optional: To finish editing the pipeline later, click **Save**.\n\n6. After you finish editing the pipeline, click **Deploy**.\n\n7. In the **Enter change summary** dialog, enter a description of the changes\n you made to the pipeline and click **Deploy** . The deployed pipeline opens\n on the **Pipeline** page.\n\n| **Note:** You can also edit the pipeline from the **Pipeline** page by clicking **Actions \\\u003e Edit**.\n\nView or restore a previous version of the pipeline\n--------------------------------------------------\n\nTo view or deploy a previous version of a batch pipeline, follow these steps:\n\n1. Open your instance in the Cloud Data Fusion interface.\n2. Click **List \\\u003e Deployed**.\n3. Select a pipeline. The pipeline appears on the **Pipeline** page.\n4. Click history **History**.\n\n A version history list appears.\n5. Optional: To view a previous version of a pipeline, click **View**.\n\n6. Optional: To restore an older version of the pipeline to the latest\n version, click **Restore**.\n\n Cloud Data Fusion creates a new version of the pipeline and opens\n it on the **Pipeline** page. It's now the latest version.\n\nExport an edited version of a deployed pipeline\n-----------------------------------------------\n\nYou can export the edited version of a deployed pipeline as a JSON file to share\nwith other developers, add it to version control, or move it from a development\nenvironment to a test or production environment. For example, after you edit a\npipeline during development and debugging phases, you export the JSON file, and\nthen import and deploy it in a production environment.\n| **Note:** Cloud Data Fusion exports pipelines in the `Draft` state.\n\n### Export the latest version\n\nTo export the latest version of the pipeline, follow these steps:\n\n1. Open your instance in the Cloud Data Fusion interface.\n2. Click **List \\\u003e Deployed**.\n3. Select the pipeline that you want to export and click\n more_vert **More \\\u003e Export**.\n\n A JSON file with the pipeline configurations from the latest version is\n saved locally.\n\n### Export a previous version\n\nTo export previous versions of the pipeline, follow these steps:\n\n1. Open your instance in the Cloud Data Fusion interface.\n2. Click **List \\\u003e Deployed**.\n3. Select the pipeline. The latest version opens on the **Pipelines** page.\n4. Click history **History**.\n5. Select the pipeline version that you want to export and click **View\n \\\u003e Actions \\\u003e Export**.\n\nImport an edited version of a deployed pipeline\n-----------------------------------------------\n\nAll pipelines are exported in the `Draft` state. Edited versions of a deployed\npipeline are also imported in the `Draft` state.\nFor more information,\nsee [Import a pipeline](/data-fusion/docs/how-to/exporting-pipelines#import).\n\nDelete an edited version of a pipeline\n--------------------------------------\n\nWhen you delete the latest version of a deployed pipeline, all versions of the\ndeployed pipeline are deleted. Draft versions aren't deleted.\n\nInstead, the draft pipeline version has the **Orphaned** status. To resolve this\nstatus, deploy the draft pipeline. Cloud Data Fusion creates a new\npipeline, which is the latest version.\n\nStatuses for edited pipelines\n-----------------------------\n\nWhen you edit pipelines, the following statuses might appear on the **Pipeline\nDrafts** page.\n\nWhen you edit pipelines, the following statuses might appear on the **Studio**\npage.\n\nWhat's next\n-----------\n\n- Learn how to [export and import pipelines](/data-fusion/docs/how-to/exporting-pipelines)."]]