如何在 NiFi Registry 中恢复来自 git 的流量?
How to restore flows from git in NiFi Registry?
我在 NiFi Registry 0.3 中使用 GitFlowPersistenceProvider。今天我创建了另一个 NiFi Registry,我想使用相同的提供程序加载前一个 NiFi Registry 的所有流。不幸的是,没有任何反应 - 不会重新创建任何存储桶或流。我尝试手动创建所有存储桶,但即使这样也不会导入任何流。
GitFlowPersistenceProvider documentation 状态:
When NiFi Registry starts, this provider reads through Git commit
histories and lookup these bucket.yml files to restore Buckets and
Flows for each snapshot version.
我应该如何使用 GitFlowPersistenceProvider 将现有流加载到新的 NiFi Registry 中?
遗憾的是,文档并不完全准确。目前有元数据DB,默认是嵌入式H2,也可以是Postgres,然后是流存储。您需要恢复两者才能启动具有相同数据的新实例。
在下一个版本中有一项新功能,如果您使用完全空的数据库(即没有存储桶)和 git 流提供程序启动一个新实例,那么它将恢复所有内容。
您可以通过停止 nifi-registry 0.4.0 、删除数据库文件(如果有)然后启动 nifi 注册表以基于 git repo 重建数据库来执行相同的操作。
我在 NiFi Registry 0.3 中使用 GitFlowPersistenceProvider。今天我创建了另一个 NiFi Registry,我想使用相同的提供程序加载前一个 NiFi Registry 的所有流。不幸的是,没有任何反应 - 不会重新创建任何存储桶或流。我尝试手动创建所有存储桶,但即使这样也不会导入任何流。
GitFlowPersistenceProvider documentation 状态:
When NiFi Registry starts, this provider reads through Git commit histories and lookup these bucket.yml files to restore Buckets and Flows for each snapshot version.
我应该如何使用 GitFlowPersistenceProvider 将现有流加载到新的 NiFi Registry 中?
遗憾的是,文档并不完全准确。目前有元数据DB,默认是嵌入式H2,也可以是Postgres,然后是流存储。您需要恢复两者才能启动具有相同数据的新实例。
在下一个版本中有一项新功能,如果您使用完全空的数据库(即没有存储桶)和 git 流提供程序启动一个新实例,那么它将恢复所有内容。
您可以通过停止 nifi-registry 0.4.0 、删除数据库文件(如果有)然后启动 nifi 注册表以基于 git repo 重建数据库来执行相同的操作。