全部產品
Search
文件中心

E-MapReduce:UpdateNodeGroupAttributes

更新時間:Jun 22, 2026

更新節點組屬性。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

當前API暫無授權資訊透出。

請求參數

名稱

類型

必填

描述

樣本值

RegionId

string

區域 ID。

cn-hangzhou

ClusterId

string

叢集 ID。

c-b933c5aac8fe****

NodeGroupId

string

節點組 ID。

ng-869471354ecd****

NodeGroupName

string

節點組名稱。

CORE1

Description

string

節點組描述。

emr-core-1

VSwitchId deprecated

string

虛擬交換器 ID。

vsw-hp35g7ya5ymw68mmg****

AdditionalSecurityGroupIds deprecated

array

安全群組 ID 清單。

["sg-hp3abbae8lb6lmb1****"]

string

附加安全群組 ID

sg-2ze7z8a4kxz8l0am6l09

KeyPairName deprecated

string

ECS 登入金鑰對。

test_pair

MinSize

integer

節點組最小執行個體數

0

MaxSize

integer

節點組最大執行個體數

200

EnableGracefulDecommission

boolean

開啟優雅下線。(V303 建立叢集時 task 組預設不開啟優雅下線)

true

SpotInstanceRemedy

boolean

是否開啟補齊搶佔式執行個體。開啟後,當收到搶佔式執行個體將被回收的系統訊息時,彈性伸縮群組將嘗試建立新的執行個體,替換掉將被回收的搶佔式執行個體。預設值:false

true

NodeResizeStrategy

string

節點擴容策略,支援:COST_OPTIMIZED,PRIORITY 預設值:PRIORITY

PRIORITY

CostOptimizedConfig CostOptimizedConfig

成本最佳化模式設定

SpotBidPrices

array

搶佔式 Spot 執行個體價格上限。spotStrategy:SpotWithPriceLimit 時生效

SpotBidPrice

執行個體的每小時最高出價。支援最大 3 位小數,參數 SpotStrategy=SpotWithPriceLimit 時,該參數生效。

EcsSpotStrategy

string

搶佔式執行個體策略

SpotWithPriceLimit

InstanceTypeList

array

ECS 執行個體規格清單。

null

string

執行個體類型。

ecs.g8a.16xlarge

AutoCompensateState

boolean

自動補償狀態。

false

NodeCount

integer

節點組目標值

8

AckConfig

AckConfig

Ack 叢集設定

返回參數

名稱

類型

描述

樣本值

object

傳回資料

RequestId

string

請求 ID。

DD6B1B2A-5837-5237-ABE4-FF0C8944****

樣本

正常返回樣本

JSON格式

{
  "RequestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 ConflictParameters Parameters that must not be used together. %s
400 IncompleteSignature The request signature is invalid.
400 InvalidAction The action %s requested is invalid.
400 InvalidParameter The specified parameter %s is not valid.
400 InvalidParameterValue The input parameter %s is invalid or out of range.
400 MissingAction The action %s requested is missing.
400 MissingParameter The input parameter %s that is mandatory for processing this request is not supplied.
400 NotAuthorized You do not have permission to perform this action. %s
400 ThrottlingException The request was denied due to request throttling. %s
500 InternalError The request processing has failed due to some unknown error, exception or failure.
404 ResourceNotFound The resource not found by %s.
503 ServiceFailure The request has failed due to a temporary failure of %s service.
503 ServiceUnavailable The request has failed due to a temporary failure of the server.

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情