Skip to main content

SHOW ROUTINE LOAD

Description​

This statement is used to display the running status of Routine Load jobs. You can view the status information of either a specific job or all jobs.

Syntax​

SHOW [ALL] ROUTINE LOAD [FOR <jobName>];

Optional Parameters​

1. [ALL]

Optional parameter. If specified, all jobs (including stopped or cancelled jobs) will be displayed. Otherwise, only currently running jobs will be shown.

2. [FOR <jobName>]

Optional parameter. Specifies the job name to view. If not specified, all jobs under the current database will be displayed.

Supports the following formats:

  • <job_name>: Shows the job with the specified name in the current database
  • <db_name>.<job_name>: Shows the job with the specified name in the specified database

Return Results​

Field NameDescription
IdJob ID
NameJob name
CreateTimeJob creation time
PauseTimeMost recent job pause time
EndTimeJob end time
DbNameCorresponding database name
TableNameCorresponding table name (shows 'multi-table' for multiple tables)
IsMultiTblWhether it's a multi-table job
StateJob running status
DataSourceTypeData source type: KAFKA
CurrentTaskNumCurrent number of subtasks
JobPropertiesJob configuration details
DataSourcePropertiesData source configuration details
CustomPropertiesCustom configurations
StatisticJob running statistics
ProgressJob running progress
LagJob delay status
ReasonOfStateChangedReason for job state change
ErrorLogUrlsURLs to view filtered data that failed quality checks
OtherMsgOther error messages

Access Control Requirements​

Users executing this SQL command must have at least the following permission:

PrivilegeObjectNotes
LOAD_PRIVTableSHOW ROUTINE LOAD requires LOAD permission on the table

Notes​

  • State descriptions:

    • NEED_SCHEDULE: Job is waiting to be scheduled
    • RUNNING: Job is running
    • PAUSED: Job is paused
    • STOPPED: Job has ended
    • CANCELLED: Job has been cancelled
  • Progress description:

    • For Kafka data source, shows the consumed offset for each partition
    • For example, {"0":"2"} means the consumption progress of Kafka partition 0 is 2
  • Lag description:

    • For Kafka data source, shows the consumption delay for each partition
    • For example, {"0":10} means the consumption lag of Kafka partition 0 is 10

Examples​

  • Show all routine load jobs (including stopped or cancelled ones) named test1

    SHOW ALL ROUTINE LOAD FOR test1;
  • Show currently running routine load jobs named test1

    SHOW ROUTINE LOAD FOR test1;
  • Show all routine load jobs (including stopped or cancelled ones) in example_db. Results can be one or multiple rows.

    use example_db;
    SHOW ALL ROUTINE LOAD;
  • Show all currently running routine load jobs in example_db

    use example_db;
    SHOW ROUTINE LOAD;
  • Show currently running routine load job named test1 in example_db

    SHOW ROUTINE LOAD FOR example_db.test1;
  • Show all routine load jobs (including stopped or cancelled ones) named test1 in example_db. Results can be one or multiple rows.

    SHOW ALL ROUTINE LOAD FOR example_db.test1;