feature(yarn-query,web): 新增 yarn 多集群查询

可以联合或单独查询 yarn 集群,并且聚合过滤排序等数据筛选内容
This commit is contained in:
2023-05-05 11:52:09 +08:00
parent 49a77a3795
commit 027fa10d50
24 changed files with 348 additions and 269 deletions

View File

@@ -7,6 +7,7 @@ package com.lanyuanxiaoyao.service.configuration.entity.yarn;
* @date 2023-04-19
*/
public final class YarnApplication {
private String cluster;
private String id;
private String user;
private String queue;
@@ -27,6 +28,15 @@ public final class YarnApplication {
private Float queueUsagePercentage;
private Float clusterUsagePercentage;
public String getCluster() {
return cluster;
}
public YarnApplication setCluster(String cluster) {
this.cluster = cluster;
return this;
}
public String getId() {
return id;
}
@@ -106,7 +116,8 @@ public final class YarnApplication {
@Override
public String toString() {
return "YarnApplication{" +
"id='" + id + '\'' +
"cluster='" + cluster + '\'' +
", id='" + id + '\'' +
", user='" + user + '\'' +
", queue='" + queue + '\'' +
", name='" + name + '\'' +

View File

@@ -7,6 +7,7 @@ package com.lanyuanxiaoyao.service.configuration.entity.yarn;
* @date 2023-04-22
*/
public final class YarnQueue {
private String cluster;
private String queueName;
private String state;
private String type;
@@ -38,6 +39,15 @@ public final class YarnQueue {
private ResourcesUsed usedAMResource;
private ResourcesUsed userAMResourceLimit;
public String getCluster() {
return cluster;
}
public YarnQueue setCluster(String cluster) {
this.cluster = cluster;
return this;
}
public String getQueueName() {
return queueName;
}
@@ -161,7 +171,8 @@ public final class YarnQueue {
@Override
public String toString() {
return "YarnQueue{" +
"queueName='" + queueName + '\'' +
"cluster='" + cluster + '\'' +
", queueName='" + queueName + '\'' +
", state='" + state + '\'' +
", type='" + type + '\'' +
", capacity=" + capacity +
@@ -180,11 +191,11 @@ public final class YarnQueue {
", maximumAllocation=" + maximumAllocation +
", queuePriority=" + queuePriority +
", orderingPolicyInfo='" + orderingPolicyInfo + '\'' +
", maxApplications=" + maxApplications +
", maxApplicationsPerUser=" + maxApplicationsPerUser +
", numActiveApplications=" + numActiveApplications +
", numPendingApplications=" + numPendingApplications +
", numContainers=" + numContainers +
", maxApplications=" + maxApplications +
", maxApplicationsPerUser=" + maxApplicationsPerUser +
", userLimit=" + userLimit +
", userLimitFactor=" + userLimitFactor +
", configuredMaxAMResourceLimit=" + configuredMaxAMResourceLimit +

View File

@@ -7,12 +7,22 @@ package com.lanyuanxiaoyao.service.configuration.entity.yarn;
* @date 2023-04-22
*/
public final class YarnRootQueue {
private String cluster;
private String queueName;
private String type;
private Float capacity;
private Float usedCapacity;
private Float maxCapacity;
public String getCluster() {
return cluster;
}
public YarnRootQueue setCluster(String cluster) {
this.cluster = cluster;
return this;
}
public String getQueueName() {
return queueName;
}
@@ -36,7 +46,8 @@ public final class YarnRootQueue {
@Override
public String toString() {
return "YarnRootQueue{" +
"queueName='" + queueName + '\'' +
"cluster='" + cluster + '\'' +
", queueName='" + queueName + '\'' +
", type='" + type + '\'' +
", capacity=" + capacity +
", usedCapacity=" + usedCapacity +