You can call this operation to view the hosts that have run.

Request parameters

Name Type Required Example Descriptim
ClusterId String Yes C-EBD62A703A430E23 The ID of the cluster.
OperationId String Yes 111 The ID of the operation.
RegionId String Yes cn-hangzhou The region location ID.
PageNumber Integer No 1 The page number to query.
PageSize Integer No 100 The number of records to show on each page.
ServiceName String No YARN The name of the service.
Status String No SUCCESS The status.
AccessKeyId String No xxx The AccessKey ID.

Response parameters

Name Type Example Description
RequestId String DF202AC2-5D5D-4288-B608-B7B1595B5C7C The ID of the request.
TotalCount Integer 1 The total number of records.
PageNumber Integer 1 The current page number.
PageSize Integer 100 The number of records that are shown on each page.
ClusterOperationHostList The list of hosts corresponding to the operations.
HostId String 111 The ID of the host.
HostName String emr-worker-1 The name of the host.
Status String SUCCESS The execution status.
Percentage String 100 The percentage complete for the task.

Examples

  • Sample requests
    /? ClusterId=DF202AC2-5D5D-4288-B608-B7B1595B5C7C
    &OperationId=111
    &RegionId=cn-hangzhou 
    &AccessKeyId=111
    &PageNumber=1
    &PageSize=100
    &Status=SUCCESS
    &<Common request parameters>
  • Successful response examples
    JSON format
    {
    	"ClusterOperationHostList":{
    		"ClusterOperationHost":[
    			{
    				"HostId":"124903",
    				"HostName":"emr-header-1",
    				"Percentage":"100",
    				"Status":"SUCCESS"
    			},
    			{
    				"HostId":"124902",
    				"HostName":"emr-worker-1",
    				"Percentage":"100",
    				"Status":"SUCCESS"
    			},
    			{
    				"HostId":"124901",
    				"HostName":"emr-worker-2",
    				"Percentage":"100",
    				"Status":"SUCCESS"
    			}
    		]
    	},
    	"PageNumber":1,
    	"PageSize":500,
    	"RequestId":"12B58AF8-40E0-42E9-B6E5-1F4201AFB4F8",
    	"TotalCount":3
    }
  • Error response examples
    JSON format
    {
    	"code":"RAM.Permission.NotAllow",
    	"message":"It is not allow to execute this operation,please use RAM to authorize!",
    	"requestId":"9AEDC439-1F63-491D-B8C6-9737C372BF3A",
    	"successResponse":false
    }

Error codes

View error codes.