nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Bean <mark.o.b...@gmail.com>
Subject determine if instance is a Cluster Coordinator or Primary Node
Date Tue, 29 Aug 2017 12:08:50 GMT
Is there a way to get access to Cluster configuration state? Specifically,
can a Node determine which Node - or simply "itself" - is the Cluster
Coordinator or the Primary Node?

Use case: I have a custom authorizer which includes a background thread to
re-authorize users and policies in case a user's credentials have changed.
This thread can potentially change authorizations.xml and users.xml files
which are kept in sync with ZooKeeper. I do not want each Node to execute
the process making the same changes. It would be desirable to execute this
process on only one Node (Coordinator or Primary) and let ZooKeeper
coordinate the changes across the Cluster.

Thanks,
Mark

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message