You can call this operation to view the tasks that have been executed on a specified host.

Request parameters

Name Type Required Example Description
ClusterId String Yes C-F32FB31D82954C64 The ID of the cluster.
HostId String Yes 11 The ID of the host.
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.
Status String No SUCCESS The execution 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.
ClusterOperationHostTaskList The list of tasks that have been executed on the host.
TaskId String 111 The ID of the task.
TaskName String START_SparkHistory_ON_emr-header-1 The name of the task.
Status String SUCCESS The execution status.
Percentage String 100 The percentage complete for the task.

Examples

  • Sample requests
    /? ClusterId=C-F32FB31D82954C64
    &HostId=11
    &OperationId=11
    &RegionId=cn-hangzhou
    &AccessKeyId=111
    &PageNumber=1 
    &PageSize=100
    &Status=SUCCESS
    &<Common request parameters>
  • Successful response examples
    JSON format
    {
    	"ClusterOperationHostTaskList":{
    		"ClusterOperationHostTask":[
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628214",
    				"TaskName":"START_SparkHistory_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628213",
    				"TaskName":"START_DoctorScheduler_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628212",
    				"TaskName":"START_MySQL_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628211",
    				"TaskName":"START_HiveMetaStore_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628210",
    				"TaskName":"START_NameNode_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628209",
    				"TaskName":"START_Ilogtaild_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628206",
    				"TaskName":"START_HiveServer_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628205",
    				"TaskName":"START_GmetricCollector_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628202",
    				"TaskName":"START_SecondaryNameNode_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628201",
    				"TaskName":"START_KNOX_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628200",
    				"TaskName":"START_FlowAgentDaemon_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628197",
    				"TaskName":"START_Hue_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628196",
    				"TaskName":"START_HTTPD_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628195",
    				"TaskName":"START_HAProxy_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628194",
    				"TaskName":"START_GMETAD_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628193",
    				"TaskName":"START_TimeLineServer_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628192",
    				"TaskName":"START_PrestoMaster_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628191",
    				"TaskName":"START_WebAppProxyServer_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628190",
    				"TaskName":"START_EcmAgentDataWatcher_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628187",
    				"TaskName":"START_MetaCommand_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628186",
    				"TaskName":"START_ApacheDS_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628185",
    				"TaskName":"START_TezInit_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628180",
    				"TaskName":"START_MachineHealthMonitor_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628177",
    				"TaskName":"START_GMOND_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628174",
    				"TaskName":"START_SparkThriftServer_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628173",
    				"TaskName":"START_JobHistory_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628172",
    				"TaskName":"START_Tomcat_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628171",
    				"TaskName":"START_OpsCommand_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628168",
    				"TaskName":"START_ResourceManager_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628167",
    				"TaskName":"INSTALL_SparkHistory_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628166",
    				"TaskName":"INSTALL_DoctorScheduler_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628165",
    				"TaskName":"INSTALL_MySQL_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628164",
    				"TaskName":"INSTALL_KMS_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628163",
    				"TaskName":"INSTALL_GANGLIAInit_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628160",
    				"TaskName":"INSTALL_HIVEInit_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628157",
    				"TaskName":"INSTALL_HiveMetaStore_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628156",
    				"TaskName":"INSTALL_NameNode_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628155",
    				"TaskName":"INSTALL_Ilogtaild_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628152",
    				"TaskName":"INSTALL_SparkInit_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628149",
    				"TaskName":"INSTALL_HiveServer_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628148",
    				"TaskName":"INSTALL_GmetricCollector_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628145",
    				"TaskName":"INSTALL_SecondaryNameNode_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628144",
    				"TaskName":"INSTALL_KNOX_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628143",
    				"TaskName":"INSTALL_FlowAgentDaemon_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628140",
    				"TaskName":"INSTALL_Hue_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628139",
    				"TaskName":"INSTALL_PrestoInit_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628136",
    				"TaskName":"INSTALL_HTTPD_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628135",
    				"TaskName":"INSTALL_HAProxy_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628134",
    				"TaskName":"INSTALL_GMETAD_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628133",
    				"TaskName":"INSTALL_TimeLineServer_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628132",
    				"TaskName":"INSTALL_HttpFS_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628131",
    				"TaskName":"INSTALL_PrestoMaster_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628130",
    				"TaskName":"INSTALL_WebAppProxyServer_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628129",
    				"TaskName":"INSTALL_SqoopInit_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628126",
    				"TaskName":"INSTALL_PigInit_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628123",
    				"TaskName":"INSTALL_EcmAgentDataWatcher_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628120",
    				"TaskName":"INSTALL_MetaCommand_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628119",
    				"TaskName":"INSTALL_ApacheDS_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628118",
    				"TaskName":"INSTALL_TezInit_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628113",
    				"TaskName":"INSTALL_MachineHealthMonitor_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628110",
    				"TaskName":"INSTALL_GMOND_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628107",
    				"TaskName":"INSTALL_SparkThriftServer_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628106",
    				"TaskName":"INSTALL_HDFSInit_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628103",
    				"TaskName":"INSTALL_JobHistory_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628102",
    				"TaskName":"INSTALL_YarnInit_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628099",
    				"TaskName":"INSTALL_FlowAgentInit_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628096",
    				"TaskName":"INSTALL_Tomcat_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628095",
    				"TaskName":"INSTALL_OpsCommand_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628092",
    				"TaskName":"INSTALL_ResourceManager_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628089",
    				"TaskName":"BINDING_HOST_HOST_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628088",
    				"TaskName":"MNT_DISK_HOST_ON_emr-header-1"
    			},
    			{
    				"Percentage":"",
    				"Status":"COMPLETED",
    				"TaskId":"4628085",
    				"TaskName":"BUILD_SSH_TUNNEL_HOST_ON_emr-header-1"
    			}
    		]
    	},
    	"PageNumber":1,
    	"PageSize":500,
    	"RequestId":"69E38B7E-1A85-44C1-BEC4-1704F23BB2C7",
    	"TotalCount":72
    }
  • 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.