This chapter walks you through on how to develop a DLI job.
For more information on the specific permissions included in the agency, refer to Configuring DLI Agency Permissions.
Alternatively, you can enhance DLI's computing environment by creating custom images. Specifically, to enhance the functions and performance of Spark and Flink jobs, you can create custom images by downloading the base images provided by DLI and adding dependencies (files, JAR files, or software) and private capabilities required for job execution. This changes the container runtime environment for the jobs.
For example, you can add a Python package or C library related to machine learning to a custom image to help you extend functions. For how to create a custom image, see Enhancing the Job Runtime Environment Using a Custom Image.
Flink allows for dynamic data types, enabling the definition of data structures at runtime without the need for predefined metadata.
The prerequisites for cross-source access are that DLI can communicate with the data source network and DLI can obtain the access credentials to the data source.
This applies to SQL jobs and Flink 1.12 jobs. For details, see Using DLI Datasource Authentication to Manage Access Credentials for Data Sources.
This applies to Spark 3.3.1 or later and Flink 1.15 or later.
For details, see Managing Data Source Access Credentials Using DEW and Configuring an Agency to Allow DLI to Access Other Cloud Services.
Job Type | Description | Use Case |
|---|---|---|
SQL job | This type is suitable for scenarios where standard SQL statements are used for querying. It is typically used for querying and analyzing structured data. For details, see Creating and Submitting a SQL Job. | It applies to scenarios such as data warehouse query, report generation, and online analytical processing (OLAP). |
Flink job | This type is specifically designed for real-time data stream processing, making it ideal for scenarios that require low latency and quick response. It is well-suited for real-time monitoring and online analysis.
| It applies to scenarios that require quick response, such as real-time data monitoring and real-time recommender systems. Flink Jar jobs are suitable for data analysis scenarios that require custom stream processing logic, complex state management, or integration with specific libraries. |
Spark job | Compute jobs can be submitted through interactive sessions or batch processing. Jobs are submitted to queues created within an elastic resource pool, simplifying resource management and job scheduling. It supports multiple data sources and formats, providing rich data processing capabilities, including but not limited to SQL queries and machine learning. For details, see Creating a Spark Job. | It is suitable for large-scale data processing and analysis, such as machine learning training, log analysis, and large-scale data mining. |
DLI allows you to submit Flink or Spark jobs compiled as JAR files, which contain the necessary code and dependency information for executing the job. These files are used for specific data processing tasks such as data query, analysis, and machine learning. You can manage program packages required for jobs on the DLI console.
To submit a Spark Jar or Flink Jar job, you must first upload the program package to OBS, create a program package in DLI, and then submit the program package, data, and job parameters to run the job. For details, see Managing Program Packages of Jar Jobs.
For Spark 3.3.1 or later and Flink 1.15 or later, when creating a Jar job, you can directly configure the program package in OBS. Program packages cannot be read from DLI.
You can query DLI monitoring metrics and alarms through Cloud Eye management console or APIs.
For example, you can monitor the resource usage and job status of a DLI queue. For details about DLI metrics, see Monitoring DLI Using Cloud Eye.
With CTS, you can log operations related to DLI, making it easier to search, audit, and trace in the future. For the supported operations, see Using CTS to Audit DLI.