Class TopCLI
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.yarn.client.cli.YarnCLI
org.apache.hadoop.yarn.client.cli.TopCLI
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation>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>> static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation>static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation>static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation>static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation>static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation>static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation>static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation>static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation>static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation>static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation>static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation>static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation>static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation>static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation>static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation>Fields inherited from class org.apache.hadoop.yarn.client.cli.YarnCLI
client, FAIL_CMD, HELP_CMD, KILL_CMD, LIST_CMD, MOVE_TO_QUEUE_CMD, OPTION_SUBCLUSTERID, SIGNAL_CMD, STATUS_CMD, syserr, sysout -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected List<org.apache.hadoop.yarn.api.records.ApplicationReport>getHAClusterUrl(org.apache.hadoop.conf.Configuration conf, String rmhid) protected org.apache.hadoop.yarn.client.cli.TopCLI.NodesInformationprotected org.apache.hadoop.yarn.client.cli.TopCLI.QueueMetricsstatic voidprotected voidprotected voidprintHeader(String header) intprotected voidprotected voidMethods inherited from class org.apache.hadoop.yarn.client.cli.YarnCLI
createAndStartYarnClient, createYarnClient, getClient, setClient, setSysErrPrintStream, setSysOutPrintStream, stopMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
applicationReportsCache
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 -
AppIDComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> AppIDComparator -
UserComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> UserComparator -
AppTypeComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> AppTypeComparator -
QueueNameComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> QueueNameComparator -
UsedContainersComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> UsedContainersComparator -
ReservedContainersComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> ReservedContainersComparator -
UsedMemoryComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> UsedMemoryComparator -
ReservedMemoryComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> ReservedMemoryComparator -
UsedVCoresComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> UsedVCoresComparator -
ReservedVCoresComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> ReservedVCoresComparator -
VCoreSecondsComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> VCoreSecondsComparator -
MemorySecondsComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> MemorySecondsComparator -
ProgressComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> ProgressComparator -
RunningTimeComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> RunningTimeComparator -
AppNameComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> AppNameComparator -
AppPriorityComparator
public static final Comparator<org.apache.hadoop.yarn.client.cli.TopCLI.ApplicationInformation> AppPriorityComparator
-
-
Constructor Details
-
TopCLI
- Throws:
IOExceptionInterruptedException
-
-
Method Details
-
main
- Throws:
Exception
-
run
- Throws:
Exception
-
setTerminalSequences
- Throws:
IOExceptionInterruptedException
-
getNodesInfo
protected org.apache.hadoop.yarn.client.cli.TopCLI.NodesInformation getNodesInfo() -
getQueueMetrics
protected org.apache.hadoop.yarn.client.cli.TopCLI.QueueMetrics getQueueMetrics() -
getHAClusterUrl
@VisibleForTesting public URL getHAClusterUrl(org.apache.hadoop.conf.Configuration conf, String rmhid) throws MalformedURLException - Throws:
MalformedURLException
-
clearScreen
protected void clearScreen() -
clearScreenWithoutScroll
protected void clearScreenWithoutScroll() -
printHeader
-
printApps
-
showFieldsScreen
protected void showFieldsScreen() -
fetchAppReports
protected List<org.apache.hadoop.yarn.api.records.ApplicationReport> fetchAppReports() throws org.apache.hadoop.yarn.exceptions.YarnException, IOException- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-