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

A method for realizing data reading and writing, a distributed file system, and a client

A distributed file and data read and write technology, applied in the field of distributed systems, can solve the problem of high latency of read and write requests, and achieve the effect of enhanced scalability and improved read speed

Active Publication Date: 2017-04-19
LENOVO (BEIJING) LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The embodiment of the present application provides a method for realizing data reading and writing, a distributed file system, and a client, which are used to solve the problem of serious queuing delay in existing distributed file systems when accessing large-scale clusters, resulting in The problem of high request delay, realize the separation of reading and writing

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
  • A method for realizing data reading and writing, a distributed file system, and a client
  • A method for realizing data reading and writing, a distributed file system, and a client
  • A method for realizing data reading and writing, a distributed file system, and a client

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0060] Such as figure 1 As shown, in order to realize the flow chart of the method for reading and writing data, the embodiment of the present application provides a method for realizing reading and writing of data, which is applied to the first client of the distributed file system, and the distributed file system includes at least two control node, at least one data node respectively connected to the at least two control nodes, the first client is respectively connected to the at least two control nodes and the at least one data node, wherein the at least two control nodes Including at least a first control node and at least one second control node, the method includes:

[0061] Step 101, judging whether the first request issued is a data write request or a data read request, the write data request is a request for writing first data, and the read data request is a request for reading second data;

[0062] Step 102, if it is a data write request, write the first data into t...

Embodiment 2

[0081] Using the example provided by the embodiment of this application figure 2 The HDFS architecture shown has a beneficial technical effect on breaking through the linear expansion bottleneck in the existing HDFS architecture, realizing dynamic expansion, and effectively coping with the linear growth of the number of Clients and Datanodes.

[0082] If the system read requests are high, you need to dynamically add a new Namenode; the specific expansion process is as follows:

[0083] 1. When a Namenode is added to the system, during the startup process, it will elect itself as the Master Namenode through the distributed election algorithm;

[0084] 2. The election process will fail because the Master Namenode already exists in the system. Therefore, the new Namenode initiates registration information to the Master Namenode.

[0085] 3. The Master Namenode queries the registration information to confirm whether the newly added Namenode has been registered. If it has been re...

Embodiment 3

[0096] Such as image 3 As shown, the embodiment of the present application also provides a client for reading and writing data in a distributed file system, the distributed file system includes at least two control nodes, and at least one of the at least two control nodes respectively connected A data node, the client is respectively connected to the at least two control nodes and the at least one data node, wherein the at least two control nodes include at least a first control node and at least one second control node, The clients include:

[0097] A receiving module 301, configured to receive a first request;

[0098] A judging module 302, configured to judge whether the first request is a data write request or a data read request, and obtain a judgment result, wherein the data write request is a request for writing the first data, and the data read request is a request for reading the first data 2. data requests;

[0099] A data writing module 303, configured to receiv...

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 invention discloses a method for achieving data reading and writing as well as a DSF and a client side. The method is specifically applied to the client side of the DSF. The DSF comprises at least two control nodes and at least one data node connected with the at least two control nodes, wherein the client side is connected with the at least two control nodes and the at least one data node respectively; and the at least two control nodes at least comprise a first control node and at least one second control node. The method comprises the steps as follows: whether a sent first request is a data writing request or a data reading request is judged, wherein the data writing request is a request for writing first data, and the data reading request is a request for reading second data; if the first request is the data writing request, the first data are written in a target data writing node; and if the first request is the data reading request, the second data are read from a target data reading node.

Description

technical field [0001] The invention relates to the field of distributed systems, in particular to a method for realizing data reading and writing, a distributed file system and a client. Background technique [0002] Hadoop Distributed File System, HDFS for short, is a distributed file system. There are three necessary roles in the HDFS architecture, Namenode (control node), Datanode (data node) and Client (client), among which Namenode is a single point of the cluster. In the overall architecture, Namenode acts as both the Server of Client and the server of Datanode Server, its structure diagram is as follows figure 1 shown. When the HDFS cluster increases to a certain scale, such as the number of Datanodes reaches more than 1000, the number of Clients reaches more than 1000, and each Client is 100+RW / s (Read&Write per second, the number of read and write requests per second), then the Namenode carries The number of long connections is 2000, and the number of Namenode R...

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): H04L29/08G06F17/30
Inventor 张云龙
Owner LENOVO (BEIJING) LTD