Unlock instant, AI-driven research and patent intelligence for your innovation.

Renaming method and device in distributed file system and distributed file system

A distributed file and renaming technology, applied in the Internet field, can solve problems such as the increase of the name space and the difficulty in maintaining the normal operation of the distributed file system, and achieve the effect of avoiding modification

Active Publication Date: 2021-06-22
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

As the scale of the distributed file system expands, the namespace also increases accordingly. It is difficult for a single name node to maintain the normal operation of the distributed file system.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Renaming method and device in distributed file system and distributed file system
  • Renaming method and device in distributed file system and distributed file system
  • Renaming method and device in distributed file system and distributed file system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0133] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0134] figure 1 shows a distributed file system, see figure 1 , the distributed file system includes a terminal 101, a name node 102, and a data node 103. In order to ensure the normal operation of the distributed file system and reduce the data processing pressure of the nodes, the number of name nodes 102 and data nodes 103 is at least two.

[0135] Wherein, the terminal 101 may be...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The disclosure relates to a renaming method and device in a distributed file system, and the distributed file system, and belongs to the technical field of the Internet. The method includes: locking the target file structure in the source memory directory; locking the target file structure in the destination memory directory; moving the target file; deleting the target file structure from the source memory directory; The object file structure in the memory directory is unlocked. In the process of renaming the target file, this disclosure locks the structure of the target file in the source name node and the target name node. After the target file is moved on the data node, the source name node deletes the target file structure, and the target name node The node unlocks the target file structure, avoiding the modification of the target file during the renaming process, and avoiding the target file structure being stored in different name nodes at the same time, so as to ensure the normal operation of the distributed file system.

Description

technical field [0001] The present disclosure relates to the technical field of the Internet, and in particular to a renaming method and device in a distributed file system and a distributed file system. Background technique [0002] Generally, a distributed file system includes a name node and a data node, wherein the name node is mainly responsible for managing the name space, and the data node is mainly responsible for storing file data. As the scale of the distributed file system expands, the name space also increases accordingly, and it is difficult for a single name node to maintain the normal operation of the distributed file system. In order to ensure the normal operation of the distributed file system, the name space can be distributed to multiple name nodes in a distributed manner. [0003] In a distributed file system, the renaming operation includes not only the renaming of the file name, but also the change of the file storage path. Since the renaming process ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/182G06F16/17
Inventor 周应超张晨谢纲
Owner BEIJING XIAOMI MOBILE SOFTWARE CO LTD