SHOW-ROUTINE-LOAD-TASK

Name

SHOW ROUTINE LOAD TASK

Description

View the currently running subtasks of a specified Routine Load job.

  1. SHOW ROUTINE LOAD TASK
  2. WHERE JobName = "job_name";

The returned results are as follows:

  1. TaskId: d67ce537f1be4b86-abf47530b79ab8e6
  2. TxnId: 4
  3. TxnStatus: UNKNOWN
  4. JobId: 10280
  5. CreateTime: 2020-12-12 20:29:48
  6. ExecuteStartTime: 2020-12-12 20:29:48
  7. Timeout: 20
  8. BeId: 10002
  9. DataSourceProperties: {"0":19}
  • TaskId: The unique ID of the subtask.
  • TxnId: The import transaction ID corresponding to the subtask.
  • TxnStatus: The import transaction status corresponding to the subtask. Usually UNKNOWN. No real meaning.
  • JobId: The job ID corresponding to the subtask.
  • CreateTime: The creation time of the subtask.
  • ExecuteStartTime: The time when the subtask is scheduled to be executed, usually later than the creation time.
  • Timeout: Subtask timeout, usually twice the MaxIntervalS set by the job.
  • BeId: The ID of the BE node executing this subtask.
  • DataSourceProperties: The starting offset of the Kafka Partition that the subtask is ready to consume. is a Json format string. Key is Partition Id. Value is the starting offset of consumption.

Example

  1. Display the subtask information of the routine import task named test1.

    1. SHOW ROUTINE LOAD TASK WHERE JobName = "test1";

Keywords

  1. SHOW, ROUTINE, LOAD, TASK

Best Practice

With this command, you can view how many subtasks are currently running in a Routine Load job, and which BE node is running on.