public class ScriptBasedNodeLabelsProvider extends NodeLabelsProvider
| Modifier and Type | Field and Description | 
|---|---|
| static String | NODE_LABEL_PARTITION_PATTERNPattern used for searching in the output of the node labels script | 
DISABLE_NODE_DESCRIPTORS_PROVIDER_FETCH_TIMER, readLock, timerTask, writeLock| Constructor and Description | 
|---|
| ScriptBasedNodeLabelsProvider() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | cleanUp()Method used to terminate the Node Labels Fetch script. | 
| TimerTask | createTimerTask()Creates a timer task which be scheduled periodically by the provider,
 and the task is responsible to update node descriptors to the provider. | 
| protected void | serviceInit(org.apache.hadoop.conf.Configuration conf) | 
getDescriptors, getIntervalTime, getScheduler, serviceStart, serviceStop, setDescriptors, setIntervalTime, verifyConfiguredScriptclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic static final String NODE_LABEL_PARTITION_PATTERN
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
                    throws Exception
serviceInit in class AbstractNodeDescriptorsProvider<org.apache.hadoop.yarn.api.records.NodeLabel>Exceptionpublic void cleanUp()
cleanUp in class AbstractNodeDescriptorsProvider<org.apache.hadoop.yarn.api.records.NodeLabel>public TimerTask createTimerTask()
AbstractNodeDescriptorsProvidercreateTimerTask in class AbstractNodeDescriptorsProvider<org.apache.hadoop.yarn.api.records.NodeLabel>Copyright © 2008–2023 Apache Software Foundation. All rights reserved.