Description
Exception in thread "main" org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /yarn-leader-election
The error happens when we want to run scheduleIndexBuilds. In getSubmittedYarnApps, getActiveResourceManagerHost uses zookeeper to determine the active Resource Manager.
But /yarn-leader-election only exists if yarn is in HA mode.
I think this function should work well when we have single yarn RM and read its address from the config.