Querying DLI Spark Jobs
Run ma-cli dli-job get-job to query the DLI Spark job list or details about a job.
ma-cli dli-job get-job -h
Usage: ma-cli dli-job get-job [OPTIONS]
Get DLI Spark details.
Example:
# Get DLI Spark job details by job name
ma-cli dli-job get-job -n ${job_name}
# Get DLI Spark job details by job id
ma-cli dli-job get-job -i ${job_id}
# Get DLI Spark job list
ma-cli dli-job get-job --page-size 5 --page-num 1
Options:
-i, --job-id TEXT Get DLI Spark job details by job id.
-n, --job-name TEXT Get DLI Spark job details by job name.
-pn, --page-num INTEGER RANGE Specify which page to query. [x>=1]
-ps, --page-size INTEGER RANGE The maximum number of results for this query. [x>=1]
-v, --verbose Show detailed information about DLI Spark job details.
-C, --config-file PATH Configure file path for authorization.
-D, --debug Debug Mode. Shows full stack trace when error occurs.
-P, --profile TEXT CLI connection profile to use. The default profile is "DEFAULT".
-H, -h, --help Show this message and exit.
|
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
|
-i / --job-id |
String |
No |
ID of a DLI Spark job used to obtain job details |
|
-n / --job-name |
String |
No |
Name of a DLI Spark job used to query the job or keywords contained in job names used to filter DLI Spark jobs |
|
-pn / --page-num |
Integer |
No |
Job index page. The default value is page 1. |
|
-ps / --page-size |
Integer |
No |
Number of jobs displayed on each page. The default value is 20. |
|
-v / --verbose |
Bool |
No |
Whether to display detailed information. This function is disabled by default. |
Example
Run the following command to query all DLI Spark jobs:
ma-cli dli-job get-job

Last Article: Overview
Next Article: Submitting a DLI Spark Job
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.