Class ZKClusterCoordinator

java.lang.Object
org.apache.drill.exec.coord.ClusterCoordinator
org.apache.drill.yarn.zk.ZKClusterCoordinator
All Implemented Interfaces:
AutoCloseable

public class ZKClusterCoordinator extends ClusterCoordinator
Manages cluster coordination utilizing zookeeper.

This is a clone of the Drill class org.apache.drill.exec.coord.zk.ZKClusterCoordinator with a number of modifications:

  • Removed dependency on the Drill config system. That system uses Google's Guava library version 18, which conflicts with the earlier versions used by YARN and Hadoop, which resulted in runtime undefined method exceptions.
  • Instead of getting config information out of the Drill config, the parameters are instead passed directly.
  • Adds support for the drillbits registered event which was neither needed nor implemented by Drill.
  • Use the YARN logging system instead of Drill's.

This class should be replaced by the Drill version if/when the Guava conflicts can be resolved (and when registered Drillbit notifications are added to the Drill version.)