use of org.apache.hadoop.yarn.nodelabels.CommonNodeLabelsManager in project hadoop by apache.
the class RMAdminCLI method getNodeLabelManagerInstance.
// Make it protected to make unit test can change it.
protected static synchronized CommonNodeLabelsManager getNodeLabelManagerInstance(Configuration conf) {
if (localNodeLabelsManager == null) {
localNodeLabelsManager = new CommonNodeLabelsManager();
localNodeLabelsManager.init(conf);
localNodeLabelsManager.start();
}
return localNodeLabelsManager;
}
use of org.apache.hadoop.yarn.nodelabels.CommonNodeLabelsManager in project hadoop by apache.
the class ClusterCLI method getNodeLabelManagerInstance.
@VisibleForTesting
static synchronized CommonNodeLabelsManager getNodeLabelManagerInstance(Configuration conf) {
if (localNodeLabelsManager == null) {
localNodeLabelsManager = new CommonNodeLabelsManager();
localNodeLabelsManager.init(conf);
localNodeLabelsManager.start();
}
return localNodeLabelsManager;
}
Aggregations