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

Hudi Table Streaming Reads

Updated on 2024-11-29 GMT+08:00

Configurations

Table 1 Configuration parameters for Hudi table streaming reads

Parameter

Description

Recommended Value

Mandatory

Connector

Type of the table to be read

hudi

Yes

Path

Path for storing the table

Set this parameter as needed.

Yes

table.type

Hudi table type. Available values are as follows:

  • MERGE_ON_READ
  • COPY_ON_WRITE (default value)

COPY_ON_WRITE

Yes

hoodie.datasource.write.recordkey.field

Primary key of the table

Set this parameter as needed.

Yes

write.precombine.field

Data combination field.

Set this parameter as needed.

Yes

read.tasks

Read task parallelism. The default value is 4.

4

No

read.streaming.enabled

Whether to enable incremental streaming read. The options are as follows:

  • true: Incremental streaming read is enabled.
  • false: Batch read is enabled.

true

Yes

read.streaming.start-commit

  • yyyyMMddHHmmss: Start commit time in yyyyMMddHHmmss format for incremental stream consumption. By default, the latest commit is used. The start and end commit time form a close interval.
  • earliest The consumption starts from the beginning.

-

No

hoodie.datasource.write.keygenerator.type

Primary key generator type of the upstream table. The options are as follows:

  • SIMPLE (default value)
  • COMPLEX (When a Spark table is created, use this value, or set the value same as the one specified when the Spark table is created.)
  • TIMESTAMP
  • CUSTOM
  • NON_PARTITION
  • GLOBAL_DELETE

COMPLEX

No

read.streaming.check-interval

Check interval (in minutes) for detecting new upstream commits. Use the default value 1 when the traffic is heavy.

5

No

read.end-commit

End commit time. The start and end commit time form a close interval. By default, the latest commit time is used.

-

No

read.rate.limit

Traffic limit (records per second) for streaming read Default value 0 indicates that there is no limit. The value is the total limit. Limit for each operator = read.rate.limit/read.tasks (number of read operators).

-

No

changelog.enabled

Whether to write Changelog messages. The options are as follows:

  • false: No Changelog message will be written (default value).
  • true: Changelog messages will be written for CDC.

false

No

hoodie.datasource.write.hive_style_partitioning

Whether to use Hive style partitioning. The options are as follows:

  • false: The Hive style is not used. Only the partition value (default value) is used as the partition directory name.
  • true: The Hive style is used. The format of the partition directory name is <partition_column_name>=<partition_value>.

    If the Hudi partition table is created by Spark, this parameter is mandatory and must be set to true.

-

No

Development Suggestions

  • Set proper consumption parameters to avoid the "File Not Found" error.

    When the downstream consumes Hudi files too slowly, the upstream archives the Hudi files. As a result, the "File Not Found" error occurs.

    Optimization suggestions:

    1. Improve the downstream read speed, for example, increase the number of read.tasks.
    2. Improve the data consumption speed, for example, increase the traffic limit.
    3. Increase the compaction period to prolong the retention period of log files.
  • Set the traffic limit for streaming read when a Hudi table is used as the source table.

    If streaming read traffic exceeds the maximum traffic of the system, job exceptions may occur. Set a streaming read limit that equals the peak value verified by the service pressure test.

  • Run compaction on Hudi tables to prevent the long checkpointing of the Hudi Source operator.

    If the Hudi Source operator takes long time for checkpointing, check whether the compaction of the Hudi table is normal. If compaction is not performed for a long time, the list performance deteriorates.

  • When streaming read is enabled for Hudi MOR tables, enable log indexing to improve the Flink streaming read performance.

    The read and write performance of Hudi MOR tables can be improved through log indexing. Add 'hoodie.log.index.enabled'='true' for Sink tables and Source tables.

  • Impact of DDL changes on stream reading of Hudi tables

    Adding columns using DDL has no impact on Hudi table reads. Other DDL changes (such as changing a column type and name, and deleting a column) affect Hudi table reads. Therefore, you need to stop the read jobs before changes are performed.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback