public class TaskResourceRequest extends Object implements scala.Serializable
ResourceProfileto programmatically specify the resources needed for an RDD that will be applied at the stage level.
TaskResourceRequests class as a convenience API.
param: resourceName Resource name param: amount Amount requesting as a Double to support fractional resource requests. Valid values are less than or equal to 0.5 or whole numbers. This essentially lets you configure X number of tasks to run on a single resource, ie amount equals 0.5 translates into 2 tasks per resource address.
|Constructor and Description|
public TaskResourceRequest(String resourceName, double amount)