0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

NiFi | クラスタの1ノードがDisconnectedになる

Last updated at Posted at 2020-03-16

NiFiクラスタの1ノードがDisconnectedになる

NiFiを触っていたら、クラスタのある1ノードだけがどうしても同期ができず、
しまいには起動ができなくなりました。

エラー

/var/log/nifi配下のログをみたところ以下のエラーがありました。

2020-03-16 14:47:34,377 ERROR org.apache.nifi.cluster.coordination.node.NodeClusterCoordinator:
 Event Reported for g08-wo01.internal.cloudapp.net:8080 -- Node disconnected from cluster due to
 org.apache.nifi.controller.UninheritableFlowException: Failed to connect node to cluster because
 local flow is different than cluster flow.

わかったこと

NiFiのフロー用のXMLファイルに各ノードで差分が出てしまったのが原因。
確かに、あるノードAがClusterに参加して、"3/3 connected"などになる前に、
フローをいじってしまった気がする。

解決策

/var/lib/nifi/flow.xml.gz

のファイルを、同期ができている1つのノードからコピーして、
影響ノードのディレクトリに再配置するだけでOKでした。

参考情報

[NIFI 1.3.0] : Unable to rejoint again the cluster

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?