java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.Servicepublic class RMDelegatedNodeLabelsUpdater
extends org.apache.hadoop.service.CompositeService
RMNodeLabelsMappingProvider and updates the
nodes -> labels map via RMNodeLabelsManager.
This service is enabled when configuration
"yarn.node-labels.configuration-type" is set to "delegated-centralized".| Modifier and Type | Field | Description |
|---|---|---|
static long |
DISABLE_DELEGATED_NODE_LABELS_UPDATE |
|
long |
nodeLabelsUpdateInterval |
| Constructor | Description |
|---|---|
RMDelegatedNodeLabelsUpdater(RMContext rmContext) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
|
protected void |
serviceStart() |
|
protected void |
serviceStop() |
Terminate the timer.
|
void |
updateNodeLabels(org.apache.hadoop.yarn.api.records.NodeId node) |
Update node labels for a specified node.
|
addIfService, addService, getServices, removeServiceclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic static final long DISABLE_DELEGATED_NODE_LABELS_UPDATE
@VisibleForTesting public long nodeLabelsUpdateInterval
public RMDelegatedNodeLabelsUpdater(RMContext rmContext)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws java.lang.Exception
serviceInit in class org.apache.hadoop.service.CompositeServicejava.lang.Exceptionprotected void serviceStart()
throws java.lang.Exception
serviceStart in class org.apache.hadoop.service.CompositeServicejava.lang.Exceptionprotected void serviceStop()
throws java.lang.Exception
serviceStop in class org.apache.hadoop.service.CompositeServicejava.lang.Exception - exception occurs.public void updateNodeLabels(org.apache.hadoop.yarn.api.records.NodeId node)
node - the node to update node labelsCopyright © 2008–2025 Apache Software Foundation. All rights reserved.