public abstract class AbstractClusterServices extends Object
| Constructor and Description |
|---|
AbstractClusterServices() |
| Modifier and Type | Method and Description |
|---|---|
abstract org.apache.hadoop.yarn.api.records.Resource |
newResource()
Create a resource for requests
|
abstract org.apache.hadoop.yarn.api.records.Resource |
newResource(int memory,
int cores) |
org.apache.hadoop.yarn.api.records.Resource |
normalize(org.apache.hadoop.yarn.api.records.Resource resource,
org.apache.hadoop.yarn.api.records.Resource minR,
org.apache.hadoop.yarn.api.records.Resource maxR)
Normalise memory, CPU and other resources according to the YARN AM-supplied
values and the resource calculator in use (currently hard-coded to the
DefaultResourceCalculator. |
public abstract org.apache.hadoop.yarn.api.records.Resource newResource()
public abstract org.apache.hadoop.yarn.api.records.Resource newResource(int memory,
int cores)
public org.apache.hadoop.yarn.api.records.Resource normalize(org.apache.hadoop.yarn.api.records.Resource resource,
org.apache.hadoop.yarn.api.records.Resource minR,
org.apache.hadoop.yarn.api.records.Resource maxR)
DefaultResourceCalculator.
Those resources which aren't normalized (currently: CPU) are left
as is.resource - resource requirements of a roleminR - minimum values of this queuemaxR - max values of this queueCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.