Mass data processing method and system
Through the preprocessing of massive data and the use of distributed storage systems, combined with the task splitting and monitoring optimization of the load balancing module, the problem of insufficient massive data processing performance and complex data relationships is solved, and efficient parallel processing and high concurrent access are achieved. ability.
Patent Information
- Application Number
- CN202410726343.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing data processing methods have insufficient performance when faced with massive data, cannot meet processing needs, are difficult to support complex data structures and data relationships, and are difficult to cope with high concurrent access and real-time processing.
By preprocessing massive data, converting it into a suitable data format, and storing the preprocessed data in a distributed storage system, the load balancing module is used to split the task into subtasks and distribute them to multiple computing nodes. Perform parallel processing, monitor in real time and dynamically adjust task allocation strategies.
It improves the efficiency and performance of data processing, supports complex data structures and relationships, can cope with high concurrent access and real-time processing requirements, and improves the flexibility and reliability of data processing.
Smart Images

Figure CN118689397A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method and system for processing massive data. Background Art
[0002] With the rapid development of Internet technology, the processing of massive data has become an urgent problem to be solved. Existing data processing methods usually use relational databases or distributed storage systems to store and process data. However, when faced with massive data, these traditional methods often have the following problems:
[0003] (1) The performance of data storage and processing is insufficient to meet the needs of processing massive data;
[0004] (2) Insufficient support for complex data structures and data relationships, resulting in low data processing efficiency;
[0005] (3) It is difficult to cope with high concurrent access and real-time processing requirements of data. Summary of the invention
[0006] In view of the needs and shortcomings of current technological development, the present invention provides a method and system for processing massive data to improve the processing performance of massive data, support complex data structures and data relationships, and cope with high concurrent access and real-time processing requirements of data.
[0007] In the first aspect, the present invention provides a method for processing massive data, and the technical solution adopted to solve the above technical problems is as follows:
[0008] A method for processing massive data comprises the following steps:
[0009] S1. Preprocess the massive data and convert the data into a pre-set data format;
[0010] S2. storing the preprocessed data in a distributed storage system, where the distributed storage system includes a plurality of storage nodes;
[0011] S3. Split the task to be processed into multiple subtasks according to data processing requirements, assign the multiple subtasks to different computing nodes, and perform data processing operations;
[0012] S4. Store the execution results of the computing nodes in the distributed storage system to facilitate subsequent data access and processing.
[0013] Optionally, step S1 is performed to pre-process the massive data, specifically including:
[0014] Remove duplicate data, null data, and outliers;
[0015] Structuring unstructured data and converting it into pre-set structured data;
[0016] Index and compress structured data.
[0017] Optionally, executing step S2 to store the preprocessed data in a distributed storage system specifically includes:
[0018] Divide the preprocessed data into multiple data blocks according to rows or columns, and generate index information for each data block;
[0019] A redundant storage mechanism is used to copy each data block to multiple storage nodes in the distributed storage system.
[0020] Preferably, the distributed storage system involved adopts a distributed file system or a distributed database.
[0021] Optionally, the step S3 involved specifically includes:
[0022] According to data processing requirements, split the task to be processed into multiple subtasks that can be processed in parallel;
[0023] Obtain a list of available computing nodes through cluster management tools or node discovery mechanisms;
[0024] Select computing nodes based on the node's resource status and task requirements;
[0025] Assign subtasks to the selected computing nodes and record the correspondence between tasks and computing nodes;
[0026] Monitor the task execution status of each computing node in real time, including CPU utilization, memory usage, disk I / O, as well as task progress and running status, and dynamically adjust the task allocation strategy based on the monitoring data.
[0027] In a second aspect, the present invention provides a massive data processing system, and the technical solution adopted to solve the above technical problems is as follows:
[0028] A massive data processing system, comprising:
[0029] A preprocessing module is used to preprocess massive data and convert the data into a preset data format;
[0030] A distributed storage module, used for storing the preprocessed data in a distributed storage system, wherein the distributed storage system includes a plurality of storage nodes;
[0031] The load balancing module is used to split the task to be processed into multiple subtasks according to data processing requirements and distribute the multiple subtasks to different computing nodes;
[0032] A data processing module, used to perform data processing operations on the computing nodes;
[0033] The result storage module is used to store the execution results of the computing nodes in the distributed storage system to facilitate subsequent data access and processing.
[0034] Optionally, the preprocessing module involved preprocesses the massive data and converts the data into a preset data format. The specific process includes:
[0035] Remove duplicate data, null data, and outliers;
[0036] Structuring unstructured data and converting it into pre-set structured data;
[0037] Index and compress structured data.
[0038] Optionally, the distributed storage module stores the preprocessed data in a distributed storage system, and the specific process includes:
[0039] Divide the preprocessed data into multiple data blocks according to rows or columns, and generate index information for each data block;
[0040] A redundant storage mechanism is used to copy each data block to multiple storage nodes in the distributed storage system.
[0041] Preferably, the distributed storage system involved adopts a distributed file system or a distributed database.
[0042] Optionally, the load balancing modules involved specifically include:
[0043] A splitting unit is used to split the task to be processed into multiple subtasks that can be processed in parallel according to data processing requirements;
[0044] A list acquisition unit is used to obtain a list of available computing nodes through a cluster management tool or a node discovery mechanism;
[0045] The monitoring and optimization unit is used to monitor the task execution status of each computing node in real time, including CPU utilization, memory usage, disk I / O, as well as task progress and running status, and dynamically adjust the task allocation strategy based on the monitoring data.
[0046] Compared with the prior art, the method and system for processing massive data of the present invention have the following beneficial effects:
[0047] The present invention converts massive data into a data format suitable for processing through preprocessing, thereby improving the efficiency of data processing; utilizes a distributed storage system to store and process massive data, thereby improving the performance and scalability of data processing; realizes parallel processing by allocating processing tasks to multiple computing nodes, thereby improving the speed of data processing; supports complex data structures and data relationships, thereby improving the flexibility of data processing; and can cope with high concurrent access to data and real-time processing requirements, thereby improving the real-time and reliability of data processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Attached Figure 1 is a flow chart of a method according to Embodiment 1 of the present invention;
[0049] Attached Figure 2 This is a module connection block diagram of the second embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to make the technical solution, the technical problem solved and the technical effect of the present invention more clearly understood, the technical solution of the present invention is clearly and completely described below in conjunction with specific embodiments.
[0051] Embodiment 1:
[0052] Combined with Figure 1 This embodiment proposes a method for processing massive data, which includes the following steps:
[0053] S1. First, pre-process the massive data and convert the data into a pre-set data format, including:
[0054] Remove duplicate data, null data, and outliers;
[0055] Structuring unstructured data and converting it into pre-set structured data;
[0056] Index and compress structured data.
[0057] S2. storing the preprocessed data in a distributed storage system, wherein the distributed storage system includes a plurality of storage nodes, specifically including:
[0058] Divide the preprocessed data into multiple data blocks according to rows or columns, and generate index information for each data block;
[0059] A redundant storage mechanism is used to copy each data block to multiple storage nodes in the distributed storage system.
[0060] The distributed storage system involved in this embodiment adopts a distributed file system or a distributed database.
[0061] S3. According to the data processing requirements, the task to be processed is split into multiple subtasks, and the multiple subtasks are assigned to different computing nodes to perform data processing operations, including:
[0062] S3.1. According to data processing requirements, split the task to be processed into multiple subtasks that can be processed in parallel;
[0063] S3.2. Obtain a list of available computing nodes through cluster management tools or node discovery mechanisms;
[0064] S3.3, select computing nodes according to the node resource status and task requirements;
[0065] S3.4, assigning subtasks to the selected computing nodes, and recording the corresponding relationship between the tasks and the computing nodes;
[0066] S3.5. Monitor the task execution status of each computing node in real time, including CPU utilization, memory usage, disk I / O, as well as task progress and running status, and dynamically adjust the task allocation strategy based on the monitoring data.
[0067] The computing node involved in this embodiment is a physical execution entity of the distributed computing framework Hadoop MapReduce or ApacheSpark, and carries the running tasks of the distributed computing framework Hadoop MapReduce or Apache Spark. Among them: ① In Apache Spark, the computing node and the storage node are often the same node. This design allows Spark to process data more efficiently because the data can be directly processed on the same node where they are stored, reducing the need for network transmission; Spark's scheduler will try to execute tasks on the nodes containing data (i.e. data locality scheduling), which further reduces the delay of data processing and the demand for network bandwidth, maximizes data processing efficiency and resource utilization, and ensures the efficiency and reliability of data processing. ② In Hadoop MapReduce, the computing node and the storage node usually refer to the same node; the distributed computing framework Hadoop MapReduce adopts a "divide and conquer" strategy, dividing a large task into multiple small tasks, and processing them in parallel on multiple computing nodes. Each node is responsible for executing the Map task and Reduce task of a part of the data, and finally summarizing the results; under the MapReduce architecture, the integration of computing nodes and storage nodes not only optimizes the data processing process, but also reduces system complexity and cost. This design makes the Hadoop platform ideal for processing large-scale data sets, especially in scenarios that require high throughput and high fault tolerance.
[0068] S4. Store the execution results of the computing nodes in the distributed storage system to facilitate subsequent data access and processing.
[0069] Embodiment 2:
[0070] Combined with Figure 2 , this embodiment proposes a massive data processing system, which includes:
[0071] A preprocessing module is used to preprocess massive data and convert the data into a preset data format;
[0072] A distributed storage module, used for storing the preprocessed data in a distributed storage system, wherein the distributed storage system includes a plurality of storage nodes;
[0073] The load balancing module is used to split the task to be processed into multiple subtasks according to data processing requirements and distribute the multiple subtasks to different computing nodes;
[0074] A data processing module, used to perform data processing operations on the computing nodes;
[0075] The result storage module is used to store the execution results of the computing nodes in the distributed storage system to facilitate subsequent data access and processing.
[0076] In this embodiment, the preprocessing module involved preprocesses the massive data and converts the data into a preset data format. The specific process includes:
[0077] Remove duplicate data, null data, and outliers;
[0078] Structuring unstructured data and converting it into pre-set structured data;
[0079] Index and compress structured data.
[0080] In this embodiment, the distributed storage module stores the preprocessed data in the distributed storage system. The specific process includes:
[0081] Divide the preprocessed data into multiple data blocks according to rows or columns, and generate index information for each data block;
[0082] A redundant storage mechanism is used to copy each data block to multiple storage nodes in the distributed storage system.
[0083] The distributed storage system involved in this embodiment adopts a distributed file system or a distributed database.
[0084] In this embodiment, the load balancing module involved specifically includes:
[0085] A splitting unit is used to split the task to be processed into multiple subtasks that can be processed in parallel according to data processing requirements;
[0086] A list acquisition unit is used to obtain a list of available computing nodes through a cluster management tool or a node discovery mechanism;
[0087] The monitoring and optimization unit is used to monitor the task execution status of each computing node in real time, including CPU utilization, memory usage, disk I / O, as well as task progress and running status, and dynamically adjust the task allocation strategy based on the monitoring data.
[0088] The computing node involved in this embodiment is a physical execution entity of the distributed computing framework Hadoop MapReduce or ApacheSpark, and carries the running tasks of the distributed computing framework Hadoop MapReduce or Apache Spark. Among them: ① In Apache Spark, the computing node and the storage node are often the same node. This design allows Spark to process data more efficiently because the data can be directly processed on the same node where they are stored, reducing the need for network transmission; Spark's scheduler will try to execute tasks on the nodes containing data (i.e. data locality scheduling), which further reduces the delay of data processing and the demand for network bandwidth, maximizes data processing efficiency and resource utilization, and ensures the efficiency and reliability of data processing. ② In Hadoop MapReduce, the computing node and the storage node usually refer to the same node; the distributed computing framework Hadoop MapReduce adopts a "divide and conquer" strategy, dividing a large task into multiple small tasks, and processing them in parallel on multiple computing nodes. Each node is responsible for executing the Map task and Reduce task of a part of the data, and finally summarizing the results; under the MapReduce architecture, the integration of computing nodes and storage nodes not only optimizes the data processing process, but also reduces system complexity and cost. This design makes the Hadoop platform ideal for processing large-scale data sets, especially in scenarios that require high throughput and high fault tolerance.
[0089] In summary, the method and system for processing massive data of the present invention can improve the processing performance of massive data, support complex data structures and data relationships, and cope with high concurrent access and real-time processing requirements of data.
[0090] The above specific examples are used to explain the principles and implementation methods of the present invention in detail. These examples are only used to help understand the core technical content of the present invention. Based on the above specific embodiments of the present invention, any improvements and modifications made by technicians in this technical field without departing from the principles of the present invention should fall within the scope of patent protection of the present invention.
Claims
1. A method for processing massive data, characterized in that: The steps include: S1. Preprocess the massive data and convert the data into a pre-set data format; S2. storing the preprocessed data in a distributed storage system, where the distributed storage system includes a plurality of storage nodes; S3. Split the task to be processed into multiple subtasks according to data processing requirements, assign the multiple subtasks to different computing nodes, and perform data processing operations; S4. Store the execution results of the computing nodes in the distributed storage system to facilitate subsequent data access and processing.
2. A method for processing massive data according to claim 1, characterized in that: Execute step S1 to pre-process the massive data, specifically including: Remove duplicate data, null data, and outliers; Structuring unstructured data and converting it into pre-set structured data; Index and compress structured data.
3. A method for processing massive data according to claim 1, characterized in that: Execute step S2 to store the preprocessed data in the distributed storage system, specifically including: Divide the preprocessed data into multiple data blocks according to rows or columns, and generate index information for each data block; A redundant storage mechanism is used to copy each data block to multiple storage nodes in the distributed storage system.
4. A method for processing massive data according to claim 3, characterized in that: The distributed storage system adopts a distributed file system or a distributed database.
5. A method for processing massive data according to claim 3, characterized in that: The step S3 specifically includes: According to data processing requirements, split the task to be processed into multiple subtasks that can be processed in parallel; Obtain a list of available computing nodes through cluster management tools or node discovery mechanisms; Select computing nodes based on the node's resource status and task requirements; Assign subtasks to the selected computing nodes and record the correspondence between tasks and computing nodes; Monitor the task execution status of each computing node in real time, including CPU utilization, memory usage, disk I / O, as well as task progress and running status, and dynamically adjust the task allocation strategy based on the monitoring data.
6. A mass data processing system, characterized in that: include: A preprocessing module is used to preprocess massive data and convert the data into a preset data format; A distributed storage module, used for storing the preprocessed data in a distributed storage system, wherein the distributed storage system includes a plurality of storage nodes; The load balancing module is used to split the task to be processed into multiple subtasks according to data processing requirements and distribute the multiple subtasks to different computing nodes; A data processing module, used to perform data processing operations on the computing nodes; The result storage module is used to store the execution results of the computing nodes in the distributed storage system to facilitate subsequent data access and processing.
7. A mass data processing system according to claim 6, characterized in that: The preprocessing module preprocesses the massive data and converts the data into a preset data format. The specific process includes: Remove duplicate data, null data, and outliers; Structuring unstructured data and converting it into pre-set structured data; Index and compress structured data.
8. A mass data processing system according to claim 6, characterized in that: The distributed storage module stores the preprocessed data in the distributed storage system. The specific process includes: Divide the preprocessed data into multiple data blocks according to rows or columns, and generate index information for each data block; A redundant storage mechanism is used to copy each data block to multiple storage nodes in the distributed storage system.
9. A mass data processing system according to claim 8, characterized in that: The distributed storage system adopts a distributed file system or a distributed database.
10. A mass data processing system according to claim 6, characterized in that: The load balancing module specifically includes: A splitting unit is used to split the task to be processed into multiple subtasks that can be processed in parallel according to data processing requirements; A list acquisition unit is used to obtain a list of available computing nodes through a cluster management tool or a node discovery mechanism; The monitoring and optimization unit is used to monitor the task execution status of each computing node in real time, including CPU utilization, memory usage, disk I / O, as well as task progress and running status, and dynamically adjust the task allocation strategy based on the monitoring data.
Citation Information
Patent Citations
Picture processing system and method and related device and equipment
CN109918184A
Design method of real-time available cluster management system
CN110784350A
Task scheduling balance optimization method and device
CN113806043A
Cited By
Electronic file data processing method and system based on big data
CN119201880A
A method and system for processing electronic file data based on big data
CN119201880B
Data parallel processing system and processing method
CN121144025A
