public class TopCLI extends YarnCLI
| Modifier and Type | Field and Description |
|---|---|
static Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> |
AppIDComparator |
protected org.apache.hadoop.thirdparty.com.google.common.cache.Cache<org.apache.hadoop.yarn.api.protocolrecords.GetApplicationsRequest,List<org.apache.hadoop.yarn.api.records.ApplicationReport>> |
applicationReportsCache |
static Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> |
AppNameComparator |
static Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> |
AppPriorityComparator |
static Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> |
AppTypeComparator |
static Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> |
MemorySecondsComparator |
static Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> |
ProgressComparator |
static Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> |
QueueNameComparator |
static Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> |
ReservedContainersComparator |
static Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> |
ReservedMemoryComparator |
static Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> |
ReservedVCoresComparator |
static Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> |
RunningTimeComparator |
static Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> |
UsedContainersComparator |
static Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> |
UsedMemoryComparator |
static Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> |
UsedVCoresComparator |
static Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> |
UserComparator |
static Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> |
VCoreSecondsComparator |
client, FAIL_CMD, HELP_CMD, KILL_CMD, LIST_CMD, MOVE_TO_QUEUE_CMD, SIGNAL_CMD, STATUS_CMD, syserr, sysout| Constructor and Description |
|---|
TopCLI() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearScreen() |
protected void |
clearScreenWithoutScroll() |
protected List<org.apache.hadoop.yarn.api.records.ApplicationReport> |
fetchAppReports() |
URL |
getHAClusterUrl(org.apache.hadoop.conf.Configuration conf,
String rmhid) |
protected org.apache.hadoop.yarn.client.cli.TopCLI.NodesInformation |
getNodesInfo() |
protected org.apache.hadoop.yarn.client.cli.TopCLI.QueueMetrics |
getQueueMetrics() |
static void |
main(String[] args) |
protected void |
printApps(String appInfo) |
protected void |
printHeader(String header) |
int |
run(String[] args) |
protected void |
setTerminalSequences() |
protected void |
showFieldsScreen() |
createAndStartYarnClient, createYarnClient, getClient, setClient, setSysErrPrintStream, setSysOutPrintStream, stopprotected org.apache.hadoop.thirdparty.com.google.common.cache.Cache<org.apache.hadoop.yarn.api.protocolrecords.GetApplicationsRequest,List<org.apache.hadoop.yarn.api.records.ApplicationReport>> applicationReportsCache
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> AppIDComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> UserComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> AppTypeComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> QueueNameComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> UsedContainersComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> ReservedContainersComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> UsedMemoryComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> ReservedMemoryComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> UsedVCoresComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> ReservedVCoresComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> VCoreSecondsComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> MemorySecondsComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> ProgressComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> RunningTimeComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> AppNameComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> AppPriorityComparator
public TopCLI()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionprotected void setTerminalSequences()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionprotected org.apache.hadoop.yarn.client.cli.TopCLI.NodesInformation getNodesInfo()
protected org.apache.hadoop.yarn.client.cli.TopCLI.QueueMetrics getQueueMetrics()
public URL getHAClusterUrl(org.apache.hadoop.conf.Configuration conf, String rmhid) throws MalformedURLException
MalformedURLExceptionprotected void clearScreen()
protected void clearScreenWithoutScroll()
protected void printHeader(String header)
protected void printApps(String appInfo)
protected void showFieldsScreen()
protected List<org.apache.hadoop.yarn.api.records.ApplicationReport> fetchAppReports() throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.