Github user ijokarumawak commented on the issue:
https://github.com/apache/nifi/pull/2237
@pvillard31 @MikeThomsen Thanks for the comments!
`connection.getAdmin().getClusterStatus().getMaster()` looks promising. I will
test that approach and update PR.---
