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

DLI Datasource V1 Table and Datasource V2 Table

Updated on 2025-01-09 GMT+08:00

What Are DLI Datasource V1 and V2 Tables?

  • DLI datasource V1 table (referred to as V1 table): This is a DLI-specific datasource table format. DLI's custom create/insert/truncate commands are used, and the data path of the table is $tablepath/UUID/Data file.
    Figure 1 DLI datasource v1 table
  • DLI datasource V2 table (referred to as V2 table): This is the open-source datasource table format of Spark. Spark's open-source create/insert/truncate commands are used, and the data path of the table is $tablepath/Data file.
    Figure 2 DLI datasource v2 table

Compatibility of DLI Spark Versions with V1 and V2 Tables

Table 1 Compatibility of DLI Spark versions with v1 and v2 tables

Table Type

Spark 2.3 SQL Queue

Spark 2.3 General-Purpose Queue

Spark 2.4 SQL Queue

Spark 2.4 General-Purpose Queue

Spark 3.1 SQL Queue

Spark 3.1 General-Purpose Queue

Spark 3.3 SQL Queue

Spark 3.3 General-Purpose Queue

V1 table

Partially supported

V2 table

×

×

×

×

Table 2 Syntax support list for Spark 3.3 general-purpose queues

Table Type

select

create table

create table like

CTAS

insert into

insert overwrite

load data

alter table set location

truncate table

V1 table

×

×

×

×

×

×

V2 table

How Do I Confirm If a User-Created Table is a V1 or V2 Table?

1. Use the datasource syntax to create a table:

CREATE TABLE IF NOT EXISTS table_name (id STRING) USING parquet;

2. Run show create table to check the value of the version field under TBLPROPERTIES.

If v1, it is a V1 table; if v2, it is a V2 table.

To change a V1 table to a V2 table, submit a service ticket to contact customer support.

Example Upgrade

NOTE:

Upgrading the Spark engine and modifying data tables may cause changes in the cost of billed resources if the type of compute resource changes when creating a queue.

  • If the original queue uses compute resources of the elastic resource pool type, creating a queue does not involve changes in the cost of compute resources.
  • If the original queue uses compute resources of a non-elastic resource pool type, creating a queue within an elastic resource pool will change the cost of compute resources. Refer to the price details of compute resources for specifics.
  • Example 1: Does upgrading Spark from version 2.4.x to Spark 3.3.1 affect the version of data tables when using a SQL queue?

    No, SQL queues in Spark 2.4.x support V1 and V2 tables, so upgrading Spark only requires considering the compatibility of the Spark version with SQL syntax.

  • Example 2: Does upgrading Spark from version 2.4.x to Spark 3.3.1 affect the version of data tables when using a general-purpose queue?

    General-purpose queues in Spark 2.4.x support V1 and V2 tables, but general-purpose queues in Spark 3.3.x do not support V1 tables.

    Therefore, to upgrade Spark from version 2.4.x to 3.3.1, follow these steps:

    1. Change V1 tables in Spark 2.4.x to V2 tables.
    2. Upgrade V2 tables in Spark 2.4.x to V2 tables in Spark 3.3.1.
      Consider the compatibility of Spark Jar job API syntax as well.
      Table 3 Compatibility of DLI Spark versions with v1 and v2 tables

      Table Type

      Spark 2.4 General-Purpose Queue

      Spark 3.3 General-Purpose Queue

      V1 table

      Partially supported

      V2 table

  • Example 3: How do I upgrade V1 tables in Spark 2.3.2 to V2 tables in Spark 3.3.1 using a general-purpose queue?

    General-purpose queues in Spark 2.3.2 do not support V2 tables, and general-purpose queues in Spark 3.3.1 do not support V1 tables.

    1. Upgrade V1 tables in Spark 2.3.2 to V1 tables in Spark 2.4.5.
    2. Change V1 tables in Spark 2.4.5 to V2 tables.
    3. Upgrade V2 tables in Spark 2.4.5 to V2 tables in Spark 3.3.1.

      Consider the compatibility of Spark Jar job API syntax as well.

    Table 4 Compatibility of DLI Spark versions with v1 and v2 tables

    Table Type

    Spark 2.3 General-Purpose Queue

    Spark 2.4 General-Purpose Queue

    Spark 3.3 General-Purpose Queue

    V1 table

    Partially supported

    V2 table

    ×

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