Massive data cleaning method based on streaming computing

By using a streaming computing-based method to uniformly access multiple data sources and design a distributed cleaning flow chart, we solve the problems of low data cleaning performance and insufficient versatility in the big data era, and achieve efficient and versatile massive data cleaning capabilities.

CN111858569BActive Publication Date: 2024-09-20CHANGJIANG GEOTECHNICAL ENG CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010616966.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-01
Publication Date
2024-09-20
Estimated Expiration
2040-07-01

AI Technical Summary

Technical Problem

In the era of big data, the existing technology has low data cleaning performance and lacks versatility, and cannot effectively handle diverse and complex data sources, resulting in slow traditional data cleaning time and difficulty in normal operation.

Method used

Using a method based on streaming computing, heterogeneous data sources are uniformly accessed through the data access module and pushed to the message queue Kafka, the operator flow chart is configured and designed, multiple computing nodes are used for distributed cleaning operations, and dynamic expansion and Drag-and-drop design flow chart, calling JAVA reflection for cleaning operations.

Benefits of technology

It achieves efficient massive data cleaning, has strong versatility, can handle diverse and complex data sources, has strong dynamic expansion capabilities, and is suitable for large-scale data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111858569B
    Figure CN111858569B
Patent Text Reader

Abstract

The method for cleaning massive data based on streaming computing of the present invention comprises the following steps: heterogeneous data sources uniformly access data through a data access module, and push data into a message queue Kafka in a unified format, wait for data cleaning, and feed back the access status to a dispatch center; configure a cleaning operator and design an operator flow chart; the computing nodes in the computing cluster communicate with the dispatch center, call the operator flow chart, perform cleaning operations according to the process of the designed operator flow chart, and feed back the cleaning operation status to the dispatch center. The present invention uses a distributed message queue Kafka to uniformly access data, unifies the data source format through Kafka, and facilitates unified data cleaning processing. Multiple computing nodes are deployed in a distributed parallel form, can be dynamically expanded horizontally according to demand, and have strong robustness in the face of large quantities of data. The cleaning process designed by dragging and dropping can meet most of the cleaning process work, and has strong versatility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of big data ETL, and more specifically relates to a method for cleaning massive data based on streaming computing. Background Art

[0002] In recent years, with the continuous improvement of the level of informatization, data has shown explosive growth and entered the era of big data. Big data has the 5V characteristics of volume, variety, velocity, value and veracity. The advent of big data has changed many traditional working methods, including ETL. ETL is the process of data extraction, transformation, cleaning and loading. It is an important part of data warehouse construction and is responsible for the scheduling of the entire data warehouse. Its efficiency and the quality of cleaned data directly determine the correctness of data warehouse construction and decision-making. Therefore, a high-performance and scalable data cleaning framework plays an important role in the construction of data warehouses.

[0003] Currently, data cleaning mainly faces the following problems: (1) Low data cleaning performance. Traditional data cleaning methods are aimed at cleaning small batches of data. In the era of big data, data is likely to increase by TB levels every day, and some cleaning algorithms consume a lot of computing power, resulting in traditional data cleaning time being extremely slow, or even difficult to run normally. (2) The data sources are diverse and complex, and the cleaning process is complex. The diverse characteristics of big data determine the complexity and diversity of the data sources that need to be cleaned. The data in the data warehouse often comes from many different systems, each system contains multiple modules, and each module contains a separate data source, including not only structured data but also various complex semi-structured data. Data cleaning is a complex process, and there may be multiple operators in the middle, such as merging, splitting, value replacement, algorithms, etc. Multiple operators will be combined according to certain logical relationships to form a cleaning process. The traditional method can only develop programs for each cleaning process, which greatly reduces the versatility of cleaning.

[0004] Therefore, providing a data cleaning method with high efficiency and good versatility is an urgent problem to be solved in this field. Summary of the invention

[0005] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a method for cleaning massive data based on streaming computing, which has the characteristics of high efficiency and good versatility.

[0006] The object of the present invention is achieved by the following measures: a method for cleaning massive data based on streaming computing, characterized by comprising the following steps:

[0007] (1) Heterogeneous data sources access data uniformly through the data access module and push it into the message queue Kafka in a unified format, waiting for data cleaning, and feeding back the access status to the dispatch center;

[0008] (2) Configuring cleaning operators and designing operator flow charts include

[0009] A: Configure the cleaning operator in the operator management interface of the dispatch center;

[0010] B: According to different cleaning requirements, various operators are connected in a certain order to form an operator flow chart;

[0011] (3) The computing nodes in the computing cluster communicate with the dispatching center, call the operator flow chart designed in step (2), perform cleaning operations according to the process of the designed operator flow chart, and feed back the cleaning operation status to the dispatching center.

[0012] In the above technical solution, the heterogeneous data sources include relational databases, text data and Excel data.

[0013] In the above technical solution, the unified access data format includes:

[0014] A: The unique identifier of the data is uuid;

[0015] B: unique identifier of the data source, nameId;

[0016] C: data generation timestamp;

