Data cleaning method and device, storage medium and electronic equipment
By obtaining metadata from the distributed cache service and directly obtaining the target data from the object storage for cleaning, the problem of low data cleaning efficiency in the existing technology is solved and a more efficient data cleaning process is achieved.
Patent Information
- Application Number
- CN202410852517.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-15
AI Technical Summary
In the existing technology, data cleaning efficiency is low and frequent access to object storage is required, resulting in inefficient cleaning process.
By obtaining the metadata of the data to be cleaned from the distributed cache service, and according to the storage address of the metadata record, the target data is directly obtained from the object storage for cleaning, and the data acquisition efficiency is improved by combining the distributed cache service and object storage.
By accessing the metadata in the distributed cache service, the storage address of the data to be cleaned is directly obtained, which improves the efficiency of data cleaning and solves the problem of low data cleaning efficiency.
Smart Images

Figure CN118779305A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud services, and in particular to a data cleaning method, device, storage medium and electronic device. Background Art
[0002] In the prior art, users can build a neural network model suitable for themselves according to their needs. If you want to build a mature neural network model, you need to use a large amount of sample data to train the neural network model. Depending on the neural network model, the sample data used is also different. Therefore, after designing the neural network model, the user also needs to obtain sample data suitable for the model.
[0003] Users can obtain large amounts of data through crawling and other means. However, the data obtained cannot be directly applied to the model. Instead, it must be cleaned first and then used as sample data to train the model.
[0004] However, in the prior art, the data to be cleaned obtained by users through crawling or other means is generally stored in an object storage. When cleaning data, it is necessary to first obtain the storage location of the data to be cleaned in the object storage, and then obtain the data to be cleaned. This process requires frequent access to the object storage, and the efficiency of data cleaning is low. Summary of the invention
[0005] The present application provides a data cleaning method, device, storage medium and electronic device to solve the technical problem of low data cleaning efficiency.
[0006] In a first aspect, the present application provides a data cleaning method, comprising: determining target data in the data to be cleaned, wherein the target data is a part of the data to be cleaned, and the data to be cleaned is stored in an object storage; obtaining first metadata of the data to be cleaned from a distributed cache service; obtaining target metadata of the target data from the first metadata; obtaining the target data from the object storage according to the storage address of the target data recorded in the target metadata; and performing a data cleaning operation on the target data.
[0007] In a second aspect, the present application provides a data cleaning device, comprising: a determination module, used to determine target data in the data to be cleaned, wherein the target data is a part of the data to be cleaned, and the data to be cleaned is stored in an object storage; a first acquisition module, used to obtain first metadata of the data to be cleaned from a distributed cache service; a second acquisition module, used to obtain target metadata of the target data from the first metadata; a third acquisition module, used to obtain the target data from the object storage according to the storage address of the target data recorded in the target metadata; and a cleaning module, used to perform data cleaning operations on the target data.
[0008] As an optional example, the determination module includes: a determination unit, configured to determine each predetermined size of data in the data to be cleaned as one of the target data; or to determine data in the same time period in the data to be cleaned as one of the target data.
[0009] As an optional example, the determination unit includes: a determination subunit, used to determine the data between every two special symbols in the data to be cleaned as a portion of the target data, wherein the special symbols are symbols pre-inserted into the data to be cleaned according to the size of the data to be cleaned or the time period in which they are located.
[0010] As an optional example, the second acquisition module includes: an acquisition unit, used to acquire a data identifier of the target data; based on the data identifier, searching for metadata matching the data identifier in the first metadata; and determining the found data as the target metadata.
[0011] As an optional example, the cleaning module includes: a cleaning unit, used to determine a target computing node from computing nodes determined to be used to perform the data cleaning operation, wherein the number of the computing nodes is determined according to the data size of the data to be cleaned and the allowed cleaning time of the data to be cleaned, and the allowed cleaning time is the longest time required to clean the data to be cleaned; each of the target data is assigned to one of the target computing nodes, and the target computing node performs the data cleaning operation on the target data.
[0012] As an optional example, the above-mentioned cleaning module also includes: a computing unit, used to obtain the data size and allowed cleaning time of the above-mentioned data to be cleaned before performing the data cleaning operation on the above-mentioned target data; determine the number of the above-mentioned computing nodes according to the above-mentioned data size, the above-mentioned allowed cleaning time and the amount of cleaned data per unit time of each of the above-mentioned computing nodes.
[0013] As an optional example, the above-mentioned cleaning module also includes: a scheduling unit, which is used to add a second computing node in the event of a failure of any first computing node during the process of performing data cleaning operations on the above-mentioned target data; packing the target data that has not been cleaned by the above-mentioned first computing node into new target data; and the above-mentioned second computing node continues to clean the new target data.
[0014] In a third aspect, the present application provides an electronic device comprising: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; and at least one memory connected to the at least one bus, wherein the memory stores a computer program, and the processor is configured to implement any one of the above-mentioned data cleaning methods when executing the computer program.
[0015] In a fourth aspect, the present application also provides a computer storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute any of the above data cleaning methods of the present application.
[0016] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the solution provided by the embodiment of the present application, by determining the target data in the data to be cleaned, wherein the target data is a part of the data to be cleaned, and the data to be cleaned is stored in the object storage; obtaining the first metadata of the data to be cleaned from the distributed cache service; obtaining the target metadata of the target data from the first metadata; obtaining the target data from the object storage according to the storage address of the target data recorded in the target metadata; performing data cleaning operations on the target data, so that the data to be cleaned and the metadata of the data to be cleaned can be stored through the object storage and the distributed cache service, and when performing cleaning, the storage address of the data to be cleaned is obtained by accessing the metadata in the distributed cache service, so as to directly obtain the data to be cleaned, and perform cleaning operations on the data to be cleaned, thereby improving the efficiency of obtaining the data to be cleaned and solving the problem of low efficiency in cleaning data. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0020] Figure 1 A flowchart of a data cleaning method provided in an embodiment of the present application;
[0021] Figure 2 A flowchart of another data cleaning method provided in an embodiment of the present application;
[0022] Figure 3 A flowchart of another data cleaning method provided in an embodiment of the present application;
[0023] Figure 4 A flowchart of another data cleaning method provided in an embodiment of the present application;
[0024] Figure 5 A flowchart of another data cleaning method provided in an embodiment of the present application;
[0025] Figure 6 A schematic diagram of a data cleaning system provided in an embodiment of the present application;
[0026] Figure 7 A schematic diagram of another data cleaning system provided in an embodiment of the present application;
[0027] Figure 8 A schematic diagram of the structure of a data cleaning device provided in an embodiment of the present application;
[0028] Fig. 9 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0030] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0031] In order to solve the technical problem of low efficiency in cleaning data in the prior art, the present application provides a data cleaning method, which can achieve the effect of improving the efficiency of obtaining the data to be cleaned.
[0032] Figure 1 A flow chart of a data cleaning method provided in an embodiment of the present application. Figure 1 As shown, the above data cleaning method includes:
[0033] S102, determining target data in the data to be cleaned, wherein the target data is a portion of the data to be cleaned, and the data to be cleaned is stored in an object storage;
[0034] S104, obtaining first metadata of the data to be cleaned from the distributed cache service;
[0035] S106, acquiring target metadata of the target data from the first metadata;
[0036] S108, acquiring the target data from the object storage according to the storage address of the target data recorded in the target metadata;
[0037] S110, performing a data cleaning operation on the target data.
[0038] In this embodiment, the data to be cleaned can be data crawled from the network, and the size of the data is not limited. The user can decide which data to be cleaned. The data to be cleaned is stored in the object storage, and each data has a unique identifier.
[0039] In this embodiment, first metadata of the data to be cleaned is stored in the distributed cache service, and the first metadata at least stores a unique identifier and a storage address of the data to be cleaned.
[0040] When cleaning the data to be cleaned, the data to be cleaned can be divided into multiple parts, each part is used as a target data, and the target data can be cleaned in batches in parallel or serially.
[0041] For each target data, when cleaning, you can find the target metadata from the distributed cache service based on the data identifier of the data in the target data, and then directly obtain the target data from the object storage based on the storage address recorded in the target metadata.
[0042] The solution provided by the embodiment of the present application determines target data in the data to be cleaned, wherein the target data is a part of the data to be cleaned, and the data to be cleaned is stored in the object storage; obtains first metadata of the data to be cleaned from the distributed cache service; obtains target metadata of the target data from the first metadata; obtains the target data from the object storage according to the storage address of the target data recorded in the target metadata; performs data cleaning operations on the target data, so that the data to be cleaned and the metadata of the data to be cleaned can be stored through the object storage and the distributed cache service, and when performing cleaning, the storage address of the data to be cleaned is obtained by accessing the metadata in the distributed cache service, so as to directly obtain the data to be cleaned, and perform cleaning operations on the data to be cleaned, thereby improving the efficiency of obtaining the data to be cleaned and solving the problem of low efficiency in cleaning data.
[0043] As an alternative example, Figure 2 As shown, the target data in the data to be cleaned includes:
[0044] S202, determining each predetermined size of data in the data to be cleaned as a target data; or determining data in the same time period in the data to be cleaned as a target data.
[0045] In this embodiment, the data to be cleaned can be divided into multiple target data, so that the target data can be cleaned serially or in parallel. The method of dividing the target data can be divided according to the size of the data or according to the time period of the data. The time period can be the time period for generating the data or the time period for crawling. If divided according to the size of the data, each predetermined size of the data to be cleaned can be divided into a target data, such as each 10G of data is divided into a target data. If divided according to the time period, the data generated or crawled every hour is regarded as a target data.
[0046] As an alternative example, Figure 3 As shown, the target data in the data to be cleaned includes:
[0047] S302: Determine data between every two special symbols in the data to be cleaned as a target data, wherein the special symbol is a symbol pre-inserted into the data to be cleaned according to the size of the data to be cleaned or the time period in which it is located.
[0048] In this embodiment, when acquiring or crawling data, special symbols may be inserted into the data. The special symbols may be unique symbols for identification, such as specific character strings, specific digital combinations, etc. The special symbols may be inserted in accordance with the method of dividing the target data. If the target data is divided according to the data size, a special symbol is inserted every 10G of data, so that 10G of data is between every two special symbols. Or if the target data is divided according to time periods, a special symbol is inserted every hour, and the data between the two special symbols is the data within one hour.
[0049] As an alternative example, Figure 4 As shown, obtaining target metadata of target data from first metadata includes:
[0050] S402, obtaining a data identifier of target data;
[0051] S404, searching the first metadata for metadata matching the data identifier according to the data identifier;
[0052] S406: Determine the found data as target metadata.
[0053] In this embodiment, since the target data is stored in the object storage, in order to avoid frequent access to the object storage, the target metadata of the target data in the distributed cache service can be accessed first. The target metadata can be accessed through the unique identifier of the target data. After accessing the target metadata, the object storage can be accessed according to the storage address of the target data recorded in the target metadata, and the target data under the storage address can be directly obtained.
[0054] As an alternative example, Figure 5 As shown, the data cleaning operation performed on the target data includes:
[0055] S502, determining a target computing node from computing nodes determined to perform a data cleaning operation, wherein the number of computing nodes is determined according to the data size of the data to be cleaned and the allowed cleaning time of the data to be cleaned, wherein the allowed cleaning time is the longest time taken to clean the data to be cleaned;
[0056] S504, allocating each piece of target data to a target computing node, and having the target computing node perform a data cleaning operation on the target data.
[0057] In this embodiment, the data to be cleaned is divided into multiple target data, each of which can be delivered to a computing node of the cleaning tool for cleaning, and one computing node can clean multiple target data. The cleaning tool includes a computing node that can be expanded and shrunk.
[0058] This embodiment can obtain the cleaning capacity of each computing node, that is, the amount of data cleaned per unit time, and then check the data size of the target data, so as to obtain the time required for a computing node to clean a copy of the target data. When allocating target data to computing nodes, it is necessary to ensure that the total time consumed by the computing node to clean the allocated target data does not exceed the allowed cleaning time. Therefore, according to the actual situation, more computing nodes or fewer computing nodes can be allocated to perform cleaning tasks.
[0059] As an optional example, before performing a data cleaning operation on the target data, the method further includes: obtaining the data size of the data to be cleaned and the allowed cleaning time; determining the number of computing nodes based on the data size, the allowed cleaning time and the amount of cleaned data per unit time of each computing node.
[0060] In this embodiment, the data size of each target data can be determined, and then it is assumed that N computing nodes are allocated, and the maximum time consumed by N nodes to clean the target data after the target data is evenly distributed is calculated. If the maximum time consumed exceeds the allowed cleaning time, the number of nodes is increased until the maximum time consumed is less than the allowed cleaning time.
[0061] As an optional example, in the process of performing data cleaning operations on target data, the above method also includes: in the event of a failure of any first computing node, adding a second computing node; packaging the target data that has not been cleaned by the first computing node into new target data; and the second computing node continues to clean the new target data.
[0062] In this embodiment, if any computing node fails, the target data can no longer be cleaned. In this case, the cleaned data that has been output by the computing node should be checked. If a portion of the cleaned data has been output, the uncleaned target data is repackaged into a set of target data and handed over to the newly added computing node for cleaning. If the failed computing node does not output any data, all the target data that was cleaned by the failed computing node is handed over to the newly added computing node for cleaning.
[0063] This embodiment provides a flexible and scalable data cleaning framework, which includes a cleaning tool SparkCluster (a computing framework, including computing nodes (container Pod), which can be used to perform cleaning tasks), a distributed cache service (because it caches metadata, it can also be called a distributed meta-cache service) and object storage. The framework diagram is as follows Figure 6 shown.
[0064] Compute nodes can run container Pods, and the number of containers can be elastically scaled. The elastic scaling of the number of containers is reflected in the number of containers required according to the data to be cleaned, so as to adjust the number of containers in real time. As the amount of data to be cleaned decreases, the number of containers required is also decreasing, so the number of containers on the compute node can be reduced in real time.
[0065] The data to be cleaned is stored in the object storage. Object storage is elastic and scalable. The storage space of the object storage is allocated according to the amount of data to be cleaned. As the data to be cleaned increases or decreases, the storage space of the object storage can be flexibly expanded or contracted.
[0066] The first metadata of the data to be cleaned is stored in the distributed cache service, and the first metadata at least stores the unique identifier and storage address of the data to be cleaned. In other words, through the first metadata in the distributed cache service, the location of the data to be cleaned in the object storage can be quickly located, so that the data to be cleaned can be directly obtained at this location. The distributed cache service is also flexibly scalable. Since the distributed cache service stores the metadata of the data to be cleaned, and the amount of metadata is directly affected by the fluctuation of the amount of data to be cleaned, the distributed cache service can also be elastically scalable as the amount of metadata increases or decreases.
[0067] The data to be cleaned is cleaned through containerized deployment, distributed cache services and object storage. During the entire cleaning process of the data to be cleaned, containers, distributed cache services and object storage can be flexibly scaled to make resource allocation and occupation more flexible and reduce resource waste.
[0068] Figure 7 This is a schematic diagram of elastic scaling of a computing node in this embodiment. The resource size of the container cluster is detected through the elastic scaling service ScaleService, that is, the usage of the computing node is detected. If the central processing unit (CPU) resources or memory resources are detected to be at a high water level for a long time, the interface ApiServer will be called to expand the resources of the computing node Work and increase the number of computing nodes. If the CPU or memory resources are detected to be idle for a long time, the number of computing nodes can be reduced. Both expansion and contraction will notify the control node Collector, so that the control node can know the state of elastic scaling. As an example, expansion and contraction can be performed before or after data cleaning is performed to avoid interference with the data cleaning process. The database (Data Base, DB) is an object storage database that stores data to be cleaned. The computing node can first obtain the metadata of the data to be cleaned from the distributed cache service, and directly obtain the data to be cleaned from the DB according to the address of the data to be cleaned recorded in the metadata.
[0069] In this embodiment, by arranging a distributed metadata cache service, the metadata information of the target data in the object storage can be synchronized. When the computing node reads data, there is no need to search for metadata in the object storage, but directly query the metadata in the cache. After the metadata is queried, the data to be cleaned in the object storage is obtained through the acquisition interface. This process is lightweight and efficient, which can greatly reduce access time and improve data cleaning efficiency.
[0070] Moreover, in this application, the storage, cleaning, and storage of the data to be cleaned after cleaning all adhere to the characteristics of elastic scaling. When the data to be cleaned is stored in the object storage, the storage resources of the object storage are flexibly adjusted according to the data volume of the data to be cleaned. During cleaning, the number of computing nodes, that is, containers, is determined according to the data volume of the data to be cleaned. The distributed cache service where the metadata of the data to be cleaned is located is also elastically scalable according to the data volume of the metadata. After cleaning, the object storage can be elastically scalable according to the data volume of the data to be cleaned after cleaning, realizing the elastic scaling of resources throughout the life cycle of the data to be cleaned, reducing resource waste.
[0071] Figure 8 A schematic diagram of the structure of a data cleaning device provided in an embodiment of the present application. Figure 8 As shown, the above-mentioned data cleaning device includes:
[0072] A determination module 802 is used to determine target data in the data to be cleaned, wherein the target data is a portion of the data to be cleaned, and the data to be cleaned is stored in the object storage;
[0073] A first acquisition module 804 is used to acquire first metadata of the data to be cleaned from the distributed cache service;
[0074] A second acquisition module 806, configured to acquire target metadata of the target data from the first metadata;
[0075] A third acquisition module 808 is used to acquire the target data from the object storage according to the storage address of the target data recorded in the target metadata;
[0076] The cleaning module 810 is used to perform data cleaning operations on target data.
[0077] In this embodiment, the data to be cleaned can be data crawled from the network, and the size of the data is not limited. The user can decide which data to be cleaned. The data to be cleaned is stored in the object storage, and each data has a unique identifier.
[0078] In this embodiment, first metadata of the data to be cleaned is stored in the distributed cache service, and the first metadata at least stores a unique identifier and a storage address of the data to be cleaned.
[0079] When cleaning the data to be cleaned, the data to be cleaned can be divided into multiple parts, each part is used as a target data, and the target data can be cleaned in batches in parallel or serially.
[0080] For each piece of target data, when cleaning, the target metadata can be found from the distributed cache service according to the data identifier of the data in the target data, and then the target data can be directly obtained from the object storage according to the storage address recorded in the target metadata.
[0081] The solution provided by the embodiment of the present application determines target data in the data to be cleaned, wherein the target data is a part of the data to be cleaned, and the data to be cleaned is stored in the object storage; obtains first metadata of the data to be cleaned from the distributed cache service; obtains target metadata of the target data from the first metadata; obtains the target data from the object storage according to the storage address of the target data recorded in the target metadata; performs data cleaning operations on the target data, so that the data to be cleaned and the metadata of the data to be cleaned can be stored through the object storage and the distributed cache service, and when performing cleaning, the storage address of the data to be cleaned is obtained by accessing the metadata in the distributed cache service, so as to directly obtain the data to be cleaned, and perform cleaning operations on the data to be cleaned, thereby improving the efficiency of obtaining the data to be cleaned and solving the problem of low efficiency in cleaning data.
[0082] For other examples of this embodiment, please refer to the above examples and will not be described in detail here.
[0083] like Fig. 9 As shown, an embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.
[0084] Memory 113, used for storing computer programs;
[0085] In one embodiment of the present application, the processor 111 is used to implement the data cleaning method provided by any one of the aforementioned method embodiments when executing the program stored in the memory 113.
[0086] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, a data cleaning method provided in any of the aforementioned method embodiments is implemented.
[0087] 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 shown as units may or may not be physical units, i.e., they may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0088] 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 general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology 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 of each embodiment or some parts of the embodiment.
[0089] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0090] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A data cleaning method, characterized in that: include: Determining target data in the data to be cleaned, wherein the target data is a portion of the data to be cleaned, and the data to be cleaned is stored in an object storage; Acquire first metadata of the data to be cleaned from a distributed cache service; Acquire target metadata of the target data from the first metadata; Acquire the target data from the object storage according to the storage address of the target data recorded in the target metadata; A data cleaning operation is performed on the target data.
2. The method according to claim 1, characterized in that Determining the target data in the data to be cleaned includes: Determine each predetermined size of data in the data to be cleaned as a portion of the target data; or, The data to be cleaned that are in the same time period are determined as one copy of the target data.
3. The method according to claim 2, characterized in that Determining the target data in the data to be cleaned includes: The data between every two special symbols in the data to be cleaned is determined as a portion of the target data, wherein the special symbol is a symbol pre-inserted into the data to be cleaned according to the size of the data to be cleaned or the time period in which it is located.
4. The method according to claim 1, characterized in that: The step of acquiring the target metadata of the target data from the first metadata comprises: Acquire a data identifier of the target data; According to the data identifier, searching the first metadata for metadata matching the data identifier; The found data is determined as the target metadata.
5. The method according to claim 1, characterized in that The performing of a data cleaning operation on the target data comprises: Determining a target computing node from computing nodes determined to perform the data cleaning operation, wherein the number of the computing nodes is determined according to the data size of the data to be cleaned and the allowed cleaning time of the data to be cleaned, and the allowed cleaning time is the longest time taken to clean the data to be cleaned; Each portion of the target data is allocated to one of the target computing nodes, and the target computing node performs the data cleaning operation on the target data.
6. The method according to claim 5, characterized in that Before performing a data cleaning operation on the target data, the method further includes: Obtaining the data size and allowed cleaning time of the data to be cleaned; The number of the computing nodes is determined according to the data size, the allowed cleaning time, and the amount of data cleaned per unit time of each computing node.
7. The method according to claim 5, characterized in that In the process of performing a data cleaning operation on the target data, the method further includes: In case of failure of any first computing node, a second computing node is added; Packing the target data that has not been cleaned by the first computing node into new target data; The second computing node continues to clean the new target data.
8. A data cleaning device, characterized in that: include: A determination module, used for determining target data in the data to be cleaned, wherein the target data is a part of the data to be cleaned, and the data to be cleaned is stored in the object storage; A first acquisition module, used to acquire first metadata of the data to be cleaned from a distributed cache service; A second acquisition module, configured to acquire target metadata of the target data from the first metadata; A third acquisition module, configured to acquire the target data from the object storage according to the storage address of the target data recorded in the target metadata; A cleaning module is used to perform a data cleaning operation on the target data.
9. An electronic device, characterized in that: include: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor coupled to the at least one bus; At least one memory connected to the at least one bus, wherein a computer program is stored in the memory, and when the processor executes the computer program, the data cleaning method described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, wherein the storage medium stores computer-executable instructions, wherein the computer-executable instructions are used to execute the data cleaning method described in any one of claims 1 to 7 of the present application.
Citation Information
Patent Citations
Data query method and device
CN107679093A
Data self-cleaning method and device, electronic equipment and storage medium
CN114490612A
Cleaning method and device based on visual data and related components
CN115203192A
Data cleaning method and device, electronic equipment and storage medium
CN115617786A
User data cleaning method and device, intelligent equipment and storage medium
CN117271491A
