首页 > 解决方案 > 如何在 Nifi 1.9.2 和 Zookeeper 3.x 中顺利恢复节点?

问题描述

Nifi中运行了3个Node。但是其中一个突然丢失,并且日志显示本地流与集群流不同。我想选择以前成功的解决方案,删除流的flow.xml.gz失败的节点并重新启动它。

我不确定故障节点中的数据是否会丢失?感谢您的帮助!为什么节点会丢失?我按如下方式发布日志。

2020-08-20 08:17:33,019 ERROR [Reconnect to Cluster] o.a.nifi.controller.StandardFlowService Handling reconnection request failed 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.handleReconnectionRequest(StandardFlowService.java:668)
    at org.apache.nifi.controller.StandardFlowService.access$200(StandardFlowService.java:109)
    at org.apache.nifi.controller.StandardFlowService$1.run(StandardFlowService.java:415)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.nifi.controller.UninheritableFlowException: Proposed configuration is not inheritable by the flow controller because of flow differences: Found difference in Flows:
Cluster Fingerprint contains additional configuration from Local Fingerprint: 655b3f59-6f5c-1d8d-0000-0000002a2398NO_VALUENO_VALUENO_VERSION_CONTROL_INFORMATION655b3f67-6f5c-1d8d-ffff-ffffc31d8b7eNO_VALUENO_VALUENO_VERSION_CONTROL_INFORMATION75b74aab-1e43-3e6d-88e9-6ce5936703a4
    at org.apache.nifi.controller.StandardFlowSynchronizer.sync(StandardFlowSynchronizer.java:315)
    at org.apache.nifi.controller.FlowController.synchronize(FlowController.java:1368)
    at org.apache.nifi.persistence.StandardXMLFlowConfigurationDAO.load(StandardXMLFlowConfigurationDAO.java:88)
    at org.apache.nifi.controller.StandardFlowService.loadFromBytes(StandardFlowService.java:812)
    at org.apache.nifi.controller.StandardFlowService.loadFromConnectionResponse(StandardFlowService.java:1001)
    ... 4 common frames omitted

标签: apache-nifiapache-zookeeper

解决方案


推荐阅读