Distributed data deleting method, device and equipment based on deleting queue
A technology of distributed data and deletion method, applied in the computer field, can solve problems such as affecting the computing performance of distributed clusters, generating large temporary data, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] The following is an introduction to Embodiment 1 of a distributed data deletion method based on a deletion queue provided by this application, see figure 1 , embodiment one includes:
[0045] S101. Generate a deletion information item according to the file object to be deleted, wherein the file object to be deleted is an intermediate result in a big data computing scenario, and the deletion information item includes the storage information of the metadata object and the storage information of the data object to be deleted ;
[0046] S102. Add the deletion information item to a deletion queue;
[0047] S103. Place the deletion queue in the form of a log file, and send a deletion completion message to the business layer after the disk placement is completed;
[0048] S104. Perform an asynchronous deletion operation according to the deletion queue after placing the disk.
[0049] In this embodiment, the file object to be deleted refers to an intermediate result generate...
Embodiment 2
[0057] see figure 2 , embodiment two specifically includes:
[0058] S201, traversing the intermediate results in the big data computing scenario, and judging whether the number of links of the currently traversed file object is 0, wherein the number of links represents the number of inodes mounted to the file object; if so, jump to S202, Otherwise, traverse the next file object;
[0059] This embodiment can actively traverse the intermediate results, and evaluate whether the file object obtained through the traversal is a file object to be deleted. The specific evaluation method is: judge whether the link number of the file object is 0 (nlink=0) or whether the file object has other front-end business access, if the link number is 0 or there is no other front-end business access, the file object is considered to be deleted file object.
[0060] S202. Determine that the currently traversed file object is a file object to be deleted, and generate a deletion information item ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


