Updated on 2024-03-06 GMT+08:00

Overview

Scenario

With DLI's Java SDKs, you can quickly and easily use DLI without worrying about the details of the requests. This section describes how to obtain and use Java SDKs.

Notes

  • To use DLI's Java SDKs to access a specific service's API, you need to ensure that the current service has been enabled and authorized on the DLI management console.
  • The Java SDKs can be used in Java JDK 1.8 or later. For details about how to configure the Java development environment, see Configuring the Java SDK Environment.
  • For details about how to obtain and install Java SDKs, see Obtaining and Installing the SDK.
  • To use SDKs to access DLI, you need to initialize the DLI client. During DLI client initialization, you can use the AK/SK or token for authentication. For details, see Initializing the DLI Client.

Java SDKs

Table 1 Java SDKs

SDK

Description

OBS Authorization

This section provides instructions on how to authorize DLI's Java SDKs to access and operate on OBS buckets.

Queue-Related SDKs

This section provides instructions on how to use DLI's Java SDKs to create queues, retrieve the default queue, query all queues, and delete queues.

Resource-Related SDKs

This section provides instructions on how to use DLI's Java SDKs to upload resource packages, query all resource packages, query specific resource packages, and delete resource packages.

SDKs Related to SQL Jobs

This section provides instructions on how to use DLI's Java SDKs for database-related operations, table-related operations, and job-related operations.

SDKs Related to Flink Jobs

This section provides instructions on how to use DLI's Java SDKs to create new Flink jobs, retrieve job details, and list jobs.

SDKs Related to Spark Jobs

This section provides instructions on how to use DLI's Java SDK to submit Spark jobs, query all Spark jobs, and delete Spark jobs.

SDKs Related to Flink Job Templates

This section provides instructions on how to use DLI's Java SDKs to create new Flink job templates, update existing Flink job templates, and delete Flink job templates.