El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

SQL Job Management

Updated on 2022-07-04 GMT+08:00

SQL jobs allow you to execute SQL statements entered in the SQL job editing window, import data, and export data.

SQL job management provides the following functions:

In addition, you can click Quick Links to switch to the details on User Guide.

Job Management page

On the Overview page, click SQL Jobs to go to the SQL job management page. Alternatively, you can click Job Management > SQL Jobs. The job list displays all SQL jobs. If there are a large number of jobs, they will be displayed on multiple pages. You can switch to the specified page as required. DLI allows you to view jobs in all statuses. By default, jobs in the job list are displayed in descending order according to the job creation time, with the most recently created jobs displayed at the top.

Table 1 Job management parameters

Parameter

Description

Queue

Name of the queue to which a job belongs

Created

Time when a job is created. Jobs can be displayed in ascending or descending order of the job creation time.

Job Type

Job type. The following values are available:

  • IMPORT: Indicates a job used for importing data to DLI.
  • EXPORT: Indicates a job used for exporting data from DLI.
  • DCL: Involves conventional DCLs and operations related to queue permissions.
  • DDL: Is consistent with conventional DDL operations, including creating and deleting databases and tables.
  • QUERY: Indicates a job used for querying data by running SQL statements.
  • INSERT: Indicates a job used for inserting data by running SQL statements.
  • UPDATE: Updates data.
  • DELETE: Deletes a SQL job.
  • DATA_MIGRATION: Indicates cloud data migration.
  • RESTART_QUEUE: Restarts a queue.
  • SCALE_QUEUE: Indicates that the queue specifications are changed (capacity expansion or reduction).

Status

Job status. The following values are available:

  • Running
  • Scaling
  • Submitting
  • Canceled
  • Finished
  • Failed

Statement

Displays the SQL statements for a job as well as descriptions about export and table creation operations.

You can click to copy the corresponding statement.

Duration

Running duration of a job

Operation

  • Cancel
    • You can terminate a job only when the job is in Submitting or Running status.
    • A job whose status is Finished, Failed, or Canceled cannot be terminated.
    • If the Cancel button is gray, you are not allowed to perform this operation.
  • SparkUI: After you click this button, the Spark job execution page is displayed.
  • In addition to the preceding operations, the following operation is available for QUERY jobs and asynchronous DDL jobs.
    • View Result: View the job running result.
    • Export Result: Export the job running result to the created OBS bucket. For details, see section Exporting Query Results.
  • In addition to the preceding operations, the EXPORT job also includes the following operations:
    • Download
  • Archive Log: Save job logs to the temporary OBS bucket created by DLI.
  • Export Log: Export logs to the created OBS bucket. If the job is in the Running state, logs cannot be exported.
    NOTE:

    You have the permission to create OBS buckets.

Searching for a Job

On the SQL Jobs page, you can filter jobs by using the following methods.

  • Select a queue name.
  • Set the date range.
  • Enter the statement or job ID.
  • Select the creation time in ascending or descending order.
  • Select a job type.
  • Select a job status
  • Select the job execution duration in ascending or descending order.

Viewing Job Details

On the SQL Jobs page, you can click in front of a job record to view details about the job.

Job details vary with job types. The following describes how to load data, create table, and select job.

  • load data (job type: IMPORT) includes the following information: Queue name, job ID, creation time, job type, job status, execution statement, running duration, scanned data, execution user, number of results, number of scanned data records, number of error records, database name, table name, file format, table header, and quoted characters, separator, data source path, escape character, import start time, import end time, date format, and timestamp format.
  • create table (job type: DDL) includes the following information: Queue name, job ID, creation time, job type, job status, execution statement, running duration, scanned data, and execution user.
  • select (job type: QUERY) includes the following information: Queue name, job ID, creation time, job type, job status, execution statement, running duration, number of results (successful and exported results), scanned data, execution user, and result status (running successfully, viewing results, running failure, and failure cause).

Terminating a Job

On the SQL Jobs page, you can click Terminate in the Operation column to stop a submitting or running job.

Exporting Query Results

You can export results on the SQL Jobs page or the SQL Editor page.

  • On the Job Management > SQL Jobs page, you can click More < Export Result in the Operation column to export the query result.
  • After the query statement is successfully executed on the SQL Editor page, click Export Result on the right of the View Result tab page to export the query result.
NOTE:

If no column of the numeric type is displayed in the query result, the result cannot be exported.

Table 2 Parameters

Parameter

Description

File Format

Format of the exported query result file. Formats other than JSON will be supported in later versions.

Queue

Select a queue.

Compression Format

Compression format of the data to be exported. The following options are supported:

  • none
  • bzip2
  • deflate
  • gzip

Storage Path

Enter or select an OBS path to store the result.

NOTE:
  • After selecting an OBS bucket, enter a name for the folder. If the folder does not exist, it will be created in OBS.
  • The folder name cannot contain the special characters of \ / : * ? "< > |, and cannot start or end with a dot (.).

Export Mode

Mode for saving the exported query result data.

  • New OBS directory: If the specified export directory exists, an error is reported and the export operation cannot be performed.
  • Existing OBS directory (Overwritten): If you create a file in the specified directory, the existing file will be overwritten.

Number of Results

Number of exported query results. If no value is entered or the value is 0, all results are exported.

Advanced Settings

Table Header: No/Yes

Whether the data to be exported contains table headers. This parameter is invalid only when Export Format is set to json. Formats other than JSON will be supported in later versions.

Click Advanced Settings and select the check box next to Table Header: No. If the check box is not selected, the table header is displayed. If the check box is deselected, no table header is displayed.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback