public class DrillControllerFactory extends Object implements ControllerFactory
The controller consists of a generic dispatcher and cluster controller, along with a Drill-specific scheduler and task launch specification. Drill also includes an interface to ZooKeeper to monitor Drillbits.
The AM is launched by YARN. All it knows is what is in its launch environment
or configuration files. The client must set up all the information that the
AM needs. Static information appears in configuration files. But, dynamic
information (or that which is inconvenient to repeat in configuration files)
must arrive in environment variables. See DrillOnYarnConfig
for more
information.
Modifier and Type | Class and Description |
---|---|
static class |
DrillControllerFactory.ZKRegistryAddOn |
ControllerFactory.ControllerFactoryException
Constructor and Description |
---|
DrillControllerFactory() |
Modifier and Type | Method and Description |
---|---|
void |
addIfSet(LaunchSpec spec,
String configParam,
String envVar)
Utility method to create an environment variable in the process launch
specification if a given Drill-on-YARN configuration variable is set,
copying the config value to the environment variable.
|
Dispatcher |
build() |
public Dispatcher build() throws ControllerFactory.ControllerFactoryException
build
in interface ControllerFactory
ControllerFactory.ControllerFactoryException
public void addIfSet(LaunchSpec spec, String configParam, String envVar)
spec
- launch specificationconfigParam
- config valueenvVar
- environment variableCopyright © 1970 The Apache Software Foundation. All rights reserved.