Parameter groups

You can manage parameter groups in the Shared Parameter Groups view of Cloudera Data Flow.

You must have one of the cdf-admin, cdf-flow-admin, or cdf-deployment-admin roles assigned to your user to manage parameter groups.
  1. Select Shared Parameter Groups from the left navigation pane.
  2. In the Parameter Groups view filter available parameter groups by Parameter Group Name, Used By, Created By, Description attributes.
  3. Select the parameter group you want to interact with.
    • To add, remove, or edit parameters in the group, select the Parameters tab
    • To view the list of flow deployments and flow drafts using this parameter group, select the Used By tab. It is important to be aware of the flow deployments and flow drafts that are going to be affected by any change you make to a parameter group.
    • To view or modify the Parameter Group Name and Description, select the Details tab.

Parameters

You can create groups of parameters that can be shared. This allows you to disseminate common parameter values between several flow drafts and deployments, without the need of individually checking and manually updating them.

When creating a flow deployment in the deployment Wizard, creating a flow draft in Flow Designer, or managing deployments in the Deployment Manager, you may add shared parameters by editing a single parameter or importing parameters from a shared parameter group.

Editing parameters

When you edit parameters in a parameter context, either individually or as part of a parameter group, you have the option to reference parameter values from shared parameter groups available to you.

Cloudera Data Flow matches parameters by name, it does not check if actual parameter values are valid in the given context. It does, however, check for parameter type mismatches. For more information, see Parameter type mismatch.

  • You are offered a list of shared parameter groups, where a parameter with the same name is available and, depending on your selection, that parameter value is substituted.

  • When you click Apply, the parameter assumes the value from the selected group and the Shared Parameter Group column for the parameter is updated with the name of the selected group.

  • If a referenced parameter group is changed, you may need to Update Parameters. For more information, see 'Update Parameters' alerts.

Importing parameters

You may import parameters to a parameter context from an available parameter group. To do so, select the Import Shared Parameters option.

When you select Import Shared Parameters for a parameter context, the Import Parameters dialog offers you all parameter groups available to you that have at least one matching parameter. The dialog also displays the number of matching parameters in each relevant group.

Cloudera Data Flow matches parameters by name, it does not check if actual parameter values are valid in the given context. It does, however, check for parameter type mismatches. For more information, see Parameter type mismatch.

  • You cannot select non-matching parameters.
  • Parameters that were already imported from the selected group are grayed out and cannot be selected again.
  • If a referenced parameter group is changed, you may need to Update Parameters. For more information, see 'Update Parameters' alerts.

Parameter type mismatch

When matching parameter contexts to shared parameters, besides name matching Cloudera Data Flow also matches parameter types. Parameter type mismatch results in the following messages:

Message Description
Sensitive value expected The parameter in the flow definition expects a sensitive value, but the parameter in the shared group has a non-sensitive value.
Non-sensitive value expected The parameter in the flow definition expects a non-sensitive value, but the parameter in the shared group has a sensitive value.
Text value expected The parameter in the flow definition expects a text value, but the parameter in the shared group has a file as value.
One file expected The parameter In the flow definition expects exactly one file as value, but the parameter in the shared group has more than one file as a value.

'Update Parameters' alerts

You may run into these alerts while you edit or import parameters. They occur when a parameter group, referenced in one or more parameter contexts, has been modified. The actual change to the parameter group may or may not affect your flow, as Cloudera Data Flow has no information on the nature of the change, it simply registers the fact that a newer version of the parameter group became available. Depending on the alert type, you are required to take different courses of action.



Update mandatory
You are in the process of editing parameters or importing parameter groups and you have not applied your changes yet. A referenced parameter group was changed in the meantime. As Cloudera Data Flow has no information on the nature of the changes, it cannot verify whether or not they collide with the unsaved changes you have made. Because of that, you are required to Update Parameters at least for the affected parameter contexts before you can apply any changes.
Update required
You have referenced a parameter group in one or more parameter contexts earlier, and have already applied that change. The parameter group was modified sometime after.

