apache-nifi - 如何在 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
解决方案
推荐阅读
- python - python小数给出错误的答案
- java - 使用 BufferedReader 将文件内容存储在 Integer 的 ArrayList 中
- qt - 如何知道qml中的lib版本
- java - 在 JUnit 4 的“gradle test”开始时运行初始化程序
- javascript - JSPDF autotable - 打破大表
- php - PDO 是否仍在为 MySQL 模拟准备好的语句?
- asp.net-mvc - 在视图 MVC 5 上渲染时隐藏输入不起作用
- c++ - 为什么带有type参数的operator()可以在result_of的上下文中应用于type?
- reactjs - 扩展类和更改属性
- python - 如何在 django 项目中调用命令?