NiFi:无法将节点连接到集群,因为本地流与集群流不同

时间:2019-12-08 16:22:50

标签: apache-nifi

重启服务器后,NiFi无法启动。在服务器重新启动之前,我能够关闭/启动NiFi,没有任何问题。

我确保所有节点上的3个配置文件(flow.xml.gz,authorizations.xml和users.xml)都相同。

2019-12-08 14:36:10,085 ERROR [main] o.a.nifi.controller.StandardFlowService Failed to load flow from cluster due to: org.apache.nifi.controller.UninheritableFlowException: Failed to connect node to cluster because local flow is different than cluster flow.
org.apache.nifi.controller.UninheritableFlowException: Failed to connect node to cluster because local flow is different than cluster flow.
    at org.apache.nifi.controller.StandardFlowService.loadFromConnectionResponse(StandardFlowService.java:1026)
    at org.apache.nifi.controller.StandardFlowService.load(StandardFlowService.java:539)
    at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:1009)
    at org.apache.nifi.NiFi.<init>(NiFi.java:158)
    at org.apache.nifi.NiFi.<init>(NiFi.java:72)
    at org.apache.nifi.NiFi.main(NiFi.java:297)
Caused by: org.apache.nifi.controller.UninheritableFlowException: Proposed Authorizer is not inheritable by the flow controller because of Authorizer differences: Proposed Authorizations do not match current Authorizations: Proposed fingerprint is not inheritable because the current access policies is not empty.

此外,通过删除zookeeper群集中NiFi的znode,排除了任何zookeeper损坏问题。

我正在使用NiFi 1.9.1

我们非常感谢您的帮助。

2 个答案:

答案 0 :(得分:1)

这意味着authorizations.xml或users.xml存在差异,最有可能是authorizations.xml。我会尝试将这两个文件从其他节点之一复制到有问题的节点,这将确保它们完全相同。

答案 1 :(得分:0)

一个建议,如果存在这种情况,我们就无法复制flow.xml.gz(就像我一样)来处理各种流程限制。我们可以在有问题的节点上停止Nifi服务,将现有的flow.xml.gz重命名为备份(以确保我们不会丢失它),然后重新启动Nifi服务。

Nifi会自动生成flow.xml.gz并将节点连接到集群。它对我有用,因此可以共享。

谢谢