[0017] D: field name fields;

[0018] E: data content datas.

[0019] In the above technical solution, the cleaning operator mainly includes:

[0020] A1: Replace Chinese characters operator;

[0021] A2: dictionary replacement operator;

[0022] A3: Extract field operator;

[0023] A4: Conditional filtering operator;

[0024] A5: Deduplication operator;

[0025] A6: Output operator.

[0026] In the above technical solution, the node types of the operator flow chart mainly include:

[0027] (1) Start node, marking the beginning of a process;

[0028] (2) Operator nodes, configured with different operators;

[0029] (3) Judgment node, configure different branch judgments;

[0030] (4) End node, marking the end of a process.

[0031] In the above technical solution, the main steps of the design operator flow chart include:

[0032] (1) Drag a start node to the canvas;

[0033] (2) Drag the operator node to the canvas and configure the operator type;

[0034] (3) If there is a judgment node, drag the judgment node to the canvas;

[0035] (4) Drag the end node to the canvas;

[0036] (5) Connect all nodes with lines according to the operator process;

[0037] (6) Save the operator process.

[0038] In the above technical solution, the computing cluster is composed of multiple computing nodes, each computing node can run a separate operator process, and the number of computing nodes can be configured according to computing needs (ie, distributed deployment).

[0039] In the above technical solution, the data cleaning process of step (3) is:

[0040] a: Consume data from Kafka. Reading data from Kafka is called consuming data.

[0041] b: Determine whether cleaning is needed, if yes, continue cleaning, if no, end;

[0042] c: Read the operator flow chart from the dispatch center;

[0043] d: Use the reflection principle of JAVA to call related operators for cleaning operations;

[0044] e: The cleaned data enters the data warehouse;

[0045] f: Feedback the data cleaning and storage results to the dispatch center;

[0046] g:End.

[0047] Compared with the prior art, the present invention has the following advantages and positive effects:

[0048] (1) Use distributed message queue Kafka to uniformly access data, unify the data source format through Kafka, solve the complex and diverse problems of multiple data sources, and facilitate data cleaning and unified processing.

[0049] (2) Multiple computing nodes are deployed in a distributed parallel manner, which can be dynamically expanded horizontally according to demand and are highly robust in the face of large amounts of data.

[0050] (3) The drag-and-drop design of the cleaning process can meet most cleaning process tasks and has strong versatility. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is a technical architecture diagram of the present invention.

[0052] Figure 2 It is a data cleaning flow chart of the present invention. DETAILED DESCRIPTION

[0053] The following is a detailed description of the implementation of the present invention in conjunction with the accompanying drawings, but they do not constitute a limitation of the present invention and are only given as examples. At the same time, the advantages of the present invention will become clearer and easier to understand through the description.

[0054] Referring to the accompanying drawings, it can be seen that the method for cleaning massive data based on streaming computing is characterized by comprising the following steps:

[0055] (1) Heterogeneous data sources access data uniformly through the data access module and push it into the message queue Kafka in a unified format, waiting for data cleaning, and feeding back the access status to the dispatch center;

[0056] (2) Configuring cleaning operators and designing operator flow charts include

[0057] A: Configure the cleaning operator in the operator management interface of the dispatch center;

[0058] B: According to different cleaning requirements, various operators are connected in a certain order to form an operator flow chart;

[0059] (3) The computing nodes in the computing cluster communicate with the dispatching center, call the operator flow chart designed in step (2), perform cleaning operations according to the process of the designed operator flow chart, and feed back the cleaning operation status to the dispatching center.

[0060] The heterogeneous data sources include relational databases, text data and Excel data.

[0061] In the above technical solution, the unified access data format includes:

[0062] A: The unique identifier of the data is uuid;

[0063] B: unique identifier of the data source, nameId;

[0064] C: data generation timestamp;

[0065] D: field name fields;

[0066] E: data content datas.

[0067] The cleaning operator mainly includes:

[0068] A1: Replace Chinese characters operator;

[0069] A2: dictionary replacement operator;

[0070] A3: Extract field operator;

[0071] A4: Conditional filtering operator;

[0072] A5: Deduplication operator;

[0073] A6: Output operator.

[0074] The node types of the operator flow chart mainly include:

[0075] (1) Start node, marking the beginning of a process;

[0076] (2) Operator nodes, configured with different operators;

[0077] (3) Judgment node, configure different branch judgments;

[0078] (4) End node, marking the end of a process.

[0079] The main steps of the design operator flow chart include:

[0080] (1) Drag a start node to the canvas;

[0081] (2) Drag the operator node to the canvas and configure the operator type;

[0082] (3) If there is a judgment node, drag the judgment node to the canvas;

[0083] (4) Drag the end node to the canvas;

[0084] (5) Connect all nodes with lines according to the operator process;

[0085] (6) Save the operator process.

[0086] The operator flow chart can be designed arbitrarily according to user needs. This method provides a general framework, and there is no need to worry about the specific operator cleaning process, which is an existing technology.

[0087] The computing cluster is composed of multiple computing nodes, each of which can run a separate operator process, and the number of computing nodes can be configured according to computing needs.

[0088] The data cleaning process of step (3) is:

[0089] a: Consume data from Kafka. Reading data from Kafka is called consuming data.

[0090] b: Determine whether cleaning is needed, if yes, continue cleaning, if no, end;

[0091] c: Read the operator flow chart from the dispatch center;

[0092] d: Use the reflection principle of JAVA to call related operators for cleaning operations;

[0093] e: The cleaned data enters the data warehouse;

[0094] f: Feedback the data cleaning and storage results to the dispatch center;

[0095] g:End.

[0096] like Figure 1 The overall technical architecture is: relational database, text data and excel data are uniformly encapsulated through a unified data access module and pushed into the distributed message queue Kafka. Other types of data do not need to be pushed to Kafka. Each computing node in the computing cluster consumes data in Kafka as a consumer, obtains the operator flow chart from the scheduling center, cleans it according to the relevant operators in the flow chart, and finally outputs the cleaned results to the data warehouse.

[0097] The computing node actively pulls messages from Kafka, reads the nameId field from the message, and communicates with the dispatch center to determine whether the nameId exists. If not, the message is skipped. If it exists, the cleaning phase begins. The computing node obtains the operator flow chart from the dispatch center based on the nameId. The reflection principle of JAVA (a computer language) is used to call related operators for cleaning operations.

[0098] like Figure 2 ,The data cleaning process of step (3) is: a: consuming data from Kafka, reading data in Kafka is called consuming data;

[0099] b: Determine whether cleaning is needed, if yes, continue cleaning, if no, end;

[0100] c: Read the operator flow chart from the dispatch center;

[0101] d: Use the reflection principle of JAVA to call related operators for cleaning operations;

[0102] e: The cleaned data enters the data warehouse;

[0103] f: Feedback the data cleaning and storage results to the dispatch center;

[0104] g:End.

[0105] The present invention adopts the distributed message queue Kafka to uniformly access data, unifies the data source format through Kafka, solves the complex and diverse problems of multiple data sources, and facilitates unified data cleaning and processing; multiple computing nodes are deployed in a distributed parallel form, can be dynamically expanded horizontally according to demand, and have strong robustness in the face of large quantities of data; the cleaning process can meet most of the cleaning process work through drag-and-drop design, and has strong versatility.

[0106] Other parts not described belong to the prior art.

Claims

1. A method for cleaning massive data based on streaming computing, characterized in that The steps include: (1) Heterogeneous data sources access data uniformly through the data access module and push it into the message queue Kafka in a unified format, waiting for data cleaning, and feeding back the access status to the dispatch center; The unified access data format includes: A: The unique identifier of the data is uuid; B: unique identifier of the data source, nameId; C: data generation timestamp; D: field name fields; E: data content datas; (2) Configuring cleaning operators and designing operator flow charts include A: Configure the cleaning operator in the operator management interface of the dispatch center; B: According to different cleaning requirements, various operators are connected in a certain order to form an operator flow chart; The node types of the operator flow chart mainly include: (1) Start node, marking the beginning of a process; (2) Operator nodes, configured with different operators; (3) Judgment node, configure different branch judgments; (4) End node, marking the end of a process; The main steps of the design operator flow chart include: (1) Drag a start node to the canvas; (2) Drag the operator node to the canvas and configure the operator type; (3) If there is a judgment node, drag the judgment node to the canvas; (4) Drag the end node to the canvas; (5) Connect all nodes with lines according to the operator process; (6) Save the operator process; (3) The computing nodes in the computing cluster communicate with the dispatching center, call the operator flow chart designed in step (2), perform cleaning operations according to the process of the designed operator flow chart, and feed back the cleaning operation status to the dispatching center; The data cleaning process of step (3) is: a: Consuming data from Kafka. Reading data from Kafka is called consuming data. The computing node actively pulls messages from Kafka and reads the nameId field from the message. b: Determine whether cleaning is needed, if yes, continue cleaning, if no, end; the dispatch center communicates to determine whether nameId exists, if not, skip the message, if yes, enter the cleaning phase; c: Read the operator flow chart from the scheduling center; the computing node obtains the operator flow chart from the scheduling center according to the nameId; d: Use the reflection principle of JAVA to call related operators for cleaning operations; e: The cleaned data enters the data warehouse; f: Feedback the data cleaning and storage results to the dispatch center; g:End.

2. The method for cleaning massive data based on streaming computing according to claim 1 is characterized in that The heterogeneous data sources include relational databases, text data and Excel data.

3. The method for cleaning massive data based on streaming computing according to claim 1 or 2, characterized in that The cleaning operator mainly includes: A1: Replace Chinese characters operator; A2: dictionary replacement operator; A3: Extract field operator; A4: Conditional filtering operator; A5: Deduplication operator; A6: Output operator.

4. The method for cleaning massive data based on streaming computing according to claim 1 is characterized in that The computing cluster is composed of multiple computing nodes, each of which can run a separate operator process, and the number of computing nodes can be configured according to computing needs.