Cloud Computing-Based Distributed File Data Processing Method and Apparatus
By using distributed storage and data mining models on the cloud computing platform to disassemble tasks and configure algorithms, the problem of low cloud computing data processing efficiency is solved and efficient data processing and storage optimization are achieved.
Patent Information
- Application Number
- CN202410946710.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-16
AI Technical Summary
In the existing technology, cloud computing data processing efficiency is low, which results in complex file data processing and takes up a lot of storage space, affecting efficiency.
Using a distributed file data processing method based on cloud computing, the file data to be processed is uploaded to the distributed storage system through the data mining model, the task is broken down into subtasks, and appropriate mining sub-algorithms and dependencies are configured according to the file format and content tags. Relationship to realize the allocation and processing of data blocks.
It improves the efficiency and speed of data processing, saves storage space, adapts to different data types and processing tasks, and achieves parallel processing and result integration.
Smart Images

Figure CN118484432B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a distributed file data processing method and device based on cloud computing. Background Art
[0002] File data processing refers to the process of parsing, extracting, converting and analyzing various types of files. These files can be text files, spreadsheets, image files, audio files, etc. Through data processing technology, useful information can be obtained from them and further analyzed and applied. The first step in file data processing is to parse the file and extract the data content according to the format and structure of the file. Different parsing tools and techniques can be used for different types of files, such as text parsers, image processing algorithms, etc. Based on file parsing, data with specific meaning or value in the file can be extracted according to needs. These data can be text information, digital data, image features, audio signals, etc., for subsequent analysis and processing. Sometimes the data in the file needs to be converted before it can be effectively used, such as converting data in different formats into a unified format, or cleaning and processing the original data for subsequent analysis.
[0003] However, in the process of using common processing methods, due to the complexity of file types and contents, and the inability to classify and store data in the data processing system, the data call is complicated during calculations, resulting in a large amount of overall storage space occupied during the data processing process, affecting the efficiency of data processing. Summary of the invention
[0004] The present invention provides a distributed file data processing method and device based on cloud computing, which are used to solve the defect of low efficiency in complex data processing during cloud computing in the prior art, and achieve the effect of improving the efficiency and speed of data processing.
[0005] The present invention provides a distributed file data processing method based on cloud computing, comprising:
[0006] Uploading the file data to be processed to the distributed storage system for storage according to target rules to obtain data blocks; the target rules are determined based on the format type of the file data and the content tag of the file data;
[0007] Receive a target data processing task input by a target user through a data mining model, and decompose the target data processing task into various subtasks;
[0008] Each mining sub-algorithm is configured for each distributed file data processing node through a data mining model, and each pre-processed data block is allocated to each distributed file data processing node; the data block allocated to each distributed file data processing node is determined based on the target dependency relationship between each subtask corresponding to each distributed file data processing node and the content label of the file data corresponding to each subtask; the target dependency relationship between each subtask is used to represent at least one of the execution order, data transfer process, resource demand and time limit logical relationship between each subtask;
[0009] By using each distributed file data processing node to mine local frequent item sets for the allocated data blocks based on each configured mining sub-algorithm and the target dependency relationship between each sub-task, each intermediate data is obtained;
[0010] The intermediate data are integrated through the data mining model to obtain the target data processing result to be displayed to the target user.
[0011] According to a distributed file data processing method based on cloud computing provided by the present invention, the method of allocating the pre-processed data blocks to the distributed file data processing nodes includes:
[0012] Analyze the dependency relationship between the subtasks corresponding to each distributed file data processing node, and build a task dependency graph to obtain the subtasks that each subtask depends on;
[0013] According to the content tags of the file data corresponding to each subtask, matching the corresponding data blocks from the distributed storage system;
[0014] Allocate the matched data blocks to the distributed file data processing nodes corresponding to each subtask;
[0015] The subtasks are sorted according to the dependency relationship so that each distributed processing node executes the corresponding subtask in sequence.
[0016] According to a distributed file data processing method based on cloud computing provided by the present invention, the target dependency relationship between each subtask includes at least one of time dependency, data dependency, resource dependency and logical dependency;
[0017] The time dependency is used to represent the target time point or target time window for executing each subtask, and the time dependency is used to obtain the execution order between the subtasks;
[0018] The data dependency is used to represent the data output by other subtasks required when executing each subtask, and the data dependency is used to obtain the data transfer process;
[0019] The resource dependency is used to represent the computing resources required to execute each subtask, and the resource dependency is used to obtain the resource demand;
[0020] The logical dependency is used to represent the logical order of executing each subtask, and the logical dependency is used to obtain the time limit logical relationship between each subtask.
[0021] According to a distributed file data processing method based on cloud computing provided by the present invention, the data mining model includes a user layer, a computing layer and a service layer;
[0022] The user layer is used to receive data processing tasks input by target users and display target data processing results;
[0023] The computing layer is used to execute the target data processing task to perform data processing and data analysis to obtain the target data processing result;
[0024] The service layer is used to configure each distributed file data processing node, and configures each distributed file data processing node with corresponding mining sub-algorithms and data blocks based on the target data processing task.
[0025] According to a distributed file data processing method based on cloud computing provided by the present invention, the intermediate data are integrated through the data mining model to obtain the target data processing result, including:
[0026] Preprocess each intermediate data and extract eigenvalues to obtain eigenvalues of the intermediate data vector;
[0027] Inputting the eigenvalues of the intermediate data vector into a decision tree model to obtain a classification or prediction result output by the decision tree model; the decision tree model is trained using the SPRINT algorithm;
[0028] Integrate the classification or prediction results corresponding to each intermediate data output by the decision tree model to form the final target data processing result.
[0029] According to a distributed file data processing method based on cloud computing provided by the present invention, after each distributed file data processing node mines local frequent item sets for the allocated data blocks based on each configured mining sub-algorithm and the target dependency relationship between each sub-task to obtain each intermediate data, the method further includes:
[0030] Monitor the processing time of each subtask through the timer module;
[0031] When the processing time of the target subtask exceeds the time limit requirement in the target dependency relationship between the subtasks, the required computing resources are reconfigured for the target subtask and the subtasks that have a dependency relationship with the target subtask.
[0032] According to a distributed file data processing method based on cloud computing provided by the present invention, before uploading the to-be-processed file data to the distributed storage system for storage according to target rules to obtain each data block, the method further includes:
[0033] The distributed storage system uses a pre-established distributed file data cleaning algorithm to clean the to-be-processed file data, thereby obtaining a first distributed file data cleaning result;
[0034] According to the first distributed file data cleaning result and the second distributed file data cleaning result, the distributed file data cleaning algorithm is trained and updated to obtain an updated distributed file data cleaning algorithm; wherein the second distributed file data cleaning result is a result obtained by manually cleaning the file data to be processed;
[0035] The updated distributed file data cleaning algorithm is applied to the next distributed file data cleaning task.
[0036] The present invention also provides a distributed file data processing device based on cloud computing, comprising:
[0037] A file storage module, used to upload the file data to be processed to the distributed storage system for storage according to target rules to obtain each data block; the target rule is determined based on the format type of the file data and the content tag of the file data;
[0038] A task parsing module is used to receive a target data processing task input by a target user through a data mining model, and to decompose the target data processing task into various subtasks;
[0039] The task processing module is used to configure each mining sub-algorithm for each distributed file data processing node through a data mining model, and allocate each pre-processed data block to each distributed file data processing node; the data block allocated to each distributed file data processing node is determined based on the target dependency relationship between each subtask corresponding to each distributed file data processing node and the content label of the file data corresponding to each subtask; the target dependency relationship between each subtask is used to represent at least one of the execution order, data transfer process, resource demand and time limit logical relationship between each subtask;
[0040] The data processing module is used to mine local frequent item sets for the allocated data blocks through each distributed file data processing node based on each configured mining sub-algorithm and the target dependency relationship between each sub-task to obtain each intermediate data;
[0041] The integration output module is used to integrate the intermediate data through the data mining model to obtain the target data processing results to be displayed to the target user.
[0042] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a distributed file data processing method based on cloud computing as described above is implemented.
[0043] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described distributed file data processing methods based on cloud computing.
[0044] The present invention also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned distributed file data processing methods based on cloud computing.
[0045] The distributed file data processing method and device based on cloud computing provided by the present invention use a distributed storage system and computing nodes, and configure a data mining model and subtasks. The data mining model can automatically decompose a task into subtasks, and allocate data blocks according to dependencies and rules. It can flexibly adjust the data processing flow and mining sub-algorithms according to specific needs, adapt to different processing tasks and complex data types, process a large amount of data in parallel, save occupied storage space, improve the efficiency and speed of data processing, and then integrate and display the target data processing results. It can intuitively present the effects and achievements of data processing and provide useful information for users. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 This is one of the flow charts of the distributed file data processing method based on cloud computing provided by the present invention;
[0048] Figure 2 This is the second flow chart of the distributed file data processing method based on cloud computing provided by the present invention;
[0049] Figure 3 It is a schematic diagram of the structure of a distributed file data processing device based on cloud computing provided by the present invention;
[0050] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] Combine the following Figure 1-Figure 4 The present invention describes a distributed file data processing method and device based on cloud computing.
[0053] like Figure 1 As shown, the distributed file data processing method based on cloud computing according to the embodiment of the present invention mainly includes step 110, step 120, step 130, step 140 and step 150.
[0054] Step 110 , uploading the to-be-processed file data to the distributed storage system for storage according to target rules to obtain data blocks.
[0055] The target rule is determined based on the format type of the file data and the content tag of the file data.
[0056] Determine the target rules based on the format type and content label of the file data. That is, the files need to be classified based on their format (such as text, image, video) and content label (such as category, keyword).
[0057] It is understandable that appropriate tools or platforms may be used to upload file data to the distributed storage system.
[0058] The uploaded data will be segmented into chunks based on the defined target rules. For example, all text files with a specific content tag can form one chunk, while image files of a specific format can form another chunk.
[0059] In a distributed storage system, data blocks can be stored in a structured manner according to target rules, which helps to retrieve and process data efficiently.
[0060] In this implementation, the file data to be processed is uploaded to a distributed storage system in the cloud, such as a cloud object storage service or a distributed file system (such as HDFS), to ensure that the data is organized and stored according to certain rules to facilitate subsequent parallel processing.
[0061] Step 120: receiving the target data processing task input by the target user through the data mining model, and breaking down the target data processing task into various subtasks.
[0062] The data mining model receives the target data processing task input by the target user, including task description, requirements, processing methods and other information.
[0063] The model parses and analyzes the received tasks to understand the goals and requirements of the tasks as well as the data types and processing methods involved.
[0064] Based on the complexity and processing requirements of the task, the task is broken down into subtasks, each of which is a specific part or processing stage of the task.
[0065] Each subtask needs to have clear inputs, outputs, processing steps and processing methods defined. This ensures that the function and objectives of each subtask are clear.
[0066] On this basis, the dependencies and execution order between the subtasks are determined. Some subtasks can only be executed after other subtasks are completed, so task scheduling and priority sorting are required.
[0067] According to the complexity and resource requirements of the subtask, each subtask is assigned to the corresponding computing node or processing unit for execution.
[0068] Monitor the execution of each subtask to ensure that the task is progressing smoothly as expected, and make adjustments and optimizations when necessary.
[0069] Generally speaking, multiple modules such as communication, task scheduling, task management, and lock management can be used. Taking the communication module as an example, it is a bridge between the central control module and other modules, responsible for the distribution of data processing tasks and establishing connections between different modules. The task management module is a module that manages data processing tasks, including the establishment of tasks, the decomposition of tasks, and the execution and maintenance of tasks. Task-related links can pass through the task management module.
[0070] The task scheduling module is responsible for task scheduling, such as arranging the implementation of tasks according to task requirements and user requirements, including the maintenance and management of lock processes.
[0071] In addition, a timer module can also be set up, which is mainly used to monitor the data processing time of the system to ensure the processing efficiency of the system.
[0072] When the system processing time exceeds the expected time, the timeout situation will be recorded, including the obstacles to subsequent processing caused by the timeout, so as to complete the detection of system operation status.
[0073] Once a timeout occurs, it indicates that the system has been hindered during operation, making it difficult to achieve the expected goals. Therefore, when solving the problem, we must not only focus on the present, but also set up backup programs or additional computing resources for future data processing processes to avoid the same problem from occurring again.
[0074] Through the above steps, the data mining model can effectively receive and process the data processing tasks of the target users, and break them down into executable subtasks, thereby achieving efficient execution and processing of the tasks.
[0075] Step 130: configure each mining sub-algorithm for each distributed file data processing node through the data mining model, and distribute each pre-processed data block to each distributed file data processing node.
[0076] The target dependency relationship between the subtasks is used to represent at least one of the execution order, data transfer process, resource requirement and time limit logical relationship between the subtasks.
[0077] The data mining model analyzes and decomposes the target data processing task into various subtasks, which involve different data mining algorithms and processing steps.
[0078] The data mining model can analyze the target dependency relationship between each subtask, and the target dependency relationship between each subtask includes at least one of time dependency, data dependency, resource dependency and logic dependency.
[0079] Time dependency is used to indicate the target time point or target time window for executing each subtask, and time dependency is used to obtain the execution order between subtasks. This time dependency ensures that tasks are executed in the expected order within a specific time, avoiding execution time conflicts and unnecessary delays.
[0080] Data dependency is used to represent the data output by other subtasks required when executing each subtask. Data dependency is used to obtain the data transfer process, ensuring the data transfer process between tasks and ensuring that subsequent tasks can smoothly use the output data of the previous task for processing.
[0081] Resource dependency is used to represent the computing resources required to execute each subtask. Resource dependency is used to obtain the resource demand. The resource dependency relationship ensures that each task can obtain sufficient computing resource support during execution, thereby ensuring efficient execution and smooth completion of the task.
[0082] Logical dependency is used to indicate the logical order of executing each subtask, and is used to obtain the time limit logical relationship between each subtask. Logical dependency is used to determine the logical order of executing each subtask, including conditional judgment, loop control, etc. Logical dependency determines the time limit logical relationship between each subtask, for example, some tasks must be completed before a specific time point, or some tasks need to wait for the output of other tasks before they can be executed.
[0083] The four dependencies, namely time dependency, data dependency, resource dependency and logical dependency, correspond to the time arrangement of task execution, data transmission process, computing resource support and logical sequence control respectively. These dependencies cooperate with each other to ensure the orderly execution of tasks, the effective transmission of data and the rational use of resources, thereby achieving efficient completion of tasks.
[0084] According to the dependencies and requirements of the tasks, the model configures appropriate mining sub-algorithms for each distributed file data processing node. These algorithms can include clustering algorithms, classification algorithms, association rule mining algorithms, etc., which are used to process various sub-tasks.
[0085] According to the dependencies of each subtask and the content labels of the file data, the model assigns the preprocessed data blocks to the corresponding distributed file data processing nodes, ensuring that the data blocks processed by each node are associated with the subtasks it executes.
[0086] The model schedules and executes tasks on each distributed file data processing node based on dependencies and assigned tasks, ensuring that tasks are executed in the correct order and logic, and data blocks are delivered and processed according to target dependencies.
[0087] Through the above steps, the data mining model can effectively configure the mining sub-algorithms of each distributed file data processing node and ensure that the allocated data blocks match the dependencies and content labels of the tasks, thereby achieving smooth execution of tasks and effective processing of data.
[0088] The data mining model includes user layer, operation layer and service layer.
[0089] The user layer is used to receive data processing tasks input by the target user and display the target data processing results. The user layer is responsible for interacting with the user, receiving the user's task requirements and input, and displaying the final processing results to the user, providing a friendly user interface and interactive experience.
[0090] The operation layer is used to perform target data processing tasks to perform data processing and data analysis to obtain target data processing results. The operation layer is the core part of the data mining model, responsible for specific data processing, analysis and mining work, running various algorithms and processing data according to task requirements, and finally generating processing results.
[0091] The service layer is used to configure each distributed file data processing node, and configures the corresponding mining sub-algorithms and data blocks for each distributed file data processing node based on the target data processing task. The service layer connects the user layer and the operation layer, and is responsible for converting the user's task requirements into specific operation instructions, configuring each node for task processing, and ensuring the correct allocation and execution of tasks.
[0092] In this embodiment, the basic model of data mining can be divided into three levels, namely the user layer, the operation layer and the service layer. In the service layer, a cloud computing environment is established based on HDFS, Map Reduce and Hadoop technologies, and network nodes are connected together to form a circularly connected network structure to provide services for the user layer and the operation layer. The operation layer mainly runs the optimization work of the mining machine of massive data, and associates each data with clustering algorithms, classification algorithms, regression algorithms, association rules, etc., extracts, converts, cleans, integrates and loads the data to realize data preprocessing.
[0093] To design distributed file data processing nodes, you can use a distributed computing framework, such as Apache Spark, to decompose and divide data processing tasks, generate task queues or task graphs, assign tasks to different computing nodes based on task types and dependencies, and schedule tasks.
[0094] Each computing node processes its assigned tasks in parallel. The elastic resources provided by the cloud computing platform can be used to dynamically expand or reduce the number of computing nodes according to the needs of the task. Each computing node loads the corresponding data block according to the task requirements and performs specific data processing operations, including: data cleaning, data conversion, and data analysis.
[0095] The data conversion method includes the following process. First, you need to create a Spark Context (corresponding to the RDD programming interface) or a Spark Session (corresponding to the Data Frame / Data set API) as the entry point for communicating with the Spark cluster. Use the API provided by Spark to read data from data sources (such as file systems, databases, Kafka, etc.), and load the data into RDD, Data Frame, or Data set for processing. Process and convert the data by calling various conversion operations. Common conversion operations include map, filter, reduce, join, group by, etc. These operations can be connected in series to form a data processing pipeline. If some data needs to be used multiple times, you can use the cache or persist method to cache the data in memory to improve the performance of subsequent operations.
[0096] Before calling a transformation operation, Spark will only build a logical plan for data processing and will not execute it immediately. Spark will trigger the actual job execution when encountering an action operation (such as collect, count, save AsText File, etc.). The final data transformation result can trigger the actual calculation process through the action operation, and the result is returned to the driver or written to the external storage system. Finally, the transformed result can be saved back to the external storage system, such as the file system, database, etc., for subsequent analysis and application use.
[0097] After completing all operations, remember to close the Spark Context or SparkSession to release resources.
[0098] Data analysis includes the following processes. First, data needs to be collected from various data sources (such as databases, log files, sensors, networks, etc.) and stored in appropriate data storage systems, such as distributed file systems (HDFS, S3, etc.), No SQL databases, or relational databases. The collected raw data is preprocessed by cleaning, deduplication, and filling missing values to ensure data quality and consistency. This stage includes operations such as data cleaning, data conversion, feature selection, and data integration.
[0099] After data cleaning and preprocessing, various data analyses can be performed, including descriptive statistics, data mining, machine learning, predictive modeling, etc. This usually involves using statistical methods, machine learning algorithms, and data visualization techniques to discover patterns, trends, and insights in the data.
[0100] For large-scale data sets, it is usually necessary to use distributed computing frameworks (such as Hadoop, Spark, etc.) to perform data analysis. These frameworks can process data in parallel, accelerate the computing process, and handle large amounts of data and complex computing tasks at the same time.
[0101] It should be noted that the data blocks allocated to each distributed file data processing node are determined based on the target dependency relationship between each subtask corresponding to each distributed file data processing node and the content label of the file data corresponding to each subtask.
[0102] Target dependencies are used to determine the execution order and dependencies between subtasks. If a subtask needs to be processed after another subtask is completed, the corresponding data block will be assigned to the corresponding node after the relevant predecessor task is completed, ensuring that the tasks are processed in the appropriate order and avoiding conflicts and errors between tasks.
[0103] Each file data can contain tags about its content. These tags can include information such as the file's format type, data type, keywords, etc. Based on these tags, the file data can be classified and categorized to determine which data blocks are suitable for allocation to which nodes for processing. For example, a node can specialize in processing text data, while another node focuses on image data. Therefore, the allocation of data blocks can be optimized and adjusted according to the content tags of the file data, improving processing efficiency and accuracy.
[0104] Step 140 , each distributed file data processing node mines local frequent item sets for the allocated data blocks based on each configured mining sub-algorithm and the target dependency relationship between each sub-task to obtain each intermediate data.
[0105] Local frequent itemsets are frequent itemsets independently mined by each computing node on its own data block in a distributed data mining environment. They are frequent itemsets in the data block, but not necessarily frequent in the global data set. By collecting the local frequent itemsets generated by each computing node, merging these local frequent itemsets globally, and recalculating the support and confidence, the global frequent itemsets are determined.
[0106] According to the requirements of the task and the characteristics of the data, each distributed file data processing node will be configured to use a specific mining sub-algorithm. These algorithms can include frequent item set mining algorithms (such as Apriori algorithm), association rule mining algorithms, etc., which are used to mine frequent item sets or association rules from data blocks. At the same time, the target dependency relationship between nodes determines the order of task execution and the data transfer process, ensuring the correct execution of tasks and the reasonable transfer of data.
[0107] Each distributed file data processing node performs local frequent item set mining on the data block assigned to it according to its configured mining sub-algorithm and target dependency. That is, the node analyzes the patterns and association rules in the data block, finds the frequently occurring item sets, and stores or passes these intermediate results to the next task or node.
[0108] Through local frequent item set mining, each node will generate its own intermediate data, which contains the information of item sets that frequently appear in the local range. These intermediate data are obtained based on mining sub-algorithms and dependencies, and can serve as the basis for subsequent global analysis or higher-level data processing.
[0109] Through this process, each distributed file data processing node uses the configured mining sub-algorithm and target dependency to mine the assigned data blocks and obtain the intermediate data of local frequent item sets, providing key information and results for the overall data processing process.
[0110] Step 150, integrating the intermediate data through the data mining model to obtain the target data processing result to be displayed to the target user.
[0111] It can be understood that the intermediate data generated by each distributed file data processing node is collected first. The intermediate data contains the results of local frequent item set mining and can exist in the form of files, data structures or databases.
[0112] On this basis, the collected intermediate data are integrated using the integration algorithm or data integration tool in the data mining model. This process may include operations such as merging, cleaning, deduplication, and statistics to ensure that the obtained data meets the requirements and standards of the target data processing results.
[0113] During the computation process, each computing node will generate intermediate results. These intermediate results need to be summarized and integrated for subsequent global analysis and computation. The mechanisms provided by the distributed computing framework, such as the reduce operation, can be used to merge and aggregate the intermediate results according to certain rules.
[0114] The integrated data is the target data processing result. These results can be statistical reports, visual charts, data sets or other forms of data presentation. The results can be formatted, sorted or further processed according to user needs and task requirements so as to be presented to the target users.
[0115] Finally, the target data processing results are displayed to the target users through data visualization tools, report generation tools, web interfaces or other methods to ensure that users can intuitively understand and use these data results.
[0116] The final processing results can also be stored back in the distributed storage system of the cloud, or output to other storage media for subsequent application and analysis. You can choose the appropriate storage format and storage method according to your needs, and then you can end the entire distributed file data processing process based on cloud computing technology.
[0117] The cloud storage solution can be built in a three-layer storage structure. The first layer runs the support data, the second layer runs the result data, and the third layer stores the historical data. The data is divided into different data storage levels according to its nature.
[0118] The classification of data is scheduled by the central storage and distributed to the three storage layers according to the needs. However, these three storage layers are not completely independent, but mutually verified. Taking the historical data storage layer as an example, it stores the processed data, thereby converting the new data into the historical data layer. After each operation of the supporting data and structural data, the data will be sent to the historical data layer to enrich the historical data layer. In the process of scheduling the historical data layer, the support of supporting data and result data is also required, so that the scheduled data is consistent.
[0119] In the embodiment of the present invention, cloud computing technology is combined with a distributed network massive distributed file data processing system, which can effectively improve its processing efficiency for huge data streams, and at the same time, accurate analysis of distributed file data is achieved in the form of distributed file data classification, which greatly improves the accuracy of distributed file data processing. The advantage of cloud computing technology for distributed file data processing systems is that it can provide cloud computing and cloud storage for the system, and store the original massive data in the network in the form of cloud storage, which can reduce the processing burden of the system, shorten the processing time of the distributed file data processing system, and improve the system processing efficiency.
[0120] According to an embodiment of the present invention, a distributed file data processing method based on cloud computing is provided. By using a distributed storage system and computing nodes and configuring a data mining model and subtasks, the data mining model can automatically decompose a task into subtasks and allocate data blocks according to dependencies and rules. The data processing flow and mining sub-algorithms can be flexibly adjusted according to specific needs to adapt to different processing tasks and complex data types. A large amount of data can be processed in parallel, saving occupied storage space, improving the efficiency and speed of data processing, and then integrating and displaying the target data processing results. The effect and results of data processing can be intuitively presented, and useful information can be provided to users.
[0121] In some embodiments, Figure 2 As shown, allocating the pre-processed data blocks to the distributed file data processing nodes mainly includes step 131, step 132, step 133 and step 134.
[0122] Step 131, analyzing the dependency relationship between the subtasks corresponding to each distributed file data processing node, and constructing a task dependency graph to obtain the subtasks on which each subtask depends.
[0123] Step 132: Match corresponding data blocks from the distributed storage system according to the content tags of the file data corresponding to each subtask.
[0124] Step 133: distribute the matched data blocks to the distributed file data processing nodes corresponding to the subtasks.
[0125] Step 134, sorting the subtasks according to the dependency relationship so that each distributed processing node executes the corresponding subtask in sequence.
[0126] By analyzing the dependency relationships between the subtasks corresponding to each distributed file data processing node, a task dependency graph can be constructed. By analyzing the dependency relationships, other subtasks that each subtask depends on are determined to form a task dependency chain.
[0127] According to the content tags of the file data corresponding to each subtask, the corresponding data blocks are matched in the distributed storage system. This ensures that the matched data blocks contain the data content required by each subtask to meet the subsequent processing requirements.
[0128] The matched data blocks are distributed to the distributed file data processing nodes corresponding to the subtasks, which can ensure that each node obtains the data blocks it needs and can independently execute the corresponding subtasks.
[0129] The subtasks are sorted according to the dependency chain to determine the execution order, ensuring that each distributed processing node executes the corresponding subtasks in sequence and avoiding confusion or errors in the execution order.
[0130] In this implementation, effective allocation of data blocks and orderly execution of distributed processing nodes can be achieved, ensuring the smooth progress of the data processing flow and improving processing efficiency and quality.
[0131] In some embodiments, the intermediate data are integrated through a data mining model to obtain a target data processing result, including: preprocessing the intermediate data and extracting eigenvalues to obtain eigenvalues of the intermediate data vector; inputting the eigenvalues of the intermediate data vector into a decision tree model to obtain a classification or prediction result output by the decision tree model; the decision tree model is trained using the SPRINT algorithm; and integrating the classification or prediction results corresponding to the intermediate data output by the decision tree model to form the final target data processing result.
[0132] It is understandable that each intermediate data is preprocessed, including data cleaning, missing value processing, outlier processing, etc. Then the eigenvalue is extracted and the intermediate data is converted into a eigenvector representation. The eigenvalue vector is used as input and input into the decision tree model trained by the SPRINT algorithm.
[0133] The decision tree model performs classification or prediction operations based on the input feature value vector. For classification problems, the decision tree model outputs the category to which each intermediate data belongs. For prediction problems, the decision tree model outputs the prediction results of each intermediate data.
[0134] Integrate the classification or prediction results of each intermediate data output by the decision tree model to form the final target data processing result.
[0135] In this embodiment, a decision tree model is used for classification or prediction, the features of the intermediate data are converted into a form that can be processed by the decision tree, and the integration of target data processing and result generation are achieved through the results output by the decision tree model.
[0136] The decision-making process of the decision tree model is divided into two steps: forming the root node of the data and slicing the recursive data to achieve the generation of the tree; removing some noise or abnormal data to complete the tree pruning, so as to create the decision tree. In the process of decision tree algorithm processing, personalized applications can be set according to user needs, such as setting indexes, categories, etc. to facilitate user queries, so that users can collect data in a short time. In this process of optimizing the system algorithm, the staff must also analyze the task requirements of data processing and summarize the classification requirements of different data to improve the effectiveness of data processing.
[0137] In some embodiments, after each distributed file data processing node mines local frequent item sets for the allocated data blocks based on the configured mining sub-algorithms and the target dependency relationships between each subtask to obtain each intermediate data, the distributed file data processing method based on cloud computing of an embodiment of the present invention also includes: monitoring the processing time of each subtask through a timer module; when the processing time of the target subtask exceeds the time limit requirement in the target dependency relationship between each subtask, reconfiguring the required computing resources for the target subtask and the subtasks that have a dependency relationship with the target subtask.
[0138] Use the timer module to monitor the processing time of each subtask. The timer module can set a threshold for the processing time, and trigger the corresponding processing when the threshold is exceeded.
[0139] When the processing time of the target subtask exceeds the time limit requirement in the target dependency relationship between the subtasks, it is necessary to reconfigure the computing resources, such as reallocating computing nodes for the target subtask and the subtasks that have dependencies on the target subtask, or adjusting the allocation of computing resources.
[0140] By monitoring the processing time through the timer module and reconfiguring computing resources when necessary, it can ensure that the task is completed within the specified time limit, avoid task delays or waste of resources, and improve the efficiency and stability of the system.
[0141] In some embodiments, before uploading the file data to be processed to the distributed storage system for storage according to target rules to obtain each data block, the distributed file data processing method based on cloud computing of an embodiment of the present invention also includes: using a pre-established distributed file data cleaning algorithm through the distributed storage system to perform a cleaning operation on the file data to be processed, to obtain a first distributed file data cleaning result; training and updating the distributed file data cleaning algorithm according to the first distributed file data cleaning result and the second distributed file data cleaning result to obtain an updated distributed file data cleaning algorithm; wherein the second distributed file data cleaning result is a result obtained by manually cleaning the file data to be processed; and applying the updated distributed file data cleaning algorithm to the next distributed file data cleaning task.
[0142] Distributed file data cleaning algorithms can include text cleaning, data format conversion, missing value processing, outlier detection, duplicate data processing, data normalization, data denoising, data matching and merging, etc., which are used for cleaning and processing distributed file data.
[0143] The file data to be processed is uploaded to the distributed storage system, and a pre-established distributed file data cleaning algorithm is used to perform a cleaning operation on the file data to be processed, to obtain a first distributed file data cleaning result.
[0144] The distributed file data cleaning algorithm is trained and updated according to the first distributed file data cleaning result and the second distributed file data cleaning result. The second distributed file data cleaning result is obtained by manual cleaning and can be used as training data for reinforcement learning to update the algorithm.
[0145] Applying the updated distributed file data cleaning algorithm to the next distributed file data cleaning task can continuously optimize and improve the data cleaning algorithm, improve the quality and efficiency of data processing, make the cleaning results more accurate and reliable, and improve the quality and efficiency of subsequent data processing tasks.
[0146] The distributed file data processing device based on cloud computing provided by the present invention is described below. The distributed file data processing device based on cloud computing described below and the distributed file data processing method based on cloud computing described above can refer to each other.
[0147] like Figure 3As shown, the distributed file data processing device based on cloud computing according to the embodiment of the present invention mainly includes a file storage module 310 , a task analysis module 320 , a task processing module 330 , a data processing module 340 and an integrated output module 350 .
[0148] The file storage module 310 is used to upload the to-be-processed file data to the distributed storage system for storage according to the target rule to obtain each data block; the target rule is determined based on the format type of the file data and the content tag of the file data;
[0149] The task parsing module 320 is used to receive the target data processing task input by the target user through the data mining model, and decompose the target data processing task into various subtasks;
[0150] The task processing module 330 is used to configure each mining sub-algorithm for each distributed file data processing node through a data mining model, and allocate each pre-processed data block to each distributed file data processing node; the data block allocated to each distributed file data processing node is determined based on the target dependency relationship between each subtask corresponding to each distributed file data processing node and the content label of the file data corresponding to each subtask; the target dependency relationship between each subtask is used to represent at least one of the execution order, data transfer process, resource demand and time limit logical relationship between each subtask;
[0151] The data processing module 340 is used to mine local frequent item sets for the allocated data blocks through each distributed file data processing node based on each configured mining sub-algorithm and the target dependency relationship between each sub-task to obtain each intermediate data;
[0152] The integration output module 350 is used to integrate various intermediate data through the data mining model to obtain the target data processing results to be displayed to the target users.
[0153] According to the distributed file data processing device based on cloud computing provided by the embodiment of the present invention, by using a distributed storage system and computing nodes, and configuring data mining models and subtasks, the data mining model can automatically decompose tasks into subtasks, and allocate data blocks according to dependencies and rules, flexibly adjust the data processing flow and mining sub-algorithms according to specific needs, adapt to different processing tasks and complex data types, process large amounts of data in parallel, save occupied storage space, improve the efficiency and speed of data processing, and then integrate and display the target data processing results, so as to intuitively present the effects and achievements of data processing and provide users with useful information.
[0154] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4As shown, the electronic device may include: a processor 410, a communications interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communications interface 420 and the memory 430 communicate with each other via the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute a distributed file data processing method based on cloud computing, the method comprising: uploading the file data to be processed to a distributed storage system for storage according to target rules to obtain each data block; the target rule is determined based on the format type of the file data and the content tag of the file data; receiving the target data processing task input by the target user through the data mining model, and decomposing the target data processing task into each subtask; configuring each mining sub-algorithm for each distributed file data processing node through the data mining model, and allocating each pre-processed data block to each distributed file data processing node; each distributed file The data blocks allocated by the distributed file data processing nodes are determined based on the target dependency relationship between the subtasks corresponding to the distributed file data processing nodes and the content label of the file data corresponding to the subtasks; the target dependency relationship between the subtasks is used to represent at least one of the execution order, data transfer process, resource demand and time limit logical relationship between the subtasks; each distributed file data processing node mines local frequent item sets for the allocated data blocks based on the configured mining sub-algorithms and the target dependency relationship between the subtasks to obtain various intermediate data; the intermediate data are integrated through the data mining model to obtain the target data processing result to be displayed to the target user.
[0155] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0156] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the distributed file data processing method based on cloud computing provided by the above methods, which method includes: uploading the file data to be processed to a distributed storage system for storage according to target rules to obtain each data block; the target rule is determined based on the format type of the file data and the content tag of the file data; receiving the target data processing task input by the target user through a data mining model, and decomposing the target data processing task into various subtasks; configuring each mining sub-algorithm for each distributed file data processing node through the data mining model. and distribute the pre-processed data blocks to the distributed file data processing nodes; the data blocks distributed to the distributed file data processing nodes are determined based on the target dependency relationship between the subtasks corresponding to the distributed file data processing nodes and the content tags of the file data corresponding to the subtasks; the target dependency relationship between the subtasks is used to represent at least one of the execution order, data transfer process, resource demand and time limit logical relationship between the subtasks; each distributed file data processing node mines local frequent item sets for the distributed data blocks based on the configured mining sub-algorithms and the target dependency relationship between the subtasks to obtain various intermediate data; the various intermediate data are integrated through the data mining model to obtain the target data processing result to be displayed to the target user.
[0157] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the distributed file data processing method based on cloud computing provided by the above-mentioned methods, the method comprising: uploading the file data to be processed to a distributed storage system for storage according to target rules to obtain each data block; the target rule is determined based on the format type of the file data and the content tag of the file data; receiving the target data processing task input by the target user through a data mining model, and decomposing the target data processing task into each subtask; configuring each mining sub-algorithm for each distributed file data processing node through the data mining model, and distributing each preprocessed data block to the distributed storage system; to each distributed file data processing node; the data block allocated to each distributed file data processing node is determined based on the target dependency relationship between each subtask corresponding to each distributed file data processing node and the content label of the file data corresponding to each subtask; the target dependency relationship between each subtask is used to represent at least one of the execution order, data transfer process, resource demand and time limit logical relationship between each subtask; each distributed file data processing node mines local frequent item sets for the allocated data block based on the configured mining sub-algorithms and the target dependency relationship between each subtask to obtain various intermediate data; the various intermediate data are integrated through the data mining model to obtain the target data processing result to be displayed to the target user.
[0158] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0159] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0160] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A distributed file data processing method based on cloud computing, characterized in that: include: Uploading the file data to be processed to the distributed storage system for storage according to the target rules to obtain each data block; The target rule is determined based on the format type of the file data and the content tag of the file data; Receive a target data processing task input by a target user through a data mining model, and decompose the target data processing task into various subtasks; Each mining sub-algorithm is configured for each distributed file data processing node through a data mining model, and each pre-processed data block is allocated to each distributed file data processing node; the data block allocated to each distributed file data processing node is determined based on the target dependency relationship between each subtask corresponding to each distributed file data processing node and the content label of the file data corresponding to each subtask; the target dependency relationship between each subtask is used to represent at least one of the execution order, data transfer process, resource demand and time limit logical relationship between each subtask; By using each distributed file data processing node to mine local frequent item sets for the allocated data blocks based on each configured mining sub-algorithm and the target dependency relationship between each sub-task, each intermediate data is obtained; Integrate the intermediate data through the data mining model to obtain the target data processing result to display to the target user; The data mining model includes a user layer, a calculation layer, and a service layer; The user layer is used to receive data processing tasks input by target users and display target data processing results; The computing layer is used to execute the target data processing task to perform data processing and data analysis to obtain the target data processing result; The service layer is used to configure each distributed file data processing node, and configures each distributed file data processing node with corresponding mining sub-algorithms and data blocks based on the target data processing task; The intermediate data are integrated through the data mining model to obtain the target data processing result, including: Preprocess each intermediate data and extract eigenvalues to obtain eigenvalues of the intermediate data vector; Inputting the eigenvalues of the intermediate data vector into a decision tree model to obtain a classification or prediction result output by the decision tree model; the decision tree model is trained using the SPRINT algorithm; Integrate the classification or prediction results corresponding to each intermediate data output by the decision tree model to form the final target data processing result.
2. The distributed file data processing method based on cloud computing according to claim 1 is characterized in that: The step of allocating the pre-processed data blocks to the distributed file data processing nodes includes: Analyze the dependency relationship between the subtasks corresponding to each distributed file data processing node, and build a task dependency graph to obtain the subtasks that each subtask depends on; According to the content tags of the file data corresponding to each subtask, matching the corresponding data blocks from the distributed storage system; Allocate the matched data blocks to the distributed file data processing nodes corresponding to each subtask; The subtasks are sorted according to the dependency relationship so that each distributed processing node executes the corresponding subtask in sequence.
3. The distributed file data processing method based on cloud computing according to claim 1, characterized in that: The target dependency relationship between the subtasks includes at least one of time dependency, data dependency, resource dependency and logic dependency; The time dependency is used to represent the target time point or target time window for executing each subtask, and the time dependency is used to obtain the execution order between the subtasks; The data dependency is used to represent the data output by other subtasks required when executing each subtask, and the data dependency is used to obtain the data transfer process; The resource dependency is used to represent the computing resources required to execute each subtask, and the resource dependency is used to obtain the resource demand; The logical dependency is used to represent the logical order of executing each subtask, and the logical dependency is used to obtain the time limit logical relationship between each subtask.
4. The distributed file data processing method based on cloud computing according to claim 3 is characterized in that: After each distributed file data processing node mines local frequent item sets for the allocated data blocks based on each configured mining sub-algorithm and the target dependency relationship between each sub-task to obtain each intermediate data, the method further includes: Monitor the processing time of each subtask through the timer module; When the processing time of the target subtask exceeds the time limit requirement in the target dependency relationship between the subtasks, the required computing resources are reconfigured for the target subtask and the subtasks that have a dependency relationship with the target subtask.
5. The distributed file data processing method based on cloud computing according to claim 1, characterized in that: Before uploading the to-be-processed file data to the distributed storage system for storage according to the target rule to obtain each data block, the method further includes: The distributed storage system uses a pre-established distributed file data cleaning algorithm to clean the to-be-processed file data, thereby obtaining a first distributed file data cleaning result; According to the first distributed file data cleaning result and the second distributed file data cleaning result, the distributed file data cleaning algorithm is trained and updated to obtain an updated distributed file data cleaning algorithm; wherein the second distributed file data cleaning result is a result obtained by manually cleaning the file data to be processed; The updated distributed file data cleaning algorithm is applied to the next distributed file data cleaning task.
6. A distributed file data processing device based on cloud computing, characterized in that: include: The file storage module is used to upload the file data to be processed to the distributed storage system for storage according to the target rules to obtain each data block; The target rule is determined based on the format type of the file data and the content tag of the file data; A task parsing module is used to receive a target data processing task input by a target user through a data mining model, and to decompose the target data processing task into various subtasks; The task processing module is used to configure each mining sub-algorithm for each distributed file data processing node through a data mining model, and allocate each pre-processed data block to each distributed file data processing node; the data block allocated to each distributed file data processing node is determined based on the target dependency relationship between each subtask corresponding to each distributed file data processing node and the content label of the file data corresponding to each subtask; the target dependency relationship between each subtask is used to represent at least one of the execution order, data transfer process, resource demand and time limit logical relationship between each subtask; The data processing module is used to mine local frequent item sets for the allocated data blocks through each distributed file data processing node based on each configured mining sub-algorithm and the target dependency relationship between each sub-task to obtain each intermediate data; An integration output module, used to integrate the intermediate data through the data mining model to obtain the target data processing result to display to the target user; The integrated output module is also used to pre-process each intermediate data and extract characteristic values to obtain characteristic values of the intermediate data vector; Inputting the eigenvalues of the intermediate data vector into the decision tree model to obtain the classification or prediction results output by the decision tree model; the decision tree model is trained using the SPRINT algorithm; integrating the classification or prediction results corresponding to each intermediate data output by the decision tree model to form the final target data processing result; The data mining model includes a user layer, a calculation layer, and a service layer; The user layer is used to receive data processing tasks input by target users and display target data processing results; The computing layer is used to execute the target data processing task to perform data processing and data analysis to obtain the target data processing result; The service layer is used to configure each distributed file data processing node, and configures each distributed file data processing node with corresponding mining sub-algorithms and data blocks based on the target data processing task.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: When the processor executes the program, the distributed file data processing method based on cloud computing as described in any one of claims 1 to 5 is implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the distributed file data processing method based on cloud computing as claimed in any one of claims 1 to 5 is implemented.
