Mass data comparison method and device and storage medium

By decomposing and analyzing massive data through the divide-and-conquer method and the consistency comparison method, the problem of low efficiency and accuracy of massive data comparison in the existing technology is solved, and fast, efficient, and accurate data comparison results are achieved.

CN118796889APending Publication Date: 2024-10-18CHINA MOBILE GRP GUANGDONG CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410554170.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-07
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing technologies have low efficiency and accuracy when processing massive data comparisons, resulting in data audit operations that cannot be completed or are inefficient, and traditional methods cannot meet complex and diverse data requirements.

Method used

Use the divide-and-conquer method to decompose feature extraction of the target data, use the fragment sorting algorithm and the exhaustive translation incremental comparison method or the consistency comparison method in the form of Key-Value to perform consistency comparison analysis, merge the comparison results, and finally perform verification to obtain the final result. data comparison results.

Benefits of technology

It achieves efficient and high-precision data comparison, can quickly process massive data, meets complex and diverse data requirements, and improves the accuracy of data consistency analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796889A_ABST
    Figure CN118796889A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, in particular to a mass data comparison method, device and equipment and a computer storage medium. According to the mass data comparison method, a data comparison scheme with a divide-and-conquer idea is adopted, data is differentiated into more reasonable segments capable of being efficiently processed, two selectable inspection methods are provided according to data features, finally, accuracy verification is further carried out, independent analysis results are combined, and a final comparison result is obtained; the method provided by the invention meets the requirements of high efficiency and high accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, equipment and computer storage medium for comparing massive data. Background Art

[0002] The existing methods for comparing massive data include the following solutions:

[0003] By finding the differences in the data of each field in each table between the primary database and the backup database, the comparison result can be obtained by traversing the file only once, and the data check between the primary and backup databases of massive data can be completed efficiently, solving the problems of low efficiency and high cost of direct comparison between databases and the problem that general Merge comparison tools cannot compare massive data.

[0004] Based on the Hadoop cloud platform, massive data is divided into several parts, and the distributed file system is used to schedule the comparison operation of the segmented data. Massive data is compared at one time. The high-performance implementation based on the big data platform solves the memory and performance problems of comparison between conventional databases, as well as the problem that general data comparison tools cannot operate massive data comparison.

[0005] Read multiple data sources, pre-process them using preset data unloading rules, store and identify them in blocks according to data type and content, and subsequently compare the block data with the same identification. This method is used to solve the various problems caused by the comparison of massive data between new and old systems during system reconstruction, and efficiently solves the comparison of new and old data sources in specific industry fields, data with inconsistent data formats and complex mapping rules.

[0006] At present, with the rapid development of the telecommunications industry and business, the diversification of service provisioning methods and acceptance channels, business ordering, service provisioning, and the business rules involved in network element data delivery operations have become relatively complex. The user and business bureau data of each network element between the payment, platform, and business systems are different, and the problems of business, billing, and service are becoming increasingly prominent, becoming service quality issues, and gradually turning into support-type responsibility issues. In this regard, data consistency issues have also been increasingly valued, and major operators have increasingly higher requirements for data quality. The amount of network element data between the payment, platform, and business systems is particularly huge. For example, it is impossible to conduct data audits in a short time. If the audit cycle is repeated or extended, there is a time difference in the compared data, resulting in incorrect comparison results.

[0007] However, the existing mass comparison method has the following disadvantages:

[0008] Existing technologies process massive amounts of data at once. When the amount of data reaches hundreds of millions or billions, it affects the performance of the processing computing environment, resulting in the inability to complete data audit operations or inefficiency, lag, and other abnormalities.

[0009] Existing computing and processing data is basically based on a single host, which is limited by the resources and memory of the single host. The audit efficiency is low, especially when the data comparison algorithm is not efficient. The traditional data audit engine cannot meet the user's audit requirements.

[0010] Existing methods for computing and processing data propose specific data algorithms based on industry data. The algorithms are inefficient and single, and the operating implementation environment is single. They are unable to efficiently and accurately match and process diversified data, and cannot meet the actual complex and diverse data needs.

