@Override public void render(Block html) { info("\'" + sinfo.getQueueName() + "\' Queue Status"). _("Queue State:" , sinfo.getState()). _("Minimum Queue Memory Capacity:" , Integer.toString(sinfo.getMinQueueMemoryCapacity())). _("Maximum Queue Memory Capacity:" , Integer.toString(sinfo.getMaxQueueMemoryCapacity())). _("Number of Nodes:" , Integer.toString(sinfo.getNumNodes())). _("Used Node Capacity:" , Integer.toString(sinfo.getUsedNodeCapacity())). _("Available Node Capacity:" , Integer.toString(sinfo.getAvailNodeCapacity())). _("Total Node Capacity:" , Integer.toString(sinfo.getTotalNodeCapacity())). _("Number of Node Containers:" , Integer.toString(sinfo.getNumContainers())); html._(InfoBlock.class); } }
private void renderLeafQueueInfoWithoutParition(Block html) { ResponseInfo ri = info("\'" + lqinfo.getQueuePath().substring(5) + "\' Queue Status") .__("Queue State:", lqinfo.getQueueState()); renderQueueCapacityInfo(ri, ""); renderCommonLeafQueueInfo(ri); html.__(InfoBlock.class); // clear the info contents so this queue's info doesn't accumulate into // another queue's info ri.clear(); }
public static ResponseInfo $about(String about) { ResponseInfo info = new ResponseInfo(); info.about = about; return info; }
@Override protected void render(Block html) { ResponseInfo ri = info("\'" + qinfo.getQueueName() + "\' Queue Status"). _("Used Resources:", qinfo.getUsedResources().toString()). _("Num Active Applications:", qinfo.getNumActiveApplications()). _("Num Pending Applications:", qinfo.getNumPendingApplications()). _("Min Resources:", qinfo.getMinResources().toString()). _("Max Resources:", qinfo.getMaxResources().toString()); int maxApps = qinfo.getMaxApplications(); if (maxApps < Integer.MAX_VALUE) { ri._("Max Running Applications:", qinfo.getMaxApplications()); } ri._(STEADY_FAIR_SHARE + ":", qinfo.getSteadyFairShare().toString()); ri._(INSTANTANEOUS_FAIR_SHARE + ":", qinfo.getFairShare().toString()); html._(InfoBlock.class); // clear the info contents so this queue's info doesn't accumulate into another queue's info ri.clear(); } }
JobInfo job = new JobInfo(j); ResponseInfo infoBlock = info("Job Overview"). _("Job Name:", job.getName()). _("User Name:", job.getUserName()). _("Queue:", job.getQueueName()). _("State:", job.getState()). _("Uberized:", job.isUber()). _("Submitted:", new Date(job.getSubmitTime())). _("Started:", new Date(job.getStartTime())). _("Finished:", new Date(job.getFinishTime())). _("Elapsed:", StringUtils.formatTime( Times.elapsed(job.getStartTime(), job.getFinishTime(), false))); b.append(addTaskLinks(diag)); infoBlock._r("Diagnostics:", b.toString()); infoBlock._("Average Map Time", StringUtils.formatTime(job.getAvgMapTime())); infoBlock._("Average Shuffle Time", StringUtils.formatTime(job.getAvgShuffleTime())); infoBlock._("Average Merge Time", StringUtils.formatTime(job.getAvgMergeTime())); infoBlock._("Average Reduce Time", StringUtils.formatTime(job.getAvgReduceTime())); infoBlock._("ACL "+entry.getName()+":", entry.getValue());
@Override public void render(Block html) { info("\'" + sinfo.getQueueName() + "\' Queue Status"). __("Queue State:" , sinfo.getState()). __("Minimum Queue Memory Capacity:" , Long.toString(sinfo.getMinQueueMemoryCapacity())). __("Maximum Queue Memory Capacity:" , Long.toString(sinfo.getMaxQueueMemoryCapacity())). __("Number of Nodes:" , Integer.toString(sinfo.getNumNodes())). __("Used Node Capacity:" , Integer.toString(sinfo.getUsedNodeCapacity())). __("Available Node Capacity:" , Integer.toString(sinfo.getAvailNodeCapacity())). __("Total Node Capacity:" , Integer.toString(sinfo.getTotalNodeCapacity())). __("Number of Node Containers:" , Integer.toString(sinfo.getNumContainers())); html.__(InfoBlock.class); } }
public ResponseInfo info(String about) { return getInstance(ResponseInfo.class).about(about); }
@Override protected void render(Block html) { ResponseInfo ri = info("\'" + qinfo.getQueueName() + "\' Queue Status"). _("Used Resources:", qinfo.getUsedResources().toString()). _("Num Active Applications:", qinfo.getNumActiveApplications()). _("Num Pending Applications:", qinfo.getNumPendingApplications()). _("Min Resources:", qinfo.getMinResources().toString()). _("Max Resources:", qinfo.getMaxResources().toString()); int maxApps = qinfo.getMaxApplications(); if (maxApps < Integer.MAX_VALUE) { ri._("Max Running Applications:", qinfo.getMaxApplications()); } ri._(STEADY_FAIR_SHARE + ":", qinfo.getSteadyFairShare().toString()); ri._(INSTANTANEOUS_FAIR_SHARE + ":", qinfo.getFairShare().toString()); html._(InfoBlock.class); // clear the info contents so this queue's info doesn't accumulate into another queue's info ri.clear(); } }
private void renderCommonLeafQueueInfo(ResponseInfo ri) { ri. __("Num Schedulable Applications:", Integer.toString(lqinfo.getNumActiveApplications())). __("Num Non-Schedulable Applications:", Integer.toString(lqinfo.getNumPendingApplications())). __("Num Containers:", Integer.toString(lqinfo.getNumContainers())). __("Max Applications:", Integer.toString(lqinfo.getMaxApplications())). __("Max Applications Per User:", Integer.toString(lqinfo.getMaxApplicationsPerUser())). __("Configured Minimum User Limit Percent:", Integer.toString(lqinfo.getUserLimit()) + "%"). __("Configured User Limit Factor:", lqinfo.getUserLimitFactor()). __("Accessible Node Labels:", StringUtils.join(",", lqinfo.getNodeLabels())). __("Ordering Policy: ", lqinfo.getOrderingPolicyInfo()). __("Preemption:", lqinfo.getPreemptionDisabled() ? "disabled" : "enabled"). __("Intra-queue Preemption:", lqinfo.getIntraQueuePreemptionDisabled() ? "disabled" : "enabled"). __("Default Node Label Expression:", lqinfo.getDefaultNodeLabelExpression() == null ? NodeLabel.DEFAULT_NODE_LABEL_PARTITION : lqinfo.getDefaultNodeLabelExpression()). __("Default Application Priority:", Integer.toString(lqinfo.getDefaultApplicationPriority())); } }
public ResponseInfo info(String about) { return getInstance(ResponseInfo.class).about(about); }
@Override public void render(Block html) { info("\'" + sinfo.getQueueName() + "\' Queue Status"). _("Queue State:" , sinfo.getState()). _("Minimum Queue Memory Capacity:" , Integer.toString(sinfo.getMinQueueMemoryCapacity())). _("Maximum Queue Memory Capacity:" , Integer.toString(sinfo.getMaxQueueMemoryCapacity())). _("Number of Nodes:" , Integer.toString(sinfo.getNumNodes())). _("Used Node Capacity:" , Integer.toString(sinfo.getUsedNodeCapacity())). _("Available Node Capacity:" , Integer.toString(sinfo.getAvailNodeCapacity())). _("Total Node Capacity:" , Integer.toString(sinfo.getTotalNodeCapacity())). _("Number of Node Containers:" , Integer.toString(sinfo.getNumContainers())); html._(InfoBlock.class); } }
/** * @param html block to be rendered */ private void renderLeafQueueInfoWithoutParition(final Block html) { ResponseInfo ri = info("\'" + lqinfo.getQueuePath().substring(5) + "\' Queue Status") ._("Queue State:", lqinfo.getQueueState()); renderQueueCapacityInfo(ri); renderCommonLeafQueueInfo(ri); html._(InfoBlock.class); // clear the info contents so this queue's info doesn't accumulate into // another queue's info ri.clear(); }
@Override protected void render(Block html) { ResponseInfo ri = info("\'" + qinfo.getQueueName() + "\' Queue Status"). __("Used Resources:", qinfo.getUsedResources().toString()). __("Min Resources:", qinfo.getMinResources().toString()). __("Max Resources:", qinfo.getMaxResources().toString()). __("Max Container Allocation:", qinfo.getMaxContainerAllocation().toString()). __("Reserved Resources:", qinfo.getReservedResources().toString()); int maxApps = qinfo.getMaxApplications(); if (maxApps < Integer.MAX_VALUE) { ri.__("Max Running Applications:", qinfo.getMaxApplications()); } ri.__(STEADY_FAIR_SHARE + ":", qinfo.getSteadyFairShare().toString()); ri.__(INSTANTANEOUS_FAIR_SHARE + ":", qinfo.getFairShare().toString()); html.__(InfoBlock.class); // clear the info contents so this queue's info doesn't accumulate into another queue's info ri.clear(); } }
/** * Render the /info page with an overview of current application. */ public void info() { AppInfo info = new AppInfo(app, app.context); info("Application Master Overview"). __("Application ID:", info.getId()). __("Application Name:", info.getName()). __("User:", info.getUser()). __("Started on:", Times.format(info.getStartTime())). __("Elasped: ", org.apache.hadoop.util.StringUtils.formatTime( info.getElapsedTime() )); render(InfoPage.class); }
public ResponseInfo info(String about) { return getInstance(ResponseInfo.class).about(about); }
public static ResponseInfo $about(String about) { ResponseInfo info = new ResponseInfo(); info.about = about; return info; }
/** * @param ri response info to be rendered */ private void renderCommonLeafQueueInfo(final ResponseInfo ri) { ri. _("Num Schedulable Applications:", Integer.toString(lqinfo.getNumActiveApplications())). _("Num Non-Schedulable Applications:", Integer.toString(lqinfo.getNumPendingApplications())). _("Num Containers:", Integer.toString(lqinfo.getNumContainers())). _("Max Applications:", Integer.toString(lqinfo.getMaxApplications())). _("Max Applications Per User:", Integer.toString(lqinfo.getMaxApplicationsPerUser())). _("Max Application Master Resources:", lqinfo.getAMResourceLimit().toString()). _("Used Application Master Resources:", lqinfo.getUsedAMResource().toString()). _("Max Application Master Resources Per User:", lqinfo.getUserAMResourceLimit().toString()). _("Configured Minimum User Limit Percent:", Integer.toString(lqinfo.getUserLimit()) + "%"). _("Configured User Limit Factor:", StringUtils.format( "%.1f", lqinfo.getUserLimitFactor())). _("Accessible Node Labels:", StringUtils.join(",", lqinfo.getNodeLabels())). _("Preemption:", lqinfo.getPreemptionDisabled() ? "disabled" : "enabled"); } }
/** * @param html block to be rendered */ private void renderLeafQueueInfoWithoutParition(final Block html) { ResponseInfo ri = info("\'" + lqinfo.getQueuePath().substring(5) + "\' Queue Status") ._("Queue State:", lqinfo.getQueueState()); renderQueueCapacityInfo(ri); renderCommonLeafQueueInfo(ri); html._(InfoBlock.class); // clear the info contents so this queue's info doesn't accumulate into // another queue's info ri.clear(); }
@Override protected void render(Block html) { ResponseInfo ri = info("\'" + qinfo.getQueueName() + "\' Queue Status"). __("Used Resources:", qinfo.getUsedResources().toString()). __("Demand Resources:", qinfo.getDemandResources().toString()). __("AM Used Resources:", qinfo.getAMUsedResources().toString()). __("AM Max Resources:", qinfo.getAMMaxResources().toString()). __("Num Active Applications:", qinfo.getNumActiveApplications()). __("Num Pending Applications:", qinfo.getNumPendingApplications()). __("Min Resources:", qinfo.getMinResources().toString()). __("Max Resources:", qinfo.getMaxResources().toString()). __("Max Container Allocation:", qinfo.getMaxContainerAllocation().toString()). __("Reserved Resources:", qinfo.getReservedResources().toString()); int maxApps = qinfo.getMaxApplications(); if (maxApps < Integer.MAX_VALUE) { ri.__("Max Running Applications:", qinfo.getMaxApplications()); } ri.__(STEADY_FAIR_SHARE + ":", qinfo.getSteadyFairShare().toString()); ri.__(INSTANTANEOUS_FAIR_SHARE + ":", qinfo.getFairShare().toString()); ri.__("Preemptable:", qinfo.isPreemptable()); html.__(InfoBlock.class); // clear the info contents so this queue's info doesn't accumulate into another queue's info ri.clear(); } }
YarnConfiguration.DEFAULT_FEDERATION_ENABLED); info("Cluster Status"). __("Federation Enabled", isEnabled). __("Applications Submitted", "N/A"). __("Applications Pending", "N/A"). __("Applications Running", "N/A"). __("Applications Failed", "N/A"). __("Applications Killed", "N/A"). __("Applications Completed", "N/A"). __("Containers Allocated", metrics.getContainersAllocated()). __("Containers Reserved", metrics.getReservedContainers()). __("Containers Pending", metrics.getPendingContainers()). __("Available Memory", StringUtils.byteDesc(metrics.getAvailableMB() * BYTES_IN_MB)). __("Allocated Memory", StringUtils.byteDesc(metrics.getAllocatedMB() * BYTES_IN_MB)). __("Reserved Memory", StringUtils.byteDesc(metrics.getReservedMB() * BYTES_IN_MB)). __("Total Memory", StringUtils.byteDesc(metrics.getTotalMB() * BYTES_IN_MB)). __("Available VirtualCores", metrics.getAvailableVirtualCores()). __("Allocated VirtualCores", metrics.getAllocatedVirtualCores()). __("Reserved VirtualCores", metrics.getReservedVirtualCores()). __("Total VirtualCores", metrics.getTotalVirtualCores()). __("Active Nodes", metrics.getActiveNodes()). __("Lost Nodes", metrics.getLostNodes()). __("Available Nodes", metrics.getDecommissionedNodes()). __("Unhealthy Nodes", metrics.getUnhealthyNodes()). __("Rebooted Nodes", metrics.getRebootedNodes()).