public class ConfigSetInfo extends AbstractModel
header, skipSign
Constructor and Description |
---|
ConfigSetInfo() |
ConfigSetInfo(ConfigSetInfo 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 |
---|---|
Item[] |
getBasicParams()
Get Set parameters related to the configuration set.
|
String |
getConfigSet()
Get Configuration set name.
|
ItemSeq[] |
getLabelParams()
Get The capacity scheduler will use it, where tag-related configuration is set.
|
void |
setBasicParams(Item[] BasicParams)
Set Set parameters related to the configuration set.
|
void |
setConfigSet(String ConfigSet)
Set Configuration set name.
|
void |
setLabelParams(ItemSeq[] LabelParams)
Set The capacity scheduler will use it, where tag-related configuration is set.
|
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 ConfigSetInfo()
public ConfigSetInfo(ConfigSetInfo source)
public String getConfigSet()
public void setConfigSet(String ConfigSet)
ConfigSet
- Configuration set name.public ItemSeq[] getLabelParams()
public void setLabelParams(ItemSeq[] LabelParams)
LabelParams
- The capacity scheduler will use it, where tag-related configuration is set. The key values are consistent with the fields returned by **DescribeYarnQueue**.
The key values are as follows:
- labelName: Tag name, that is, tags in tag management.
- capacity: Capacity. The value is a **numeric string**.
- maximum-capacity: Maximum capacity. The value is a **numeric string**.
Note: This field may return null, indicating that no valid values can be obtained.public Item[] getBasicParams()
public void setBasicParams(Item[] BasicParams)
BasicParams
- Set parameters related to the configuration set. The key values are consistent with the fields returned by **DescribeYarnQueue**.
###### Fair scheduler.
The key values are as follows:
- minResources: Minimum resource amount. The value is a **JSON string of the YarnResource type** or **null**.
- maxResources: Maximum resource amount. The value is a **JSON string of the YarnResource type** or **null**.
- maxChildResources: Maximum resource amount for undeclared subqueues. The value is a **numeric string** or **null**.
- maxRunningApps: Maximum number of apps that can run concurrently. The value is a **numeric string** or **null**.
- weight: weight. The value is a **numeric string** or **null**.
- maxAMShare: Maximum App Master share. The value is a **numeric string** or **null**, where the number range is [0,1] or -1.
```
type YarnResource struct {
Vcores *int `json:"vcores"`
Memory *int `json:"memory"`
Type *string `json:"type"` // The value can be percent or null. When the value is percent, it indicates the percentage used; otherwise, the absolute value used is indicated. The value can be percent only for maxResources and maxChildResources.
}
```
###### Capacity scheduler.
The key values are as follows:
- minimum-user-limit-percent: Minimum user capacity. The value is a **JSON string of the YarnResource type** or **null**, where the number range is [0,100].
- user-limit-factor: User resource factor. The value is a **JSON string of the YarnResource type** or **null**.
- maximum-applications: Maximum number of applications, that is, Max-Applications. The value is a **numeric string** or **null**, where the numbers must be positive integers.
- maximum-am-resource-percent: maximum AM percent. The value is a **numeric string** or **null**, where the number range is [0,1] or -1.
- default-application-priority: Resource pool priority. The value is a **numeric string** or **null**, where the numbers must be positive integers.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2025. All rights reserved.