[0011] To sum up, we need a fast, efficient and accurate data comparison method to conduct data audits. Summary of the invention

[0012] Therefore, the technical problem to be solved by the present invention is to overcome the problems of low efficiency and accuracy in the prior art.

[0013] In order to solve the above technical problems, the present invention provides a mass data comparison method, comprising:

[0014] Step 1: Obtain target data, and use the divide-and-conquer method to decompose and extract features from the target data to obtain multiple independent audit data with different features;

[0015] Step 2: Use the shard sorting algorithm and the exhaustive translation incremental comparison method or the Key-Value consistency comparison method to perform consistency comparison analysis on multiple independent audit data, and merge multiple data consistency comparison results to obtain a list of identical data, a list of different main audit data, and a list of different audited data;

[0016] Step 3: Repeat the contents of steps 1-2 for verifying the different lists of the main audit data and the different lists of the audited data, and merge the verification results with the lists of the same data to obtain the final data comparison results.

[0017] Preferably, the step of decomposing and extracting features from the target data using a divide-and-conquer method comprises:

[0018] Set up multiple decomposition features;

[0019] The target data is recursively extracted according to the multiple decomposition features.

[0020] Preferably, the use of a shard sorting algorithm and an exhaustive translation incremental comparison method or a consistency comparison method in the form of Key-Value to perform consistency comparison analysis on multiple independent audit data includes:

[0021] When the plurality of independent audit data have sortable characteristics or the amount of data is greater than a first preset threshold, the sharding sorting algorithm and the exhaustive translation incremental comparison method are used;

[0022] When the significance of the sortable features of the plurality of independent audit data is lower than the second preset threshold and the amount of data is less than the first preset threshold, the consistency comparison method in the Key-Value form is adopted.

[0023] Preferably, the use of the sharding sorting algorithm and the exhaustive translation incremental comparison method to perform consistency comparison analysis on multiple independent audit data includes:

[0024] defining sorting keywords for the plurality of independent audit data;

[0025] Divide each independent audit data into one or more segments, and read the main audit data segment and the audited data segment therefrom;

[0026] According to the sorting keywords, the obtained multiple main audit data segments and the multiple audited data segments are sorted respectively to obtain a main audit ordered data segment list and an audited ordered data segment list;

[0027] Read and compare the main audit data segments and the audited data segments in the main audit ordered data segment list and the audited ordered data segment list from beginning to end;

[0028] If the two are the same, they are recorded in the data same list; if the main audit data segment is larger than the audited data segment, it is recorded in the audited data different list; if the main audit data segment is smaller than the audited data segment, it is recorded in the main audit data different list.

[0029] Preferably, said dividing each independent audit data into one or more segments comprises:

[0030] Treat each independent audit data as a whole shard or divide each independent audit data into multiple fragments according to the divide-and-conquer method.

[0031] Preferably, the consistency comparison analysis of multiple independent audit data using the consistency comparison method in the form of Key-Value includes:

[0032] Define a key field key for each independent audit data, and map the full data value of the row through the key field;

[0033] Reading main audit data segments and audited data segments from multiple independent audit data;

[0034] Store each main audit data fragment in a key-value format;

[0035] Read the sorted multiple audited data segments from the beginning to the end, calculate the hash value of the corresponding key field, and determine whether there is a main audit data segment with the same key field according to the hash value;

[0036] If it exists, it is recorded in the data same list; if it does not exist, it is recorded in the audited data different list. After the audited data fragments are read, the remaining main audit data fragments are recorded in the main audit data different list.

[0037] Preferably, the mass data comparison method is applied to the Hadoop big data platform, including:

[0038] Set up independent audit data tasks;

[0039] Submit the independent audit data task through MapReduce;

[0040] After the JobTracker receives the idle resource status report from the TaskTracker resource management, it uses the JobTracker to allocate task requests and perform task scheduling, and performs consistency comparison analysis and verification operations;

[0041] When all tasks in the queue have completed their work, merge the consistent result lists.

[0042] The present invention also provides a massive data comparison device, comprising:

[0043] The data divide-and-conquer extraction module is used to obtain target data, decompose and extract features of the target data using the divide-and-conquer method, and obtain multiple independent audit data with different features;

[0044] The consistency comparison analysis module is used to perform consistency comparison analysis on multiple independent audit data using a shard sorting algorithm and an exhaustive translation incremental comparison method or a consistency comparison method in the form of Key-Value, and merge multiple data consistency comparison results to obtain a list of identical data, a list of different main audit data, and a list of different audited data;

[0045] The result verification and output module is used to verify the contents of the data divide-and-conquer extraction module and the consistency comparison and analysis module in the different lists of the main audit data and the different lists of the audited data, and merge the verification results with the identical lists of the data to obtain the final data comparison results.

[0046] The present invention also provides a massive data comparison device, comprising:

[0047] Memory for storing computer programs;

[0048] A processor is used to implement the above-mentioned steps of a method for comparing massive data when executing the computer program.

[0049] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned mass data comparison method are implemented.

[0050] The above technical solution of the present invention has the following advantages compared with the prior art:

[0051] The massive data comparison method described in the present invention adopts a data comparison scheme based on the divide-and-conquer idea, divides the data into more reasonable and efficiently processable segments, and provides two optional audit methods based on data characteristics. Finally, an accuracy check is performed, and the independent analysis results are merged to obtain the final comparison result. The method provided by the present invention meets the requirements of high efficiency and high precision. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein:

[0053] Figure 1 It is a flow chart of implementing a method for comparing massive data provided by the present invention;

[0054] Figure 2 It is a decomposition diagram of the divide and conquer method;

[0055] Figure 3 It is a flowchart of the fragment sorting algorithm and the exhaustive translation incremental comparison method;

[0056] Figure 4 It is a flowchart of the data Key-Value consistency comparison method;

[0057] Figure 5 This is a schematic diagram of the data result verification process;

[0058] Figure 6 This is a diagram of the task execution process of the Hadoop big data platform. DETAILED DESCRIPTION

[0059] The core of the present invention is to provide a method, device, equipment and computer storage medium for comparing massive data, which effectively improves efficiency and accuracy.

[0060] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0061] Please refer to Figure 1 , Figure 1 This is a flow chart of a method for comparing massive data provided by the present invention; the specific operation steps are as follows:

[0062] S101: Obtain target data, and use a divide-and-conquer method to decompose and extract features from the target data to obtain multiple independent audit data with different features;

[0063] S102: Perform consistency comparison analysis on multiple independent audit data using a shard sorting algorithm and an exhaustive translation incremental comparison method or a consistency comparison method in the form of Key-Value, and merge multiple data consistency comparison results to obtain a list of identical data, a list of different primary audit data, and a list of different audited data;

[0064] S103: Repeat S101-S102 to verify the contents of the different lists of the main audit data and the different lists of the audited data, and merge the verification results with the lists of the same data to obtain the final data comparison results.

[0065] Based on the above embodiments, this embodiment describes step S101 in detail:

[0066] In order to solve the problem of excessive amount of operating data in data comparison, we adopted the divide-and-conquer idea to extract data features, thereby decomposing the data into reasonable and efficiently processable states.

[0067] We explain the Divide-and-Conquer method:

[0068] Divide the original problem into n sub-problems that are smaller in scale but similar in structure to the original problem; recursively solve these sub-problems and then merge their results to get the solution to the original problem.

[0069] The divide and conquer pattern has three steps at each level of recursion:

[0070] Divide: Divide the original problem into a series of sub-problems;

[0071] Conquer: Recursively solve each subproblem. If the subproblem is small enough, solve it directly.

[0072] Combine: Combine the results of the sub-problems into a solution to the original problem.

[0073] The use of a divide-and-conquer method to decompose and extract features from the target data includes:

[0074] Set up multiple decomposition features;

