Data Import Overview
ApsaraDB for SelectDB supports various data import methods, including native interfaces and ecosystem tools. These methods are suitable for a wide range of scenarios, from real-time data streams to offline batch processing. This topic describes the core interfaces and tools for importing data into SelectDB.
Recommendations for data import
-
For source data from the Alibaba Cloud ecosystem: DTS and DataWorks
-
For source data from outside the Alibaba Cloud ecosystem:
-
Import interfaces: For Kafka data sources, use Routine Load. For other data sources, use Stream Load.
-
Import tools: Flink.
-
-
For large-scale data:
-
Import interfaces: For Kafka data sources, use Routine Load. For other data sources, use Stream Load.
-
Import tools: For MySQL data sources within the Alibaba Cloud ecosystem, use DTS. For MySQL data sources outside the Alibaba Cloud ecosystem and for non-MySQL data sources, use Flink.
-
For an overview of more interfaces and tools, see Import interfaces and Import tools below.
Import interfaces
|
Interface |
Features |
Supported data formats |
Scenarios |
Procedure |
|
Stream Load (Recommended) |
|
CSV, JSON, PARQUET, or ORC |
Import local files or data streams into SelectDB in real time or in batches. |
|
|
Routine Load |
Processes data streams in real time. |
CSV or JSON |
A longtime job continuously reads data from a specified data source and imports it into SelectDB. Note
Currently, only Kafka data sources are supported. |
|
|
Broker Load |
|
CSV, PARQUET, or ORC |
Reads data from remote storage systems such as OSS, Hadoop Distributed File System (HDFS), and S3, and imports the data into SelectDB. |
|
|
OSS Load |
|
CSV, PARQUET, or ORC |
Imports data from Alibaba Cloud OSS into SelectDB. |
|
|
Insert Into |
The |
Reads data from database tables. No file formats are involved. |
|
Import tools
|
Tool |
Features |
Supported data sources |
Incremental data |
Historical data |
Scenarios |
Procedure |
|
DataWorks |
End-to-end management: Integrates task scheduling, data monitoring, and kinship analysis. Supports seamless integration with the Alibaba Cloud ecosystem. |
|
Not supported |
Supported |
Enterprise-level data integration and complex data link scenarios that require task orchestration and monitoring. |
|
|
DTS |
Real-time synchronization: Supports data migration with latency at the second level. Provides features such as resumable uploads and data validation to ensure migration reliability. |
|
Supported |
Supported |
Real-time synchronization for cross-cloud or hybrid cloud databases. Scenarios that require highly reliable migration. |
|
|
X2Doris |
One-click migration: Automatically synchronizes the source table schema. Provides a web-based visualization interface to simplify the migration process from disparate data sources. |
|
Not supported |
Supported |
Migrate from disparate data sources to SelectDB to reduce migration complexity. |
|
|
Flink |
Unified stream and batch processing: Supports real-time stream processing with Exactly-Once semantics. Integrates computing and import for complex extract, transform, and load (ETL) scenarios. |
|
Supported |
Supported |
Suitable for building a real-time data warehouse. Scenarios that require integrated stream processing and data import. |
|
|
Kafka |
High-throughput pipeline: Supports terabyte-level data buffering. Provides persistence and multi-replica mechanisms to prevent data loss. |
|
Supported |
Supported |
Asynchronous data pipeline scenarios. Decouples producers and consumers to buffer high-concurrency data. |
|
|
Spark |
Distributed computing: Uses the Spark engine for parallel processing of massive data. Supports flexible conversion between SQL and DataFrames. |
|
Supported |
Supported |
Large-volume ETL processing. Offline import scenarios that require computing logic, such as SQL or DataFrames. |
|
|
DataX |
Plugin-based architecture: Supports extensions for more than 20 data sources. Provides offline batch synchronization for enterprise-level migration from heterogeneous data sources. |
|
Not supported |
Supported |
Offline batch synchronization for heterogeneous data sources. Scenarios that require highly extensible plugins. |
|
|
SeaTunnel |
Lightweight ETL: A configuration-driven pattern simplifies development. Supports real-time Change Data Capture (CDC) and is compatible with Flink and Spark engines. |
|
Supported |
Supported |
Simple configuration-driven CDC and lightweight real-time synchronization scenarios. |
|
|
BitSail |
Multi-engine adaptation: Supports multiple computing frameworks such as MapReduce and Flink. Provides a data sharding strategy to optimize import efficiency. |
|
Supported |
Supported |
Data migration scenarios that require flexible switching between computing frameworks, such as Flink and MapReduce (MR). |