Package org.apache.hadoop.yarn.server.nodemanager.nodelabels
@Private
@Unstable
package org.apache.hadoop.yarn.server.nodemanager.nodelabels
Package to encapsulate classes used to handle node labels and node
attributes in NM.
-
ClassDescriptionProvides base implementation of NodeDescriptorsProvider with Timer and expects subclass to provide TimerTask which can fetch node descriptors.Configuration based node attributes provider.Provides Node's Labels by constantly monitoring the configuration.Abstract class which will be responsible for fetching the node attributes.Interface which will be responsible for fetching node descriptors, a node descriptor could be a
NodeLabelor aNodeAttribute.A node descriptors script runner periodically runs a script, parses the output to collect desired descriptors, and then post these descriptors to the givenNodeDescriptorsProvider.Abstract class which will be responsible for fetching the node labels.Node attribute provider that periodically runs a script to collect node attributes.The class which provides functionality of getting the labels of the node using the configured node labels provider script.