Importing a new version of an existing flow definition

You can add new versions to an existing flow definition using either the Cloudera DataFlow UI or the CDP CLI.

Before you begin

  • You have imported at least one flow definition.

Steps

  1. In the DataFlow UI, from the left navigation pane, click Catalog.

    Flow definitions available for you to deploy are displayed, one definition per row.

  2. Identify the flow definition you wish to upload a new version for, and click the row to display the flow definition details and versions.
  3. From the Actions drop-down, select Import New Version.


  4. Select the new version file of the NiFi flow configuration, and click Import.

Before you begin

  • You have installed the CDP CLI.
  • You have run cdp df list-flows to retrieve the flow-crn.

Steps

  1. To import a new flow definition version, enter:
    
    cdp df import-flow-definition-version 
    --flow-crn [***FLOW_CRN***] 
    --file [***FILE***] 
    [--comments [[***COMMENTS***]] 
    

    Where:

    • --flow-crn specifies the flow-crn you obtained when completing the pre-requisites.
    • --file specifies the path to the new flow definition version you want to import.
    • --comments allows for option comments about the new version of the flow definition.

Result

Successfully importing a new flow definition version results in output similar to: