A pluggable distributed document automatic cleaning system

By introducing parameter verification devices, plug-in combiners and task schedulers into the data cleaning system, combined with the distributed processing of Spark clusters, the problem of inefficiency in traditional data cleaning tools when facing diversified data structures is solved, and high efficiency is achieved , general data processing and scalability.

CN111966672BActive Publication Date: 2024-11-29CETC BIGDATA RES INST CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010825586.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-17
Publication Date
2024-11-29
Estimated Expiration
2040-08-17

AI Technical Summary

Technical Problem

When facing diversified data structures, traditional data cleaning tools need to frequently modify programs, resulting in inefficient processing and unable to meet the performance requirements of large-scale data processing.

Method used

A pluggable distributed official document automation cleaning system is designed, including parameter verification, plug-in combiner and task scheduler. Data verification and conversion is carried out through configuration parameters, and distributed processing is achieved using Spark cluster to support multiple data Source and output formats that allow developers to write plug-in extensions.

Benefits of technology

It realizes a platform-based data cleaning platform, improves the universality and efficiency of data processing, can efficiently process large-scale data sets, and supports scalability, reducing the development burden of data cleaning personnel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111966672B_ABST
    Figure CN111966672B_ABST
Patent Text Reader

Abstract

The present invention provides a pluggable distributed document automatic cleaning system, including a parameter checker, a plug-in combiner, and a task scheduler; the parameter checker obtains the configuration parameters transmitted dynamically; the plug-in combiner selects the field of the read-in data according to the configuration and calls the cleaning item plug-in to convert the data. The present invention is easy to platformize and can be deployed to a data center. As a data cleaning platform, data processing personnel can achieve the purpose of data cleaning according to the configuration; it has versatility, can read data from multiple sources, and perform various forms of conversion, and can be output to different locations in different forms after the conversion, which can be completed through configuration; it is highly efficient, the bottom layer is a distributed system, and it also has good data processing capabilities for large-scale data sets; it is highly extensible, and when the system plug-in cannot complete the required cleaning function, you can develop your own plug-in and integrate it into the system to complete a specific cleaning function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a pluggable distributed automatic document cleaning system. Background Art

[0002] With the advent of the big data era, the types and amount of data are increasing day by day. How to mine the value of massive data has become a hot topic in the current big data field, and cleaning of massive data has also become an important part of data mining. Data cleaning integrates data from multiple sources and extracts standardized data sets according to the requirements of feature engineering, providing a data foundation for algorithm models.

[0003] Traditional data cleaning tools generally process data on a single node, but in the face of the ever-increasing amount of data, a single node cannot meet the performance requirements. Distributed processing tools then emerged, which greatly improved the processing capabilities of large-scale data sets. However, current data sources are wide-ranging and data structures are also diverse. When the data structure changes, the cleaning task will become unusable, and data cleaning personnel must modify the program to adapt to the diversity of the data, which greatly reduces the efficiency of data cleaning. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides a pluggable distributed automatic document cleaning system, which can effectively solve the problems of data diversity and processing efficiency.

[0005] The present invention is achieved through the following technical solutions.

[0006] The present invention provides a pluggable distributed document automatic cleaning system, comprising a parameter checker, a plug-in combiner, and a task scheduler; the parameter checker obtains dynamically transmitted configuration parameters; the plug-in combiner selects the field of the read-in data according to the configuration and calls the cleaning item plug-in to convert the data; the task scheduler performs distributed operation on the complete cleaning task according to the scheduling time of the configuration parameters; the parameter checker, the plug-in combiner, and the task scheduler are all deployed in the same software layer.

[0007] The configuration parameters are to configure data output, data input and task scheduling parameters, and the data conversion item is an optional configuration.

[0008] The parameter checker checks the data source configuration, data conversion configuration, data output configuration, and scheduling parameters.

[0009] The task scheduler also records the processing status of the task.

[0010] The software layers where the parameter checker, plug-in combiner and task scheduler are located are located above the computing layer, and the computing layer is built by a Spark cluster.

[0011] The task scheduler converts multiple plug-ins into a spark task.

[0012] The plug-in assembler also reads data from various sources according to the configuration.

[0013] The plug-in combiner also selects the output format and location of the converted data according to the configuration.

[0014] The beneficial effects of the present invention are: it is easy to platformize and can be deployed in a data center. As a data cleaning platform, data processing personnel can achieve the purpose of data cleaning according to the configuration; it has versatility and can read data from multiple sources and perform various forms of conversion. After the conversion, it can be output to different locations in different forms, which can be completed through configuration; it is highly efficient, with a distributed system at the bottom layer, and has good data processing capabilities for large-scale data sets; it is highly extensible, and when the system plug-in cannot complete the required cleaning function, you can develop your own plug-in and integrate it into the system to complete a specific cleaning function. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 is a schematic diagram of the present invention;

[0016] Figure 2 It is a flow chart of the use and execution process of the present invention. DETAILED DESCRIPTION

[0017] The technical solution of the present invention is further described below, but the scope of protection claimed is not limited to the description.

[0018] like Figure 1 A pluggable distributed document automation cleaning system is shown, including a parameter checker, a plug-in combiner, and a task scheduler; the parameter checker obtains the dynamically transmitted configuration parameters; the plug-in combiner selects the field of the data to be read according to the configuration and calls the cleaning item plug-in to convert the data; the task scheduler performs distributed operation on the complete cleaning task according to the scheduling time of the configuration parameters; the parameter checker, the plug-in combiner, and the task scheduler are all deployed in the same software layer.

[0019] The configuration parameters are: data output, data input and task scheduling parameters. Data conversion items are optional.

[0020] Parameter verifier verifies data source configuration, data conversion configuration, data output configuration, and scheduling parameters.

[0021] The task scheduler also records the processing status of the task.

[0022] The software layers where the parameter validator, plugin combiner, and task scheduler are located are located above the computing layer, which is built by the Spark cluster.

[0023] The task scheduler converts multiple plugins into a spark task.

[0024] Plugin combiners also read data from a variety of sources depending on the configuration.

[0025] The plugin composer also selects the output format and location of the transformed data based on the configuration.

[0026] Example 1

[0027] Using the above solution, the entire system is deployed on a Linux server. The system is divided into three layers from top to bottom: service layer: mainly for the cleaning service of this system, responsible for the combination and scheduling of the entire cleaning task; computing layer: mainly for the spark cluster, and the specific cleaning tasks are processed by saprk in a distributed manner; storage layer: this layer is some databases or file systems for data storage.

[0028] The cleaning service is the core of the system, including parameter checker, plug-in combiner, and task scheduler, among which:

[0029] The parameter validator obtains the dynamically passed configuration parameters and verifies the parameters. If the verification passes, the plug-in combiner is called for execution according to the configuration items of the parameters.

[0030] The plug-in combiner is divided into data source plug-in selector, data conversion combiner, and data output selector. The data source selector will read data from different sources according to the configuration. The data conversion combiner will select different fields of the data to be read according to the configuration and call different cleaning item plug-ins to perform various conversions on the data. The data output selector will select the form and location of the converted data to be output according to the configuration.

[0031] The task scheduler will distribute and run the above complete cleaning tasks according to the scheduling time of the configuration parameters and record the processing status of the tasks.

[0032] Configuration parameters: data output, data input, and task scheduling parameters must be configured. Data conversion items are optional.

[0033] The parameter verifier will verify the data source configuration, data conversion configuration, data output configuration, and scheduling parameters.

[0034] Distributed is a distributed task based on the spark framework. The task scheduler converts various plug-ins into a spark task and submits it to the spark cluster for distributed operation.

[0035] When implementing it, you should pay attention to the following:

[0036] 1. Configuration parameters

[0037] (1) Data source configuration. Data source is a mandatory configuration. At least one data source must be selected. The present invention has integrated a variety of data source plug-ins, such as jdbc, json, text files, etc., which can read structured data as well as unstructured data. When there are two or more configured data sources, it is necessary to configure how to merge multiple data sources in the cleaning item configuration.

[0038] (2) Cleaning item configuration. Cleaning items are optional. When no cleaning items are configured, the system will run with the function of copying data. Multiple cleaning items can be configured. Each cleaning item needs to specify input fields, output fields and other configurations. Multiple cleaning items will perform multiple cleaning transformations on the same data set.

[0039] (3) Data output configuration. Data output is a mandatory configuration. At least one data output should be configured. The present invention has integrated a variety of data output configuration plug-ins, such as jdbc, json, text files, etc., which can be output to traditional relational databases or to hadoop distributed file systems.

[0040] (4) Task scheduling configuration. Task scheduling is a required parameter. The time point and frequency of the entire task execution need to be configured. The optional configuration is the memory and CPU core number occupied when the entire task is running.

[0041] The cleaning task needs to be configured according to the above parameter configuration rules, otherwise the parameter validator will throw an exception, prompting the user that the parameters are incorrect and the task cannot be run.

[0042] 2. Data conversion

[0043] The present invention provides a variety of cleaning items, including string splitting, string replacement, time extraction, HTML format conversion, field addition, etc. When the plug-in provided by the system cannot meet specific requirements, you need to write your own plug-in. This system is written in Java language, and developers need to implement the specified Java interface to seamlessly integrate their own plug-in into the system.

[0044] 3. Task Scheduling

[0045] This system is based on the open source distributed framework spark to complete the distribution and execution of distributed tasks. Before deploying this system, you need to deploy the java environment and spark cluster in advance.

[0046] The system can configure the memory and CPU cores for task operation. When the resources provided by the system are less than the configured resources, the resources provided by the system shall prevail. When the maximum resources that the system can provide cannot meet the current data volume, the nodes of the spark cluster can be increased to dynamically expand the cluster scale and increase the available resources of the system.

[0047] This system is a batch processing system, that is, it processes a batch of data at a time. It can achieve near real-time processing by reducing the scheduling time interval. If you need to process incremental data, this system supports specifying incremental fields. The system only processes the specified incremental data at each scheduling.

[0048] 4. Task monitoring

[0049] The task scheduler of the present invention will record the task ID, the running status of the task, the key information such as the cause of the processing failure error, etc. each time the task is executed, and store them in the mysql database. The task monitoring information of this system is stored in the mysql database, and the mysql database needs to be deployed in advance. The system will record detailed operation logs during operation. When an error occurs in the task operation, the detailed operation logs can be viewed to further troubleshoot the problem.

[0050] Use and execution process Figure 2 As shown in the figure, the parameter verifier of the cleaning service obtains the parameters and performs rule verification. After the rule verification is successful, the plug-in combiner combines the data source plug-in, data conversion plug-in, and data output plug-in. Finally, the task scheduler generates a spark task and submits it to the spark cluster for distributed processing. If an exception is thrown during the whole process, the system will prompt the user to perform the corresponding operation. Therefore, the combination of different plug-ins is realized through configuration to form a complete data cleaning task. The whole process does not require writing execution code. The data processing in the system adopts a distributed method, which greatly improves the data processing capability and achieves high efficiency.

Claims

1. A pluggable distributed document automatic cleaning system, including a parameter checker, a plug-in combiner, and a task scheduler, characterized in that: The parameter checker obtains the dynamically transmitted configuration parameters; the plug-in combiner selects the field of the read data according to the configuration and calls the cleaning item plug-in to convert the data; the task scheduler performs distributed operation on the complete cleaning task according to the scheduling time of the configuration parameters; the parameter checker, plug-in combiner and task scheduler are all deployed in the same software layer; The software layers where the parameter checker, plug-in combiner and task scheduler are located are located above the computing layer, and the computing layer is built by a Spark cluster; the task scheduler converts multiple plug-ins into a spark task; the plug-in combiner also reads data from multiple sources according to the configuration; the plug-in combiner also selects the output format and location of the converted data according to the configuration.

2. The pluggable distributed document automatic cleaning system according to claim 1, characterized in that: The configuration parameters are to configure data output, data input and task scheduling parameters, and the data conversion item is an optional configuration.

3. The pluggable distributed document automatic cleaning system according to claim 1, characterized in that: The parameter checker checks the data source configuration, data conversion configuration, data output configuration, and scheduling parameters.

4. The pluggable distributed document automatic cleaning system according to claim 1, characterized in that: The task scheduler also records the processing status of the task.

Citation Information

Patent Citations

  • Medical data exchange and sharing system and method based on big data technology

    CN111161818A