Data writing method and device for distributed file system, equipment and medium
A distributed file and data writing technology, applied in the direction of electronic digital data processing, special data processing applications, digital data information retrieval, etc., can solve the problems of long data writing time, low data writing efficiency, etc. The effect of improving input efficiency and shortening the writing time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0032] see figure 1 , figure 1 It is a schematic flowchart of a method for writing data in a distributed file system disclosed in an embodiment of the present invention. Such as figure 1 As shown, the data writing method of the distributed file system may include the following operations:
[0033] 101. Detect whether a write request for target data sent by a client of the distributed file system is received;
[0034] In the above step 101, the distributed file system usually consists of a client (client), a namenode and several datanodes. Wherein, client (client) may be used to initiate a write request of target data. Optionally, the client (client) can also split the file to be written into multiple data blocks, and then write the multiple data blocks into the distributed file system one by one. For example, the size of the file to be written is 300M, if the default size of the data block in datenode is 128M, the client (client) can split the file into three data blocks,...
Embodiment 2
[0080] see figure 2 , figure 2 It is a schematic structural diagram of a data writing device for a distributed file system disclosed in an embodiment of the present invention. Such as figure 2 As shown, the data writing device of the distributed file system may include:
[0081] A detection module 201, configured to detect whether a write request for target data sent by a client of the distributed file system is received;
[0082] A determination module 202, configured to determine a master data storage node and at least one slave data storage node from multiple data storage nodes of the distributed file system when the detection module detects the write request;
[0083] A writing module 203, configured to write the target data into the primary data storage node;
[0084] return module 204, configured to write the target data to the distributed file system after the writing module 203 finishes writing the target data in the primary data storage node A confirmation mes...
Embodiment 3
[0088] see image 3 , image 3 It is a schematic structural diagram of a computer device disclosed in an embodiment of the present invention. Such as image 3 As shown, the computer equipment may include:
[0089] A memory 301 storing executable program codes;
[0090] A processor 302 connected to the memory 301;
[0091] The processor 302 invokes the executable program code stored in the memory 301 to execute the steps in the data writing method of the distributed file system disclosed in the first embodiment of the present invention.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com