【问题标题】:NiFi: Failed to connect node to cluster because local flow is different than cluster flowNiFi:无法将节点连接到集群,因为本地流与集群流不同
【发布时间】:2019-12-08 16:22:50
【问题描述】:

重启服务器后,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

非常感谢任何帮助。

【问题讨论】:

    标签: apache-nifi


    【解决方案1】:

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

    【讨论】:

    • 谢谢,布莱恩。这些文件的大小相同,但是当我执行 md5sum 时,它们是不同的。使它们在整个集群中都相同,然后就可以正常工作了。
    【解决方案2】:

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

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

    谢谢

    【讨论】:

    • 这是更好的答案,IMO。因为有时由于错误,从其中一个节点复制流在某些版本上工作。
    • 在我的情况下需要重启 nifi 进程(仅重新连接是不够的)
    猜你喜欢
    • 2018-03-31
    • 2016-07-11
    • 2019-07-05
    • 1970-01-01
    • 2021-11-23
    • 1970-01-01
    • 1970-01-01
    • 2021-07-21
    • 2018-06-30
    相关资源
    最近更新 更多