Overview of Data Migration Scenarios
To centrally analyze and manage scattered data from various systems, you can utilize migration tools like Cloud Data Migration (CDM) to migrate the data to DLI. Once the migration is complete, you can submit DLI jobs to analyze the data.
CDM supports multiple types of data sources, such as databases, data warehouses, and files. You can configure data source migration tasks on the GUI to enhance the efficiency of data migration and integration.
Common Migration Scenarios and Solutions
Data Type |
Migration Tool |
Solution |
---|---|---|
Hive |
CDM |
|
Kafka |
CDM |
|
Elasticsearch |
CDM |
Example Typical Scenario: Migrating Data from Elasticsearch to DLI |
RDS |
CDM |
|
GaussDB(DWS) |
CDM |
Example Typical Scenario: Migrating Data from GaussDB(DWS) to DLI |
Data Type Mapping
Refer to Table 2 for data type mapping between data sources and destinations during data migration between DLI and other cloud services and platforms. This will aid in data type conversion and mapping.
MySQL |
Hive |
GaussDB(DWS) |
Oracle |
PostgreSQL |
Hologres |
DLI Spark |
---|---|---|---|---|---|---|
CHAR |
CHAR |
CHAR |
CHAR |
CHAR |
CHAR |
CHAR |
VARCHAR |
VARCHAR |
VARCHAR |
VARCHAR |
VARCHAR |
VARCHAR |
VARCHAR/STRING |
DECIMAL |
DECIMAL |
NUMERIC |
NUMERIC |
NUMERIC |
DECIMAL |
DECIMAL |
INT |
INT |
INTEGER |
NUMBER |
INTEGER |
INTEGER |
INT |
BIGINT |
BIGINT |
BIGINT |
NUMBER |
BIGINT |
BIGINT |
BIGINT/LONG |
TINYINT |
TINYINT |
SMALLINT |
NUMBER |
SMALLINT |
SMALLINT |
TINYINT |
SMALLINT |
SMALLINT |
SMALLINT |
NUMBER |
SMALLINT |
SMALLINT |
SMALLINT/SHORT |
BINARY |
BINARY |
BYTEA |
RAW |
BYTEA |
BYTEA |
BINARY |
VARBINARY |
BINARY |
BYTEA |
RAW |
BYTEA |
BYTEA |
BINARY |
FLOAT |
FLOAT |
FLOAT4 |
FLOAT |
DOUBLE |
FLOAT4 |
FLOAT |
DOUBLE |
DOUBLE |
FLOAT8 |
FLOAT |
REAL/DOUBLE |
FLOAT8 |
DOUBLE |
DATE |
DATE |
TIMESTAMP |
DATE |
DATE |
DATE |
DATE |
TIME |
Not supported (use String instead) |
TIME |
DATE |
TIME |
TIME |
Not supported (use String instead) |
DATETIME |
TIMESTAMP |
TIMESTAMP |
TIME |
TIME |
TIMESTAMP |
TIMESTAMP |
TINYINT |
TINYINT |
BOOLEAN |
Not supported |
TINYINT |
BOOLEAN |
BOOLEAN |
Not supported (use TEXT instead) |
Not supported (use String instead) |
Not supported (use TEXT instead) |
Not supported (use VARCHAR instead) |
Not supported (use TEXT instead) |
Not supported (use TEXT instead) |
ARRAY |
Not supported (use TEXT instead) |
Not supported (use String instead) |
Not supported (use TEXT instead) |
Not supported (use VARCHAR instead) |
Not supported (use TEXT instead) |
Not supported (use TEXT instead) |
MAP |
Not supported (use TEXT instead) |
Not supported (use String instead) |
Not supported (use TEXT instead) |
Not supported (use VARCHAR instead) |
Not supported (use TEXT instead) |
Not supported (use TEXT instead) |
STRUCT |
If a service does not support a standard data type, you can use the recommended data type.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot