title: How to limit Nifi processor to run on a single node in cluster?
body: <p>We are building a data workflow with NiFi and want the final (custom) processor (which runs the deduplication logic) to run only one one of the NiFi cluster nodes (instead of running on all of them). I see that NiFi 1.7.0 (which is not yet released) has a <code>PrimaryNodeOnly</code> annotation to enforce a single node execution behaviour. Is there a way or workaround to enforce such behaviour in NiFi 1.6.0?</p>
  
  <p>NOTE: In addition to <code>@PrimaryNodeOnly</code>, it would be better if NiFi provides a way to run a processor on a single node only (i.e., some annotation like <code>@SingleNodeOnly</code>). This way the execution node need not necessarily be the primary node which therefore will reduce the load on primary node. This is just an ask for future and not necessary to solve the problem mentioned above.</p>