You are only required to Update Parameters if you want to reference a new parameter from the updated parameter group, in a parameter context already referencing parameters from that group. This is because Cloudera Data Flow does not reference multiple versions of the same parameter group in one parameter context. Unless you opt for the Update All Parameter Contexts option, any other parameter context referencing an earlier version of the same parameter group stays on that earlier version.

You do not need to Update Parameters and you are still able to apply your changes if:

  • You want to reference the updated parameter group in a parameter context not already referencing it.
  • You want to reference a different parameter group in the parameter context referencing the updated parameter group.
  • You want to provide a custom value to any parameter in any of the parameter contexts.

Adding parameters to a shared parameter group

Learn how to add new parameters and sensitive parameters to a shared parameter group.

  • You have at least one shared parameter group created.
  1. Select the Parameter Group where you want to add the new parameter.
    The Manage Parameter Group view opens for the selected group.
  2. Click Add Parameter , then select Add Parameter or Add Sensitive Parameter depending on the type of parameter you want to add.
  3. Provide a unique parameter Name.
  4. Provide the parameter Value or select the Set empty string checkbox.
    To provide a file as parameter value, do one of the following:
    • Click Select File then browse for the file you want to upload.
    • Drag-and-drop the file onto the Select File tile.
  5. Optional: Provide a parameter Description.
  6. Click Apply.
  7. Click Apply Changes to confirm.
    To revert your changes, click Discard Changes.

Deleting a parameter from a shared parameter group

When a parameter in a group is no longer needed, you can delete it to keep your parameter group organized and avoid confusion when managing flow deployments.

You can only delete shared parameter groups that are not currently referenced by any flow draft or deployed flow.
  1. Select the Parameter Group where you want to delete the parameter.
  2. Click on the parameter that you want to delete.
    In the parameter details pane click [Delete] to delete the parameter from the group.
    The Delete Parameter modal opens.
  3. Click Delete to confirm your choice.
  4. Click Apply Changes.

Modifying a parameter in a parameter group

When you need to update connection strings, credentials, or other configuration values in a parameter group, you can modify the parameter value and description. Updating parameters in a central location helps you propagate changes to all flow drafts that use that parameter group without editing each flow individually.

  1. Select the Parameter Group where you want to modify parameters.
  2. Click on the parameter you want to modify.
    In the parameter details pane modify the parameter Value and Description as necessary.
  3. Click Apply Changes.

Deleting a parameter group

When a parameter group is no longer needed and is not used by any flow or draft, you can delete it to keep your resources organized. Removing unused parameter groups helps you maintain a clean set of shared configurations and avoid confusion when managing flow deployments.

You can only delete shared parameter groups that are not currently referenced by any flow draft or deployed flow.
  1. Select the Parameter Group that you want to delete.
  2. Click [Options] > Delete.
  3. Type the name of the parameter group in the Please enter the parameter group name to confirm: text box to confirm your choice.
  4. Click Delete to confirm your choice.

Importing a parameter group to a flow draft

When you want to reuse an existing parameter group in a flow draft, you can import it so that the flow can reference those parameters. Importing a parameter group helps you avoid redefining the same configuration values and ensures consistency across your flow drafts.

  1. Select the Parameter Group that you want to import to a flow draft.
  2. Click [Options] > Import to Flow Draft.
  3. In the Import to Flow Draft modal select the Flow Draft where you want to import the parameter group.
  4. Click Import.

Duplicating a parameter group

Learn how to duplicate parameter groups. Duplicating a parameter group allows you to reassign the newly created group to another project, or to customize it according to your needs without touching the original group.

  1. Select the Parameter Group that you want to import to duplicate.
  2. Click [Options] > Duplicate.
  3. In the Duplicate Parameter Group modal provide a Parameter Group Name and an optional Description.
  4. Click Duplicate.