[0075] When extracting features from the operator's data, you can decompose and extract features such as business type, time period, operation type (processing, cancellation, etc.), product differentiation, etc., and obtain data based on many features. The data obtained will be independent audit data of many different features. The data is unique and can be synchronized in single or multi-threaded dimensions for data consistency audit operations. When extracting features, feature analysis can make a reasonable assessment of the order of magnitude of differentiated data and subsequent data consistency audit processing.

[0076] Recursively extract the target data according to the multiple decomposition features.

[0077] Complexity of Divide and Conquer:

[0078] like Figure 2 As shown in the figure, a divide-and-conquer algorithm divides a problem of size n into k sub-problems of size n / m to solve. Let the decomposition threshold be , and the problem with the smallest sub-solution size of 1 consumes one unit of time. Let f(n) units of time be required to decompose the original problem into k sub-problems and to merge the solutions of K sub-problems into the solution of the original problem. Let T(n) represent the computational time required for the divide-and-conquer algorithm to solve the problem of size |P|=n.

[0079] It is understandable that after the data extraction is processed by divide-and-conquer differentiation, the entire massive audit data will obtain N independent audit data. A single independent audit data will no longer affect the running memory or performance in terms of order of magnitude calculation comparison, and the order of magnitude comparison audit of independent audit data after differentiation is extremely efficient. The independent audit data is recursively solved and the audit results are merged into the final data consistency comparison result.

[0080] Based on the above embodiments, this embodiment describes step S102 in detail:

[0081] Independent audit data consistency processing, the present invention uses two efficient data consistency analysis and audit methods; the sharding sorting algorithm and the exhaustive translation incremental comparison method are more suitable for data that can be sorted or has obvious sorting characteristics, and secondly, are more suitable for large and massive data processing; the consistency comparison method in the form of Key-Value is suitable for small amounts of data, complex similar comparisons, and data with unclear data characteristics.

[0082] When the plurality of independent audit data have sortable characteristics or the amount of data is greater than a first preset threshold, the shard sorting algorithm and the exhaustive translation incremental comparison method are used;

[0083] When the significance of the sortable features of the plurality of independent audit data is lower than the second preset threshold and the amount of data is less than the first preset threshold, the consistency comparison method in the Key-Value form is adopted.

[0084] The method of using the shard sorting algorithm and the exhaustive translation incremental comparison method to perform consistency comparison analysis on multiple independent audit data includes:

[0085] Define sorting keywords for the plurality of independent audit data:

[0086] Define key fields based on actual business data, such as business code + user code, business processing identification, ordering ID + user ID, etc. Key fields can be used for sorting or data uniqueness comparison.

[0087] Each independent audit data is divided into one or more segments, and the main audit data segment and the audited data segment are read from them:

[0088] We can choose whether to shard the independent audit data:

[0089] Sharding: Using the divide-and-conquer concept, the independent audit data is divided into more reasonable segments, and then sorted by keywords;

[0090] No sharding: Independent audit data is for the entire shard, sorted by keyword.

[0091] According to the sorting keywords, the obtained multiple main audit data segments and the multiple audited data segments are sorted respectively to obtain a main audit ordered data segment list and an audited ordered data segment list;

[0092] Read and compare the main audit data segments and the audited data segments in the main audit ordered data segment list and the audited ordered data segment list from beginning to end;

[0093] If the two are the same, they are recorded in the data same list; if the main audit data segment is larger than the audited data segment, it is recorded in the audited data different list; if the main audit data segment is smaller than the audited data segment, it is recorded in the main audit data different list.

[0094] In one embodiment, the implementation process of the shard sorting algorithm and the exhaustive translation incremental comparison method is as follows: Figure 3 As shown:

[0095] ① Read the main audit data and the audited data fragments (sorted);

[0096] ②Obtain the main audit data A1 and the audited data B1, and read from the beginning to the end of each ordered data segment;

[0097] ③Compare A1 = B1, A1 > B1, A1 < B1. If they are equal, they are the same data, and record the list of identical data; if they are not equal, for the sequence A1 > B1, record the list of different audited data; for the sequence A1 < B1, record the list of different main audit data; A1 and B1 can be compared by keywords. For example, when defining the keyword fields in step 1, determine the unique data definition, or it can be a comparison of the full row data. Obtain the full row data through the keyword fields;

[0098] ④Continue to incrementally obtain the main audit data and the audited data row by row, and perform data comparison until the current ordered segment data is exhausted;

[0099] ⑤When the comparison of the current main audit data and the audited data is completed, determine whether to read the next ordered segment of the main audit data and the audited data, and repeat the above steps 1 to 4 until the data comparison ends;

[0100] ⑥Merge the results of the data consistency comparison to obtain the results of the list of identical data, the list of different main audit data, and the list of different audited data.

[0101] ·As Figure 4 shown, the method for performing consistency comparison and analysis on multiple independent audit data using the Key-Value form of consistency comparison includes:

[0102] Define keyword fields key for each independent audit data, and map the full row data value through the keyword fields:

[0103] Define keyword fields according to the actual business data, such as business code + user code, business handling identifier, order id + user id, etc. Map the full row data value through the keyword key to perform data uniqueness comparison.

[0104] Read the main audit data segment and the audited data segment from multiple independent audit data;

[0105] Store each main audit data segment in the form of key-value;

[0106] Read the independent main audit data stored in memory in the form of key-value. Essentially, it is a hash table. Calculate the hash value through the key to find the corresponding position in the hash table and map the value. Compare whether the data is consistent through the key and the value.

[0107] Read the sorted multiple audited data segments from the beginning to the end, and calculate the hash value of the corresponding key field. According to the hash value, determine whether there is a main audit data segment with the same key field:

[0108] Read the audited data key1-value1 from the beginning to the end of each ordered data segment;

[0109] Calculate the hash value of the key field key1 defined by the audited data key1-value1 to determine whether the main audit data key already exists.

[0110] If it exists, it is recorded in the data same list; if it does not exist, it is recorded in the audited data different list. After the audited data segment is read, the remaining main audit data segment is recorded in the main audit data different list:

[0111] If it already exists, the data is consistent, and the same data list is recorded, and the key-value value of the main audit data is removed; if it does not exist, the different lists of the audited data are recorded; until the audited data list is exhausted, the remaining main audit data key-value list is the different list of the main audit data.

[0112] Based on the above embodiments, this embodiment describes step S103 in detail:

[0113] like Figure 5 As shown, the data difference results are obtained by comparing the data consistency analysis in step S2. In order to ensure that the data consistency rate reaches the foolproof standard and the accuracy of the data consistency analysis, the data difference list file is verified, that is, a secondary data consistency audit is performed on the different list result sets of the main audit data and the different list result sets of the audited data, and the results of the data divide-and-conquer extraction in step S1 and the data consistency analysis comparison in S2 are performed to merge the results of the same list of data to obtain the final data result.

[0114] The above embodiments describe the method and process of massive data comparison. Based on the above principles, efficient data consistency audit and comparison of corresponding program methods can be realized in any data environment, development environment, language environment, system environment, etc., so it is a fast, efficient and accurate general data comparison method principle. In order not to be limited to the expansion of single machine resources or performance efficiency limitations, the embodiments further propose an efficient improvement plan for the data consistency audit principle of the present invention based on the big data platform. Based on this, the expansion of performance resources and the improvement of demand efficiency of the business are met, and a simpler and more efficient option is provided to users. Based on the above data consistency audit algorithm principle algorithm, the efficiency is improved by adding and subtracting node cluster machines on the big data platform, realizing a more flexible and real-time comparison system.

[0115] like Figure 6 As shown, the above-mentioned big data platform is described by taking the Hadoop big data platform as an example. Differentiated independent audit data is obtained when the data is extracted by partitioning in step S1. The data consistency analysis and comparison in step S2 and the data result verification in step S3 are performed as independent tasks with a single independent audit data, that is, the independent audit data extracted by partitioning in step S1 is scheduled as a subtask (jobtracker). Based on this, tasks are submitted through MapReduce on the Hadoop big data platform, and Jobtracker coordinates the running of tasks. The distributed file system (usually HDFS) reads independent audit data to share file data between other entities for data consistency comparison operations.

[0116] ① In step S1, data is extracted by partitioning to obtain independent audit data tasks (jobtracker);

[0117] ②Submit independent audit data tasks (jobtracker) through MapReduce;

[0118] ③JobTracker schedules tasks after receiving tasks submitted by the job;

[0119] ④ JobTracker receives the resource status reported by TaskTracker resource management. If the TaskTracker resources are idle, JobTracker assigns the task request and the task scheduler executes the assigned job. If the TaskTracker resources are not idle, the task (jobtracker) waits in the task queue.

[0120] ⑤ Task execution: perform data consistency analysis and comparison in step S2 and data result verification in step S3 to obtain data consistency audit results until the current task queue is completed;

[0121] ⑦ After all tasks in the queue are completed, the consistency result lists are merged to obtain the lists with the same data, the lists with different main audit data, and the lists with different audited data.

[0122] The present invention describes a method and process for comparing massive data. Based on the above principle, efficient data consistency audit and comparison of corresponding program methods can be implemented in any data environment, development environment, language environment, system environment, etc., so it is a fast, efficient and accurate general data comparison principle method; the present invention implements the corresponding program method, whether it is a stand-alone, database, big data, cluster or other environmental platform, which has high efficiency, and the consideration of data volume level is fully reflected in the process processing of this solution, and the data consistency audit and comparison efficiency can be freely jumped according to the actual environmental resources and performance conditions; the present invention is based on the data quality requirements of the service operator, that is, the data consistency rate must reach a foolproof standard, and the data consistency analysis and audit method adopted by the present invention has a high-accuracy processing capability; in summary, the present invention provides a comprehensive, fast, efficient, real-time and accurate data consistency analysis and data audit support capability method.

[0123] The embodiment of the present invention further provides a massive data comparison device; the specific device may include:

[0124] The data divide-and-conquer extraction module is used to obtain target data, decompose and extract features of the target data using the divide-and-conquer method, and obtain multiple independent audit data with different features;

[0125] The consistency comparison analysis module is used to perform consistency comparison analysis on multiple independent audit data using a shard sorting algorithm and an exhaustive translation incremental comparison method or a consistency comparison method in the form of Key-Value, and merge multiple data consistency comparison results to obtain a list of identical data, a list of different main audit data, and a list of different audited data;

[0126] The result verification and output module is used to verify the contents of the data divide-and-conquer extraction module and the consistency comparison and analysis module in the different lists of the main audit data and the different lists of the audited data, and merge the verification results with the identical lists of the data to obtain the final data comparison results.

[0127] The massive data comparison device of this embodiment is used to implement the aforementioned massive data comparison method. Therefore, the specific implementation method of the massive data comparison device can be seen in the embodiment part of the aforementioned massive data comparison method. For example, the data divide-and-conquer extraction module, the consistency comparison and analysis module, and the result verification and output module are respectively used to implement steps S101, S102, and S103 in the aforementioned massive data comparison method. Therefore, its specific implementation method can refer to the description of the corresponding embodiments of each part, which will not be repeated here.

[0128] A specific embodiment of the present invention further provides a massive data comparison device, comprising: a memory for storing a computer program; and a processor for implementing the steps of the aforementioned massive data comparison method when executing the computer program.

[0129] A specific embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method for comparing massive data are implemented.

[0130] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0131] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0132] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0133] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0134] Obviously, the above embodiments are merely examples for the purpose of clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.

Claims

1. A method for comparing massive data, characterized in that: include: Step 1: Obtain target data and use the divide-and-conquer method to decompose and extract features from the target data. Obtain independent audit data with multiple different characteristics; Step 2: Use the shard sorting algorithm and the exhaustive translation incremental comparison method or the Key-Value consistency comparison method to perform consistency comparison analysis on multiple independent audit data, and merge multiple data consistency comparison results to obtain a list of identical data, a list of different main audit data, and a list of different audited data; Step 3: Repeat the contents of steps 1-2 for verifying the different lists of the main audit data and the different lists of the audited data, and merge the verification results with the lists of the same data to obtain the final data comparison results.

2. The method for comparing massive data according to claim 1, characterized in that: The use of a divide-and-conquer method to decompose and extract features from the target data includes: Set up multiple decomposition features; The target data is recursively extracted according to the multiple decomposition features.

3. The method for comparing massive data according to claim 1, characterized in that: The consistency comparison analysis of multiple independent audit data using the shard sorting algorithm and the exhaustive translation incremental comparison method or the Key-Value form consistency comparison method includes: When the plurality of independent audit data have sortable characteristics or the amount of data is greater than a first preset threshold, the shard sorting algorithm and the exhaustive translation incremental comparison method are used; When the significance of the sortable features of the plurality of independent audit data is lower than the second preset threshold and the amount of data is less than the first preset threshold, the consistency comparison method in the Key-Value form is adopted.

4. The method for comparing massive data according to claim 1, characterized in that: The use of the shard sorting algorithm and the exhaustive translation incremental comparison method to perform consistency comparison analysis on multiple independent audit data includes: defining sorting keywords for the plurality of independent audit data; Divide each independent audit data into one or more segments, and read the main audit data segment and the audited data segment therefrom; According to the sorting keywords, the obtained multiple main audit data segments and the multiple audited data segments are sorted respectively to obtain a main audit ordered data segment list and an audited ordered data segment list; Read and compare the main audit data segments and the audited data segments in the main audit ordered data segment list and the audited ordered data segment list from beginning to end; If the two are the same, they are recorded in the data same list; if the main audit data segment is larger than the audited data segment, it is recorded in the audited data different list; if the main audit data segment is smaller than the audited data segment, it is recorded in the main audit data different list.

5. The method for comparing massive data according to claim 4, characterized in that: The step of dividing each independent audit data into one or more segments includes: Treat each independent audit data as a whole shard or divide each independent audit data into multiple fragments according to the divide-and-conquer method.

6. The method for comparing massive data according to claim 1, characterized in that: The consistency comparison analysis of multiple independent audit data using the consistency comparison method in the form of Key-Value includes: Define a key field key for each independent audit data, and map the full data value of the row through the key field; Reading main audit data segments and audited data segments from multiple independent audit data; Store each main audit data fragment in a key-value format; Read the sorted multiple audited data segments from the beginning to the end, calculate the hash value of the corresponding key field, and determine whether there is a main audit data segment with the same key field according to the hash value; If it exists, it is recorded in the data same list; if it does not exist, it is recorded in the audited data different list. After the audited data fragments are read, the remaining main audit data fragments are recorded in the main audit data different list.

7. The method for comparing massive data according to claim 1, characterized in that: Applied to Hadoop big data platform, including: Set up independent audit data tasks; Submit the independent audit data task through MapReduce; After the JobTracker receives the idle resource status report from the TaskTracker resource management, it uses the JobTracker to allocate task requests and perform task scheduling, and performs consistency comparison analysis and verification operations; When all tasks in the queue have completed their work, merge the consistent result lists.

8. A massive data comparison device, characterized in that: include: The data divide-and-conquer extraction module is used to obtain target data, decompose and extract features of the target data using the divide-and-conquer method, and obtain multiple independent audit data with different features; The consistency comparison analysis module is used to perform consistency comparison analysis on multiple independent audit data using a shard sorting algorithm and an exhaustive translation incremental comparison method or a consistency comparison method in the form of Key-Value, and merge multiple data consistency comparison results to obtain a list of identical data, a list of different main audit data, and a list of different audited data; The result verification and output module is used to verify the contents of the data divide-and-conquer extraction module and the consistency comparison and analysis module in the different lists of the main audit data and the different lists of the audited data, and merge the verification results with the identical lists of the data to obtain the final data comparison results.

9. A massive data comparison device, characterized in that: include: Memory for storing computer programs; A processor, used to implement the steps of a mass data comparison method as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a mass data comparison method as claimed in any one of claims 1 to 7 are implemented.