复制参数上下文 NiFi

Copy Parameter Context NiFi

我正在使用 NiFi UI 和 NiFi Registry,我创建了一组具有参数上下文的处理器并开始了版本控制。现在我想用不同的参数上下文克隆这个处理器组。我发现下一个:

Import Flow

The following story depicts the steps required to import the flow that was developed above into a new environment and make use of it. Drag Process Group onto Canvas Choose 'Import...' and select "Replicate DB to Kafka" flow User will be prompted to select a local Parameter Context to use for the Process Group:

  • Select an existing local context
  • Create new context, with values initially populated from the values saved in Flow Registry
  • Create new context, by copying values from an existing local context

我完成了这一步,但是我没有看到这个选项,我做错了什么?如何根据现有的参数创建各种参数上下文?

作为选项之一,下载 NiFi CLI 并执行 2 个命令:

nifi export-param-context -o your_path_to_save -pcid your_pc_id -u your_nifi_url  
nifi import-param-context -u your_nifi_url -i your_path_from_load -pcn name_pc