/** * add resource requirements for a executor. */ public void addResourcesForExec(ExecutorDetails exec, NormalizedResourceRequest resourceList) { if (hasExecInTopo(exec)) { LOG.warn("Executor {} already exists...ResourceList: {}", exec, getTaskResourceReqList(exec)); return; } this.resourceList.put(exec, resourceList); }
exec, td.getExecutorToComponent().get(exec), td.getTaskResourceReqList(exec)); final Iterable<String> sortedNodes = sortAllNodes(td, exec, favoredNodeIds, unFavoredNodeIds);
exec, td.getExecutorToComponent().get(exec), td.getTaskResourceReqList(exec)); if (!scheduleExecutor(exec, td, scheduledTasks, sortedNodes)) { return mkNotEnoughResources(td);
/** * add resource requirements for a executor */ public void addResourcesForExec(ExecutorDetails exec, Map<String, Double> resourceList) { if (hasExecInTopo(exec)) { LOG.warn("Executor {} already exists...ResourceList: {}", exec, getTaskResourceReqList(exec)); return; } this.resourceList.put(exec, resourceList); }
LOG.debug("\n\nAttempting to schedule: {} of component {}[ REQ {} ]", exec, td.getExecutorToComponent().get(exec), td.getTaskResourceReqList(exec)); scheduleExecutor(exec, td, schedulerAssignmentMap, scheduledTasks);