Creating the basic parameter contexts

Follow these steps to set up your individual parameter contexts and add the relevant parameters to them.

  1. Create a parameter context for the common Kafka settings:
    1. Select Parameter Contexts from the top-right Global menu in the NiFi UI.
      The NiFi Parameter Contexts dialog opens.
    2. Click the (+) button in the top-right corner of the NiFi Parameter Contexts dialog to add a new parameter context.
    3. Add a name for your parameter context on the SETTINGS tab.
      In this example the name is Kafka.
    4. Switch to the PARAMETERS tab.
    5. Click the (+) button to add the parameters you need for configuring your data flow.
    6. Provide a name and a value in the Add Parameter dialog. You can also add a description of the parameter, if you want to.
      In this example, the following parameters are added:
      • Name: Kafka Brokers / Value: localhost:9092
      • Name: Kafka Group ID / Value: MyGroup
    7. Click APPLY to save the parameter context.
  2. Create the remaining parameter contexts by repeating sub-steps a to g outlined in Step 1, using the following names and values:
    Parameter context Parameter name Parameter value
    GCP Cloud Storage GCP Project ID my-project
    GCP Bucket my-bucket
    S3 S3 Bucket my-bucket
    S3 Region us-west-2
    Site Properties Site Identifier 1234
    Site Data Manager MyDM
    Source ABC Kafka Topic source-abc-topic
    Source DEF Kafka Topic source-def-topic
You are ready with the individual parameter contexts that you will use to create your inheritance hierarchy. Your parameter contexts should look like this: