A Hudi data ingestion method and system for multi-source heterogeneous data

Through the combination of gateway architecture, Apache Flink and Hudi, the complexity, real-time and security issues in the processing of multi-source heterogeneous data into the lake are solved, centralized management of data resources and effective collection and storage of metadata are realized, improving Improve data processing efficiency and security.

CN118503229BActive Publication Date: 2024-09-27SHANDONG COMP SCI CENTNAT SUPERCOMP CENT IN JINAN +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410961286.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-09-27
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

In the existing technology, the processing of multi-source heterogeneous data into the lake has problems such as data management complexity, low real-time requirements, insufficient data security, and difficulty in data lineage and metadata management.

Method used

The gateway architecture is used to uniformly manage and distribute data into the lake. Apache Flink and Apache Hudi are used to implement centralized data processing and metadata collection and storage, and a data resource directory is built to simplify data integration and access.

Benefits of technology

Reduces system complexity and cost of ownership, enhances data security, improves data quality and consistency, and supports real-time data processing and metadata management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118503229B
    Figure CN118503229B
Patent Text Reader

Abstract

The present invention relates to a Hudi data ingestion method and system for multi-source heterogeneous data, belonging to the field of data processing technology, including: publishing data entry tasks: uploading relevant information of the lake task, publishing the lake entry task; executing the data entry task: using Apache Hudi as the data lake architecture, transferring the original data from the data source to the data lake for storage through the data entry processing engine, and collecting metadata information of the original data at the same time, and persistently storing the metadata information of the original data in the metadata database; building a data resource directory: building a data resource directory of the data lake according to the collected metadata and the relevant information of the metadata in the data lake. The present invention centrally manages all data streams through a gateway architecture, simplifies the data integration process from different sources, and reduces the complexity of the system and the total cost of ownership.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of data processing technology, and in particular relates to a Hudi data ingestion method and system for multi-source heterogeneous data. Background Art

[0002] With the development of big data technology, some enterprises and institutions are facing more and more diverse data types, including structured data, semi-structured data, and unstructured data, which come from different data sources. For example, the smart education platform of colleges and universities involves data sources including relational databases, log files, sensor data, surveillance video streams, etc. As an emerging data management architecture, data lake provides a centralized data storage warehouse that can store and manage data from different sources and types. Metadata management is crucial for data lakes. Lack of proper metadata management will cause data lakes to become data swamps, making it impossible for users to effectively analyze and use the data in the lake.

[0003] In order to process a large amount of multi-source heterogeneous data, advanced data processing technology and data lake framework are needed. Apache Flink is a very popular open source stream processing framework for processing and analyzing real-time data streams. Flink supports event-driven stream processing and batch data processing, and can run in various cluster environments; Flink provides a rich API for data processing, such as Streaming API, Table API, and supports a variety of connectors with external systems.

[0004] Apache Hudi is one of the most mainstream open source data lake frameworks, designed for storing large-scale analytical data, and supports insert, update, and delete operations. Hudi supports efficient incremental data processing, allowing users to process only data that has changed since the last query; Hudi provides a data version control mechanism that can track historical changes in data; Hudi can be integrated with multiple computing engines such as Flink, Spark, and Presto to provide end-to-end data stream processing and analysis solutions.

[0005] The existing technology has the following problems in processing multi-source heterogeneous data into the lake:

[0006] 1. Complexity of data management. The data sources are complicated and it is difficult to adapt to the connection and transmission of various data.

[0007] 2. Real-time requirements: Low data processing efficiency affects the real-time and accuracy of data entering the lake.

[0008] 3. Data security. The security of data entering the lake is vulnerable to threats during transmission, which increases the risk of data leakage.

[0009] 4. Data lineage and metadata management. When data is entering the lake, maintaining data lineage and metadata is a challenge, which affects the traceability and manageability of the data.

[0010] To address the above issues, a gateway architecture can be introduced to optimize data entry into the lake. The gateway will uniformly manage and distribute data into the lake, greatly improving work efficiency. Summary of the invention

[0011] In order to solve the problems raised in the background technology, the present invention provides a Hudi data ingestion method and system for multi-source heterogeneous data, which can centrally manage and process data from different data sources, allow different systems and applications to interact with the data lake through a unified interface, simplify the process of data integration and data access, and help reduce the complexity and total cost of ownership of the system. As a unified entrance for data to enter the lake, the gateway architecture distributes structured data, semi-structured data, and unstructured data to the adapted lake entry controller to execute data entry into the lake, and at the same time calls the adapted metadata collection program according to the data type to collect metadata, and stores the metadata persistently in the metadata database. The system can build a data resource directory, which shows users detailed information on various data stored in the data lake, making it convenient for users to query and use data.

[0012] Terminology explanation:

[0013] Flink: Flink is an open source stream processing framework that allows users to perform stateful computations on infinite data streams.

[0014] Hudi: Hudi (Hadoop Upserts Deletes and Incrementals) is an open source data lake framework for managing large-scale data sets stored on distributed file systems or cloud storage services.

[0015] Flink CDC: Flink CDC (Change Data Capture) is a real-time data integration framework based on database log changes. It can capture data changes in the database and process, analyze, and transform these changes as event streams in Flink programs.

[0016] HDFS: HDFS (Hadoop Distributed File System) is a distributed file system used to store large amounts of data and can be distributed on multiple physical machines.

[0017] MinIO: MinIO is a high-performance object storage server that is compatible with the Amazon S3 cloud storage service API.

[0018] The technical solution of the present invention is:

[0019] A Hudi data ingestion method for multi-source heterogeneous data, including:

[0020] Publish data entry tasks: upload relevant information about the data entry tasks and publish the data entry tasks. The relevant information about the data entry tasks includes the task title, data connection configuration, and data type.

[0021] Gateway distributes data into the lake: Apache Flink is used as the data into the lake processing engine. The gateway uniformly manages and distributes data into the lake, collects metadata based on data types, and performs adaptive data into the lake based on data classification.

[0022] Execute the data entry task: Use Apache Hudi as the data lake architecture, and use the data entry processing engine to transfer the original data from the data source to the data lake for storage. At the same time, collect the metadata information of the original data and store it persistently in the metadata database;

[0023] Build a data resource catalog: Build a data resource catalog for the data lake based on the collected metadata and related information of the metadata in the data lake.

[0024] Further preferably, the data types include mysql data, json data, log files, video stream data, image data, audio data and text documents, each data type has a unique identification ID and is expandable.

[0025] Preferably, according to the present invention, the gateway is used for data source adaptation, data transfer and data transmission;

[0026] Data source adapter is used to interact with different data sources and extract raw data;

[0027] Data transfer is used to forward data entering the lake, and is used for adaptive metadata collection and data entry into the lake;

[0028] Data transfer is used to transfer processed data to the data lake.

[0029] According to the preferred embodiment of the present invention, during the metadata collection process, each data type corresponds to a metadata collection program, and data of different data types are respectively collected by metadata collection programs adapted thereto; the data type is the data type in the lake entry task, has a unique identification ID, and can be expanded. The gateway calls the adapted metadata collection program according to the data type in the lake entry task uploaded by the user to realize the automatic collection of metadata;

[0030] During the data entry process, Apache Flink is used as the data entry processing engine. The data entering the lake is divided into three categories according to the data organization form and characteristics: structured data, semi-structured data, and unstructured data. Each type of data has a different entry method and is entered into the lake through different entry controllers.

[0031] Further preferably, MySQL data belongs to structured data, and the structured lake entry controller is responsible for data entry into the lake; JSON data and log files belong to semi-structured data, and the semi-structured lake entry controller is responsible for data entry into the lake; video stream data, image data, audio data and text documents belong to unstructured data, and the unstructured lake entry controller is responsible for data entry into the lake.

[0032] Further preferably, the structured lake entry controller uses the Flink CDC method to enter data into the lake.

[0033] Further preferably, a semi-structured data entry controller is responsible for data entry into the lake, and the entry methods include data format conversion and mapping relationship establishment; data format conversion refers to parsing and converting semi-structured data into structured data, defining the structure of the Hudi table according to the converted data structure, and storing the converted data in the Hudi table, using HDFS as the underlying storage to facilitate user query and analysis of data; mapping relationship establishment refers to creating a mapping relationship between the original file of semi-structured data and the corresponding Hudi table.

[0034] Further preferably, the unstructured data entry controller is responsible for entering the lake, and the entry methods include original file entry and feature metadata entry; original file entry refers to storing unstructured data directly from the data source into MinIO to realize original data entry; feature metadata entry refers to creating metadata records for unstructured data, and the metadata records include the data file name and a link to the unstructured data in MinIO. A Hudi table is defined according to the metadata record to store metadata, and the storage location information of the corresponding unstructured data is obtained by querying the Hudi table.

[0035] Preferably, according to the present invention, Apache Hudi is used as the data lake architecture, the distributed file system HDFS is used to store structured data and semi-structured data in the underlying storage, and the object storage service MinIO is used to store unstructured data. The collected metadata includes basic metadata and relational metadata, which are stored in the relational database mysql and the graph database neo4j respectively; the basic metadata includes the name, size, type, modification time and various parameters of the data, and the relational metadata includes the upstream table and downstream table information of the data table and the upstream and downstream information of the data field.

[0036] Preferably, according to the present invention, a data resource directory is constructed by combining metadata with Hudi's management mechanism. Hudi's management mechanism includes Hudi's Timeline, file layout and index mechanism; the data resource directory contains the following data and information:

[0037] Metadata: describes the basic characteristics of data;

[0038] Data lineage: Shows the source and flow path of data, including how data is created, processed, transformed, and consumed;

[0039] Data classification and labeling: labels and groupings used to classify data;

[0040] Data dictionary: includes data format, data meaning and detailed description of data fields;

[0041] Data usage: statistical information on data access and use;

[0042] Data version information: historical versions of data, including data update records and change logs;

[0043] Data storage location: The physical storage location of the data in the data lake;

[0044] Data access interface: provides API and data service interface for accessing data.

[0045] A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of a Hudi data ingestion method for multi-source heterogeneous data are implemented.

[0046] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a Hudi data ingestion method for multi-source heterogeneous data.

[0047] A Hudi data ingestion system for multi-source heterogeneous data, including:

[0048] The lake entry task publishing module is configured to: upload relevant information of the lake entry task and publish the lake entry task, and the relevant information of the lake entry task includes the task title, data connection configuration and data type;

[0049] The gateway module is configured as follows: Apache Flink is used as the data entry processing engine, the gateway uniformly manages and distributes data entry tasks, collects metadata based on data types, and performs adaptive data entry based on data classification;

[0050] The data entry module is configured to: use Apache Hudi as the data lake architecture and transfer raw data from the data source to the data lake through the data entry processing engine;

[0051] The data storage module is configured to: use Hudi as the data lake management framework, use the distributed file system HDFS and the object storage service MinIO as the underlying storage, collect the metadata information of the original data, and store the metadata information of the original data persistently in the metadata database;

[0052] The data management construction module is configured to: construct a data resource directory of the data lake according to the collected metadata and related information of the metadata in the data lake.

[0053] The beneficial effects of the present invention are:

[0054] The present invention provides a Hudi data ingestion method and system for multi-source heterogeneous data, which centrally manages all data streams through a gateway architecture, simplifies the data integration process from different sources, and reduces the complexity and total cost of ownership of the system. First, enhance data security. The gateway can implement security policies such as authentication, authorization, encryption, etc., thereby enhancing the security of data transmission; second, improve data quality and consistency. The gateway can clean and standardize data before entering the lake to ensure data quality and consistency; third, support real-time changes in data sources. The gateway can process changes in data sources in real time, such as database insert, update, and delete operations. Fourth, provide data lineage and metadata management. The gateway can collect and maintain data lineage information and provide detailed records of data sources, flows, and conversions. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 The present invention is a flowchart of a Hudi data ingestion method for multi-source heterogeneous data according to an embodiment of the present invention.

[0056] Figure 2 This is a schematic diagram of the structure of a Hudi data ingestion system for multi-source heterogeneous data according to an embodiment of the present invention. DETAILED DESCRIPTION

[0057] The present invention will be further described below with reference to the accompanying drawings and embodiments, but is not limited thereto.

[0058] Example 1

[0059] A Hudi data ingestion method for multi-source heterogeneous data, such as Figure 1 As shown, including:

[0060] Publish data entry tasks: upload relevant information about the data entry tasks and publish the data entry tasks. The relevant information about the data entry tasks includes the task title, data connection configuration, and data type.

[0061] Gateway distributes data into the lake: Apache Flink is used as the unified data into the lake processing engine. The gateway manages and distributes data into the lake, collects metadata based on data types, and performs data into the lake based on data classification.

[0062] Execute the data entry task: Use Apache Hudi as the data lake architecture, and use the data entry processing engine to transfer the original data from the data source to the data lake for storage. At the same time, collect the metadata information of the original data and store it persistently in the metadata database;

[0063] Build a data resource catalog: Build a data resource catalog for the data lake based on the collected metadata and the related information of the metadata in the data lake. This facilitates access to and use of data in the data lake. The related information of the data in the lake includes the usage of the data in the lake, version information, storage location, etc.

[0064] Example 2

[0065] The difference between the Hudi data ingestion method for multi-source heterogeneous data described in Example 1 is that:

[0066] Data types include MySQL data, JSON data, log files, video stream data, image data, audio data, and text documents. Each data type has a unique identification ID and is extensible.

[0067] The gateway is used for data source adaptation, data transfer and data transmission;

[0068] Data source adapter is used to interact with different data sources and extract raw data;

[0069] Data transfer is used to forward data entering the lake, and is used for adaptive metadata collection and data entry into the lake;

[0070] Data transfer is used to transfer processed data to the data lake securely and efficiently.

[0071] During the metadata collection process, each data type corresponds to a metadata collection program, and data of different data types are collected by metadata collection programs adapted to them; the data type is the data type in the lake entry task, has a unique identification ID, and can be expanded. The gateway calls the adapted metadata collection program according to the data type in the lake entry task uploaded by the user to realize the automatic collection of metadata, which greatly reduces the workload. For example, for MySQL data, you can use the JDBC API to obtain the metadata of the MySQL database. After establishing a connection with the MySQL database, you can call the Connection.getMetaData() method to get the DatabaseMetaData object, which contains the metadata information of the MySQL database. For log files and JSON data, you can parse their contents by calling a special Java parsing library to collect metadata information from them. For image data and video stream data, you can use metadata-extractor to collect metadata. Metadata-extractor is a Java library for reading metadata from media files. In particular, for remote sensing data, it usually uses XML files to store metadata information. Therefore, you can parse the XML file to extract the metadata information of remote sensing data. For text documents and audio data, you can use Apache Tika to collect metadata. Apache Tika is an open source content analysis toolkit that can detect and extract metadata and structured text content in multiple file formats.

[0072] During the data entry process, Apache Flink is used as a unified data entry processing engine. The data entering the lake is divided into three categories according to the organization form and characteristics of the data: structured data, semi-structured data, and unstructured data. The entry method of each type of data is different, and different entry controllers are required to enter the data into the lake. For example, MySQL data belongs to structured data. Flink CDC captures the data change operations of the MySQL database and synchronizes the MySQL data to the defined Hudi table in real time to achieve structured data entry into the lake. Data change operations include addition, deletion, and modification. The table structure of the Hudi table must be consistent with the synchronized MySQL table structure. At the same time, the Hive synchronization function is enabled to synchronize the data in the Hudi table to the corresponding Hive table. The Hive Catalog mechanism is used to introduce the Hive function library. The system functions provided by Hive can efficiently query and analyze the data. There are two ways to query the MySQL data in the lake. One is to query the Hudi table through Flink SQL to obtain the data of the corresponding table in the MySQL database; the other is to query the synchronized Hive table through the Hive client to obtain the corresponding MySQL data.

[0073] MySQL data is structured data, and the structured inflow controller is responsible for data entry into the lake; JSON data and log files are semi-structured data, and the semi-structured inflow controller is responsible for data entry into the lake; video stream data, image data, audio data and text documents are unstructured data, and the unstructured inflow controller is responsible for data entry into the lake.

[0074] The structured data entry controller uses Flink CDC to enter the data into the lake. Structured data refers to data stored in a predefined way and fixed format, usually represented by a two-dimensional table structure. Flink CDC can output database changes (including insert, update, and delete operations) in real time in the form of streams. These changes are used to synchronize data to the data lake. Flink CDC provides connectors for a variety of relational databases, such as MySQL, PostgreSQL, Oracle, SQL Server, etc. Flink CDC is tightly integrated with Flink's state backend and fault tolerance mechanism to ensure high availability and fault tolerance of the system.

[0075] The semi-structured data entry controller is responsible for data entry into the lake, and the entry methods include data format conversion and mapping relationship establishment; Semi-structured data usually contains some tags or fields, which define certain structures of the data, but the data itself does not follow a fixed pattern. Data format conversion refers to parsing and converting semi-structured data into structured data, defining the structure of the Hudi table according to the converted data structure, storing the converted data in the Hudi table, and using HDFS as the underlying storage to facilitate user query and analysis of data; Mapping relationship establishment refers to creating a mapping relationship between the original file of semi-structured data and the corresponding Hudi table. You can use the original file name and Hudi table name to establish a mapping to provide an API or query interface to facilitate user access to the original file of semi-structured data. When users need to analyze and process semi-structured data, the data in the Hudi table is directly provided to users.

[0076] Semi-structured data is converted into key-value pairs and stored in the hudi table. The table structure is shown in Table 1 below:

[0077] Table 1 Hudi table of semi-structured data;

[0078] Primary Key Property name Property Value id Attr_name Attr_value int string string

[0079] The unstructured data entry controller is responsible for entering the data into the lake, including the original file entry and feature metadata entry. Unstructured data refers to data that does not follow a fixed pattern or structure, and there is no predefined data model for this type of data. Original file entry means storing unstructured data directly from the data source into MinIO to achieve original data entry into the lake; feature metadata entry means creating metadata records for unstructured data. The metadata record includes the data file name and a link to the unstructured data in MinIO. A Hudi table is defined based on the metadata record to store metadata. By querying the Hudi table, the storage location information of the corresponding unstructured data is obtained.

[0080] The Hudi table of unstructured data records the name, type, size and storage information of the unstructured data in MinIO. The table structure is shown in Table 2 below:

[0081] Table 2 Hudi table for unstructured data;

[0082] file name File Type File size Storage Information name type size Store_info string string string string

[0083] Apache Hudi is used as the data lake architecture. The underlying storage uses the distributed file system HDFS to store structured data and semi-structured data, and the object storage service MinIO to store unstructured data. The collected metadata includes basic metadata and relational metadata, which are stored in the relational database MySQL and the graph database neo4j respectively; the basic metadata includes the name, size, type, modification time and various parameters of the data, and the relational metadata includes the upstream table and downstream table information of the data table and the upstream and downstream information of the data field.

[0084] By combining metadata and Hudi's management mechanism to build a data resource directory, users can quickly locate, understand and access data in the data lake. Hudi's management mechanism includes Hudi's Timeline, file layout and index mechanism; Timeline is a timeline maintained by Hudi to record all operations on the data set; file layout is Hudi organizing the data set into a directory structure, and the data set is divided into multiple partitions, each partition contains multiple file groups (identified by file IDs), and each file group contains multiple file slices; index mechanism is that Hudi maintains an index to support fast mapping of record keys to file IDs. The data resource directory contains the following data and information:

[0085] Metadata: describes the basic characteristics of data, such as the source, format, mode, data type, size, creation time, last modification time, etc.

[0086] Data lineage: Shows the source and flow path of data, including how data is created, processed, transformed, and consumed;

[0087] Data classification and labeling: Labels and groups used to classify data to help users quickly find relevant data;

[0088] Data dictionary: includes data format, data meaning and detailed description of data fields;

[0089] Data usage: statistical information on data access and use;

[0090] Data version information: historical versions of data, including data update records and change logs;

[0091] Data storage location: The physical storage location of data in the data lake, such as file system path, database table name, etc.

[0092] Data access interface: provides API and data service interface for accessing data.

[0093] Example 3

[0094] A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of a Hudi data ingestion method for multi-source heterogeneous data described in Example 1 or 2 are implemented.

[0095] Example 4

[0096] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of a Hudi data ingestion method for multi-source heterogeneous data described in Example 1 or 2.

[0097] Example 5

[0098] A Hudi data ingestion system for multi-source heterogeneous data, such as Figure 2 As shown, including:

[0099] The lake entry task publishing module is configured to: upload relevant information of the lake entry task and publish the lake entry task, and the relevant information of the lake entry task includes the task title, data connection configuration and data type;

[0100] The gateway module is configured as follows: Apache Flink is used as the unified data entry processing engine, the gateway manages and distributes data entry tasks, collects metadata based on data types, and performs data entry based on data classification;

[0101] The data entry module is configured to: use Apache Hudi as the data lake architecture and transfer raw data from the data source to the data lake through the data entry processing engine;

[0102] The data storage module is configured to: use Hudi as the data lake management framework, use the distributed file system HDFS and the object storage service MinIO as the underlying storage, collect the metadata information of the original data, and store the metadata information of the original data persistently in the metadata database;

[0103] The data management construction module is configured to: construct a data resource directory of the data lake according to the collected metadata and related information of the metadata in the data lake.

[0104] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, and these embodiments are only illustrative and not restrictive. Based on the examples of the present invention, all other examples obtained by those skilled in the art without creative work should fall within the protection scope of the present invention.

Claims

1. A Hudi data ingestion method for multi-source heterogeneous data, It is characterized in that include: Publish data entry tasks: upload relevant information about the data entry tasks and publish the data entry tasks. The relevant information about the data entry tasks includes the task title, data connection configuration, and data type. Gateway distributes data into the lake: Apache Flink is used as the data into the lake processing engine. The gateway manages and distributes data into the lake in a unified manner, collects metadata based on data types, and performs adaptive data into the lake based on data classification. Execute the data entry task: Use Apache Hudi as the data lake architecture, and use the data entry processing engine to transfer the original data from the data source to the data lake for storage. At the same time, collect the metadata information of the original data and store it persistently in the metadata database; Build a data resource catalog: Build a data resource catalog for the data lake based on the collected metadata and related information of the metadata in the data lake; Data types include MySQL data, JSON data, log files, video stream data, image data, audio data, and text documents. Each data type has a unique identification ID and is extensible.

2. According to claim 1, a Hudi data ingestion method for multi-source heterogeneous data, It is characterized in that The gateway is used for data source adaptation, data transfer and data transmission; Data source adapter is used to interact with different data sources and extract raw data; Data transfer is used to forward data entering the lake, and is used for adaptive metadata collection and data entry into the lake; Data transfer is used to transfer processed data to the data lake.

3. According to claim 1, a Hudi data ingestion method for multi-source heterogeneous data, It is characterized in that During the metadata collection process, each data type corresponds to a metadata collection program, and data of different data types are collected by metadata collection programs adapted to them respectively; The data type is the data type in the lake entry task, which has a unique identification ID. The gateway calls the adapted metadata collection program according to the data type in the lake entry task uploaded by the user to realize the automatic collection of metadata. During the data entry process, Apache Flink is used as the data entry processing engine. The data entering the lake is divided into three categories according to the data organization form and characteristics: structured data, semi-structured data, and unstructured data. Each type of data has a different entry method and is entered into the lake through different entry controllers.

4. According to claim 3, a Hudi data ingestion method for multi-source heterogeneous data, It is characterized in that MySQL data is structured data, and the structured inflow controller is responsible for data entry into the lake; JSON data and log files are semi-structured data, and the semi-structured inflow controller is responsible for data entry into the lake; video stream data, image data, audio data and text documents are unstructured data, and the unstructured inflow controller is responsible for data entry into the lake.

5. According to claim 4, a Hudi data ingestion method for multi-source heterogeneous data, It is characterized in that The structured data entry controller uses the Flink CDC method to enter data into the lake.

6. According to claim 4, a Hudi data ingestion method for multi-source heterogeneous data, It is characterized in that The semi-structured data entry controller is responsible for entering the data into the lake. The entry method includes data format conversion and mapping relationship establishment. Data format conversion refers to parsing and converting semi-structured data into structured data, defining the structure of the Hudi table according to the converted data structure, and storing the converted data in the Hudi table. HDFS is used as the underlying storage to facilitate user query and analysis of data. Mapping relationship establishment refers to creating a mapping relationship between the original file of semi-structured data and the corresponding Hudi table.

7. According to claim 4, a Hudi data ingestion method for multi-source heterogeneous data, It is characterized in that The unstructured data entry controller is responsible for entering the data into the lake. The entry methods include original file entry and feature metadata entry. Original file entry means storing unstructured data directly from the data source into MinIO to realize the entry of original data into the lake. Feature metadata entry means creating metadata records for unstructured data. The metadata records include the data file name and the link to the unstructured data in MinIO. A Hudi table is defined according to the metadata record to store metadata. By querying the Hudi table, the storage location information of the corresponding unstructured data can be obtained.

8. According to claim 1, a Hudi data ingestion method for multi-source heterogeneous data, It is characterized in that Apache Hudi is used as the data lake architecture. The underlying storage uses the distributed file system HDFS to store structured data and semi-structured data, and the object storage service MinIO to store unstructured data. The collected metadata includes basic metadata and relational metadata, which are stored in the relational database MySQL and the graph database neo4j respectively; the basic metadata includes the name, size, type, modification time and various parameters of the data, and the relational metadata includes the upstream table and downstream table information of the data table and the upstream and downstream information of the data field.

9. A Hudi data ingestion method for multi-source heterogeneous data according to any one of claims 1 to 8, It is characterized in that The data resource directory is constructed by combining metadata with Hudi's management mechanism. Hudi's management mechanism includes Hudi's Timeline, file layout, and indexing mechanism. The data resource directory contains the following data and information: Metadata: describes the basic characteristics of data; Data lineage: Shows the source and flow path of data, including how data is created, processed, transformed, and consumed; Data classification and labeling: labels and groupings used to classify data; Data dictionary: includes data format, data meaning and detailed description of data fields; Data usage: statistical information on data access and use; Data version information: historical versions of data, including data update records and change logs; Data storage location: The physical storage location of the data in the data lake; Data access interface: provides API and data service interface for accessing data.

10. A Hudi data ingestion system for multi-source heterogeneous data, It is characterized in that include: The lake entry task publishing module is configured to: upload relevant information of the lake entry task and publish the lake entry task, and the relevant information of the lake entry task includes the task title, data connection configuration and data type; The gateway module is configured as follows: Apache Flink is used as the data entry processing engine, the gateway uniformly manages and distributes data entry tasks, collects metadata based on data types, and executes data entry based on data classification; The data entry module is configured to: use Apache Hudi as the data lake architecture and transfer raw data from the data source to the data lake through the data entry processing engine; The data storage module is configured to: use Hudi as the data lake management framework, use the distributed file system HDFS and the object storage service MinIO as the underlying storage, collect the metadata information of the original data, and store the metadata information of the original data persistently in the metadata database; The data management construction module is configured to: construct a data resource directory of the data lake according to the collected metadata and related information of the metadata in the data lake.

Citation Information

Patent Citations

  • Multi-source heterogeneous lake and reservoir integrated data processing method, equipment and medium

    CN116166757A

  • Data lake index creation method and device, electronic equipment and computer storage medium

    CN116186041A

  • Automatic system and method for data to enter lake

    CN116842023A

  • Shadow data lakes

    US11720548B1