public class YarnApplication extends AbstractModel
header, skipSign
Constructor and Description |
---|
YarnApplication() |
YarnApplication(YarnApplication source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getAllocatedMB()
Get 申请内存MB
|
Long |
getAllocatedVCores()
Get 申请VCores
|
String |
getApplicationType()
Get 应用类型
|
Long |
getAvgMapTime()
Get 平均Map时间
|
Long |
getAvgMergeTime()
Get 平均Merge时间毫秒
|
Long |
getAvgReduceTime()
Get 平均Reduce时间
|
Long |
getAvgShuffleTime()
Get 平均Shuffle时间毫秒
|
Float |
getClusterUsagePercentage()
Get 集群资源占比
|
String |
getElapsedTime()
Get 运行时间
|
Long |
getFailedMapAttempts()
Get 失败的Map执行次数
|
Long |
getFailedReduceAttempts()
Get 失败的Reduce执行次数
|
String |
getFinalStatus()
Get 最终状态
|
Long |
getFinishedTime()
Get 结束时间毫秒
|
Long |
getGcTimeMillis()
Get GC毫秒
|
Long |
getHDFSBytesRead()
Get HDFS读取字节数
|
Long |
getHDFSBytesWritten()
Get HDFS写入字节数
|
String |
getId()
Get 应用ID
|
Long |
getKilledMapAttempts()
Get Kill的Map执行次数
|
Long |
getKilledReduceAttempts()
Get Kill的Reduce执行次数
|
Long |
getMapInputRecords()
Get Map输入记录数
|
Long |
getMapOutputRecords()
Get Map输出记录数
|
Long |
getMapsCompleted()
Get 完成的Map数
|
Long |
getMapsTotal()
Get Map总数
|
Long |
getMbMillisMaps()
Get Map使用的内存毫秒
|
Long |
getMbMillisReduces()
Get Reduce使用的内存毫秒
|
Long |
getMemorySeconds()
Get 内存MB*时间秒
|
String |
getName()
Get 应用名
|
Long |
getNumAMContainerPreempted()
Get AM预占用的容器数量
|
Long |
getNumNonAMContainerPreempted()
Get 预占的非应用程序主节点容器数量
|
Long |
getPreemptedResourceMB()
Get 预占用的内存
|
Long |
getPreemptedResourceVCores()
Get 预占用的VCore
|
Long |
getProgress()
Get 进度
|
String |
getQueue()
Get 队列
|
Float |
getQueueUsagePercentage()
Get 队列资源占比
|
Long |
getReduceInputRecords()
Get Reduce输入记录数
|
Long |
getReduceOutputRecords()
Get Reduce输出记录数
|
Long |
getReducesCompleted()
Get 完成的Reduce数
|
Long |
getReducesTotal()
Get Reduce总数
|
Long |
getRunningContainers()
Get 运行的Containers数
|
Long |
getStartedTime()
Get 开始时间毫秒
|
String |
getState()
Get 状态
|
Long |
getSuccessfulMapAttempts()
Get 成功的Map执行次数
|
Long |
getSuccessfulReduceAttempts()
Get 成功的Reduce执行次数
|
Long |
getTotalLaunchedMaps()
Get 启动Map的总数
|
Long |
getTotalLaunchedReduces()
Get 启动Reduce的总数
|
String |
getUser()
Get 用户
|
Long |
getVCoreMillisMaps()
Get Map使用的VCore毫秒
|
Long |
getVCoreMillisReduces()
Get Reduce使用的VCore毫秒
|
Long |
getVCoreSeconds()
Get VCores*时间秒
|
void |
setAllocatedMB(Long AllocatedMB)
Set 申请内存MB
|
void |
setAllocatedVCores(Long AllocatedVCores)
Set 申请VCores
|
void |
setApplicationType(String ApplicationType)
Set 应用类型
|
void |
setAvgMapTime(Long AvgMapTime)
Set 平均Map时间
|
void |
setAvgMergeTime(Long AvgMergeTime)
Set 平均Merge时间毫秒
|
void |
setAvgReduceTime(Long AvgReduceTime)
Set 平均Reduce时间
|
void |
setAvgShuffleTime(Long AvgShuffleTime)
Set 平均Shuffle时间毫秒
|
void |
setClusterUsagePercentage(Float ClusterUsagePercentage)
Set 集群资源占比
|
void |
setElapsedTime(String ElapsedTime)
Set 运行时间
|
void |
setFailedMapAttempts(Long FailedMapAttempts)
Set 失败的Map执行次数
|
void |
setFailedReduceAttempts(Long FailedReduceAttempts)
Set 失败的Reduce执行次数
|
void |
setFinalStatus(String FinalStatus)
Set 最终状态
|
void |
setFinishedTime(Long FinishedTime)
Set 结束时间毫秒
|
void |
setGcTimeMillis(Long GcTimeMillis)
Set GC毫秒
|
void |
setHDFSBytesRead(Long HDFSBytesRead)
Set HDFS读取字节数
|
void |
setHDFSBytesWritten(Long HDFSBytesWritten)
Set HDFS写入字节数
|
void |
setId(String Id)
Set 应用ID
|
void |
setKilledMapAttempts(Long KilledMapAttempts)
Set Kill的Map执行次数
|
void |
setKilledReduceAttempts(Long KilledReduceAttempts)
Set Kill的Reduce执行次数
|
void |
setMapInputRecords(Long MapInputRecords)
Set Map输入记录数
|
void |
setMapOutputRecords(Long MapOutputRecords)
Set Map输出记录数
|
void |
setMapsCompleted(Long MapsCompleted)
Set 完成的Map数
|
void |
setMapsTotal(Long MapsTotal)
Set Map总数
|
void |
setMbMillisMaps(Long MbMillisMaps)
Set Map使用的内存毫秒
|
void |
setMbMillisReduces(Long MbMillisReduces)
Set Reduce使用的内存毫秒
|
void |
setMemorySeconds(Long MemorySeconds)
Set 内存MB*时间秒
|
void |
setName(String Name)
Set 应用名
|
void |
setNumAMContainerPreempted(Long NumAMContainerPreempted)
Set AM预占用的容器数量
|
void |
setNumNonAMContainerPreempted(Long NumNonAMContainerPreempted)
Set 预占的非应用程序主节点容器数量
|
void |
setPreemptedResourceMB(Long PreemptedResourceMB)
Set 预占用的内存
|
void |
setPreemptedResourceVCores(Long PreemptedResourceVCores)
Set 预占用的VCore
|
void |
setProgress(Long Progress)
Set 进度
|
void |
setQueue(String Queue)
Set 队列
|
void |
setQueueUsagePercentage(Float QueueUsagePercentage)
Set 队列资源占比
|
void |
setReduceInputRecords(Long ReduceInputRecords)
Set Reduce输入记录数
|
void |
setReduceOutputRecords(Long ReduceOutputRecords)
Set Reduce输出记录数
|
void |
setReducesCompleted(Long ReducesCompleted)
Set 完成的Reduce数
|
void |
setReducesTotal(Long ReducesTotal)
Set Reduce总数
|
void |
setRunningContainers(Long RunningContainers)
Set 运行的Containers数
|
void |
setStartedTime(Long StartedTime)
Set 开始时间毫秒
|
void |
setState(String State)
Set 状态
|
void |
setSuccessfulMapAttempts(Long SuccessfulMapAttempts)
Set 成功的Map执行次数
|
void |
setSuccessfulReduceAttempts(Long SuccessfulReduceAttempts)
Set 成功的Reduce执行次数
|
void |
setTotalLaunchedMaps(Long TotalLaunchedMaps)
Set 启动Map的总数
|
void |
setTotalLaunchedReduces(Long TotalLaunchedReduces)
Set 启动Reduce的总数
|
void |
setUser(String User)
Set 用户
|
void |
setVCoreMillisMaps(Long VCoreMillisMaps)
Set Map使用的VCore毫秒
|
void |
setVCoreMillisReduces(Long VCoreMillisReduces)
Set Reduce使用的VCore毫秒
|
void |
setVCoreSeconds(Long VCoreSeconds)
Set VCores*时间秒
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public YarnApplication()
public YarnApplication(YarnApplication source)
public String getId()
public void setId(String Id)
Id
- 应用IDpublic String getUser()
public void setUser(String User)
User
- 用户public String getName()
public void setName(String Name)
Name
- 应用名public String getQueue()
public void setQueue(String Queue)
Queue
- 队列public String getApplicationType()
public void setApplicationType(String ApplicationType)
ApplicationType
- 应用类型public String getElapsedTime()
public void setElapsedTime(String ElapsedTime)
ElapsedTime
- 运行时间public String getState()
public void setState(String State)
State
- 状态public String getFinalStatus()
public void setFinalStatus(String FinalStatus)
FinalStatus
- 最终状态public Long getProgress()
public void setProgress(Long Progress)
Progress
- 进度public Long getStartedTime()
public void setStartedTime(Long StartedTime)
StartedTime
- 开始时间毫秒public Long getFinishedTime()
public void setFinishedTime(Long FinishedTime)
FinishedTime
- 结束时间毫秒public Long getAllocatedMB()
public void setAllocatedMB(Long AllocatedMB)
AllocatedMB
- 申请内存MBpublic Long getAllocatedVCores()
public void setAllocatedVCores(Long AllocatedVCores)
AllocatedVCores
- 申请VCorespublic Long getRunningContainers()
public void setRunningContainers(Long RunningContainers)
RunningContainers
- 运行的Containers数public Long getMemorySeconds()
public void setMemorySeconds(Long MemorySeconds)
MemorySeconds
- 内存MB*时间秒public Long getVCoreSeconds()
public void setVCoreSeconds(Long VCoreSeconds)
VCoreSeconds
- VCores*时间秒public Float getQueueUsagePercentage()
public void setQueueUsagePercentage(Float QueueUsagePercentage)
QueueUsagePercentage
- 队列资源占比public Float getClusterUsagePercentage()
public void setClusterUsagePercentage(Float ClusterUsagePercentage)
ClusterUsagePercentage
- 集群资源占比public Long getPreemptedResourceMB()
public void setPreemptedResourceMB(Long PreemptedResourceMB)
PreemptedResourceMB
- 预占用的内存public Long getPreemptedResourceVCores()
public void setPreemptedResourceVCores(Long PreemptedResourceVCores)
PreemptedResourceVCores
- 预占用的VCorepublic Long getNumNonAMContainerPreempted()
public void setNumNonAMContainerPreempted(Long NumNonAMContainerPreempted)
NumNonAMContainerPreempted
- 预占的非应用程序主节点容器数量public Long getNumAMContainerPreempted()
public void setNumAMContainerPreempted(Long NumAMContainerPreempted)
NumAMContainerPreempted
- AM预占用的容器数量public Long getMapsTotal()
public void setMapsTotal(Long MapsTotal)
MapsTotal
- Map总数public Long getMapsCompleted()
public void setMapsCompleted(Long MapsCompleted)
MapsCompleted
- 完成的Map数public Long getReducesTotal()
public void setReducesTotal(Long ReducesTotal)
ReducesTotal
- Reduce总数public Long getReducesCompleted()
public void setReducesCompleted(Long ReducesCompleted)
ReducesCompleted
- 完成的Reduce数public Long getAvgMapTime()
public void setAvgMapTime(Long AvgMapTime)
AvgMapTime
- 平均Map时间public Long getAvgReduceTime()
public void setAvgReduceTime(Long AvgReduceTime)
AvgReduceTime
- 平均Reduce时间public Long getAvgShuffleTime()
public void setAvgShuffleTime(Long AvgShuffleTime)
AvgShuffleTime
- 平均Shuffle时间毫秒public Long getAvgMergeTime()
public void setAvgMergeTime(Long AvgMergeTime)
AvgMergeTime
- 平均Merge时间毫秒public Long getFailedReduceAttempts()
public void setFailedReduceAttempts(Long FailedReduceAttempts)
FailedReduceAttempts
- 失败的Reduce执行次数public Long getKilledReduceAttempts()
public void setKilledReduceAttempts(Long KilledReduceAttempts)
KilledReduceAttempts
- Kill的Reduce执行次数public Long getSuccessfulReduceAttempts()
public void setSuccessfulReduceAttempts(Long SuccessfulReduceAttempts)
SuccessfulReduceAttempts
- 成功的Reduce执行次数public Long getFailedMapAttempts()
public void setFailedMapAttempts(Long FailedMapAttempts)
FailedMapAttempts
- 失败的Map执行次数public Long getKilledMapAttempts()
public void setKilledMapAttempts(Long KilledMapAttempts)
KilledMapAttempts
- Kill的Map执行次数public Long getSuccessfulMapAttempts()
public void setSuccessfulMapAttempts(Long SuccessfulMapAttempts)
SuccessfulMapAttempts
- 成功的Map执行次数public Long getGcTimeMillis()
public void setGcTimeMillis(Long GcTimeMillis)
GcTimeMillis
- GC毫秒public Long getVCoreMillisMaps()
public void setVCoreMillisMaps(Long VCoreMillisMaps)
VCoreMillisMaps
- Map使用的VCore毫秒public Long getMbMillisMaps()
public void setMbMillisMaps(Long MbMillisMaps)
MbMillisMaps
- Map使用的内存毫秒public Long getVCoreMillisReduces()
public void setVCoreMillisReduces(Long VCoreMillisReduces)
VCoreMillisReduces
- Reduce使用的VCore毫秒public Long getMbMillisReduces()
public void setMbMillisReduces(Long MbMillisReduces)
MbMillisReduces
- Reduce使用的内存毫秒public Long getTotalLaunchedMaps()
public void setTotalLaunchedMaps(Long TotalLaunchedMaps)
TotalLaunchedMaps
- 启动Map的总数public Long getTotalLaunchedReduces()
public void setTotalLaunchedReduces(Long TotalLaunchedReduces)
TotalLaunchedReduces
- 启动Reduce的总数public Long getMapInputRecords()
public void setMapInputRecords(Long MapInputRecords)
MapInputRecords
- Map输入记录数public Long getMapOutputRecords()
public void setMapOutputRecords(Long MapOutputRecords)
MapOutputRecords
- Map输出记录数public Long getReduceInputRecords()
public void setReduceInputRecords(Long ReduceInputRecords)
ReduceInputRecords
- Reduce输入记录数public Long getReduceOutputRecords()
public void setReduceOutputRecords(Long ReduceOutputRecords)
ReduceOutputRecords
- Reduce输出记录数public Long getHDFSBytesWritten()
public void setHDFSBytesWritten(Long HDFSBytesWritten)
HDFSBytesWritten
- HDFS写入字节数public Long getHDFSBytesRead()
public void setHDFSBytesRead(Long HDFSBytesRead)
HDFSBytesRead
- HDFS读取字节数Copyright © 2025. All rights reserved.