微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Nifi Registry:以编程方式将 Nifi 节点链接到注册表?

如何解决Nifi Registry:以编程方式将 Nifi 节点链接到注册表?

我一直在尝试部署 nifi 集群,混合使用 zookeeper 和 nifi 注册表。我有 nifi 注册表和 nifi 通过 docker 部署。在 nifi 注册表的文档中,它显示进入 nifi UI 并为 nifi 注册表实例添加控制器服务。

有没有办法以编程方式为注册表创建控制器服务? (即在构建过程中创建 nifi 和 nifi 注册表之间的链接

解决方法

注册客户端有一个 API 端点

POST /controller/registry-clients 

查看 REST API 文档 here

Request
consumes: application/json
Name    Location    Type                    Description
        body        RegistryClientEntity    The registry configuration details.
Response
produces: application/json
Status Code     Type    Description
200     RegistryClientEntity    successful operation
400     string  NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.
401     string  Client could not be authenticated.
403     string  Client is not authorized to make this request.
409     string  The request was valid but NiFi was not in the appropriate state to process it. Retrying the same request later may be successful.
Authorization
Write - /controller

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。