CN105138706A - Data diagnosis method, device and system for distributed type file system - Google Patents

Data diagnosis method, device and system for distributed type file system Download PDF

Info

Publication number
CN105138706A
CN105138706A CN201510641019.9A CN201510641019A CN105138706A CN 105138706 A CN105138706 A CN 105138706A CN 201510641019 A CN201510641019 A CN 201510641019A CN 105138706 A CN105138706 A CN 105138706A
Authority
CN
China
Prior art keywords
data
diagnosis
information
diagnosed
diagnostic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510641019.9A
Other languages
Chinese (zh)
Inventor
卓维晨
李雪生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510641019.9A priority Critical patent/CN105138706A/en
Publication of CN105138706A publication Critical patent/CN105138706A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

本发明实施例提供一种分布式文件系统数据诊断方法、装置和系统,其中,方法包括:客户端向服务端发送数据诊断指令;接收服务端根据数据诊断指令确定待诊断数据,根据待诊断数据搜索得到诊断信息后,向该客户端发送的诊断信息,其中,诊断信息包括:数据目录项信息、数据会话控制信息和数据索引节点信息;根据该诊断信息生成包括该诊断信息的诊断文件,根据该诊断文件判断待诊断数据是否有误。在客户端无需再动态运行待诊断数据来对分布式文件系统内该待诊断数据进行诊断,对数据的诊断更为简单便利,维护难度较小,提高了客户端数据诊断的效率。

Embodiments of the present invention provide a distributed file system data diagnosis method, device, and system, wherein the method includes: the client sends a data diagnosis instruction to the server; the receiving server determines the data to be diagnosed according to the data diagnosis instruction, and according to the data to be diagnosed After searching for the diagnosis information, send the diagnosis information to the client, wherein the diagnosis information includes: data directory item information, data session control information and data index node information; generate a diagnosis file including the diagnosis information according to the diagnosis information, according to The diagnosis file judges whether the data to be diagnosed is wrong. The client does not need to dynamically run the data to be diagnosed to diagnose the data to be diagnosed in the distributed file system, the diagnosis of the data is simpler and more convenient, the maintenance is less difficult, and the efficiency of the data diagnosis of the client is improved.

Description

分布式文件系统数据诊断方法、装置和系统Distributed file system data diagnosis method, device and system

技术领域technical field

本发明涉及分布式文件系统内数据处理技术领域,特别是涉及一种分布式文件系统数据诊断方法、装置和系统。The invention relates to the technical field of data processing in a distributed file system, in particular to a data diagnosis method, device and system of a distributed file system.

背景技术Background technique

目前,分布式文件系统中,在客户端并没有一种专用的数据诊断方法,。当系统维护人员需要对分布式文件系统内数据进行诊断时,在客户端,需要先将待诊断数据进行运行,然后通过在客户端内核中跟踪程序的运行,生成该程序的运行日志,最后通过查看这些运行日志来判断系统中待诊断数据是否有误,在客户端需要动态运行待诊断数据才能知道该待诊断数据是否有误,对数据的诊断较为不便,且维护难度较大,浪费了工作量。At present, in the distributed file system, there is no dedicated data diagnosis method on the client side. When the system maintenance personnel need to diagnose the data in the distributed file system, on the client side, the data to be diagnosed needs to be run first, and then by tracking the running of the program in the client kernel, the running log of the program is generated, and finally through Check these operation logs to determine whether the data to be diagnosed is wrong in the system. The client needs to dynamically run the data to be diagnosed to know whether the data to be diagnosed is wrong. It is inconvenient to diagnose the data, and the maintenance is difficult, which wastes work. quantity.

发明内容Contents of the invention

有鉴于此,本发明实施例提供一种分布式文件系统数据诊断方法、装置和系统,以解决现有技术中需要动态运行待诊断数据才能知道该待诊断数据是否有误,对数据的诊断较为不便,且维护难度较大,浪费了工作量的问题。In view of this, the embodiments of the present invention provide a distributed file system data diagnosis method, device and system to solve the problem that in the prior art, it is necessary to dynamically run the data to be diagnosed to know whether the data to be diagnosed is wrong, and the diagnosis of the data is relatively difficult. Inconvenient, and difficult to maintain, a waste of workload.

为实现上述目的,本发明实施例提供如下技术方案:In order to achieve the above purpose, embodiments of the present invention provide the following technical solutions:

一种分布式文件系统数据诊断方法,包括:A method for diagnosing distributed file system data, comprising:

客户端向服务端发送数据诊断指令;The client sends data diagnosis instructions to the server;

接收所述服务端根据所述数据诊断指令确定待诊断数据,根据所述待诊断数据搜索得到诊断信息后,向所述客户端发送的所述诊断信息,其中,所述诊断信息包括:数据目录项信息、数据会话控制信息和数据索引节点信息;receiving the diagnostic information sent by the server to the client after determining the data to be diagnosed according to the data diagnosis instruction and searching the diagnostic information according to the data to be diagnosed, wherein the diagnostic information includes: a data directory Item information, data session control information and data inode information;

根据所述诊断信息生成包括所述诊断信息的诊断文件,根据所述诊断文件判断所述待诊断数据是否有误。A diagnosis file including the diagnosis information is generated according to the diagnosis information, and whether the data to be diagnosed is wrong is judged according to the diagnosis file.

其中,所述根据所述诊断文件判断所述待诊断数据是否有误包括:Wherein, the judging whether the data to be diagnosed is wrong according to the diagnosis file includes:

根据所述数据目录项信息确定所述待诊断数据的文件名,判断是否所有所述文件名均唯一,若不是,则判定所述待诊断数据有误;Determine the file name of the data to be diagnosed according to the data directory item information, determine whether all the file names are unique, if not, determine that the data to be diagnosed is wrong;

根据所述数据会话控制信息确定所述待诊断数据是否发生非正常更改,若发生,则判定所述待诊断数据有误;Determine whether the data to be diagnosed is abnormally changed according to the data session control information, and if so, determine that the data to be diagnosed is wrong;

根据所述数据所述节点信息确定所述待诊断数据的索引编号,判断是否所有所述索引编号均唯一,若不是,则判定所述待诊断数据有误。Determine the index number of the data to be diagnosed according to the node information of the data, judge whether all the index numbers are unique, if not, determine that the data to be diagnosed is wrong.

其中,所述根据所述诊断信息生成诊断文件包括:Wherein, said generating a diagnosis file according to said diagnosis information includes:

判断是否接收到诊断信息;judging whether diagnostic information is received;

若是,则生成诊断文件,其中,所述诊断文件为.info格式;If so, generate a diagnostic file, wherein the diagnostic file is in .info format;

将接收的所有所述诊断信息均写入所述诊断文件。All received diagnostic information is written to the diagnostic file.

其中,所述客户端向服务端发送数据诊断指令后还包括:Wherein, after the client sends the data diagnosis instruction to the server, it also includes:

判断是否在预定时间内接收到所述服务端发送来的诊断信息;judging whether the diagnostic information sent by the server is received within a predetermined time;

若否,则再次向所述服务端发送所述数据诊断指令。If not, send the data diagnosis instruction to the server again.

其中,所述根据所述诊断信息生成诊断文件后还包括:通过显示屏对所述诊断文件进行显示。Wherein, after generating the diagnosis file according to the diagnosis information, it further includes: displaying the diagnosis file through a display screen.

一种分布式文件系统数据诊断装置,包括:指令发送模块、数据接收模块和数据诊断模块;其中,A distributed file system data diagnosis device, including: an instruction sending module, a data receiving module and a data diagnosis module; wherein,

所述指令发送模块,用于向服务端发送数据诊断指令;The instruction sending module is used to send a data diagnosis instruction to the server;

所述数据接收模块,用于接收所述服务端根据所述数据诊断指令确定待诊断数据,根据所述待诊断数据搜索得到诊断信息后,向所述客户端发送的所述诊断信息,其中,所述诊断信息包括:数据目录项信息、数据会话控制信息和数据索引节点信息;The data receiving module is configured to receive the diagnosis information sent to the client after the server determines the data to be diagnosed according to the data diagnosis instruction, and searches for the diagnosis information according to the data to be diagnosed, wherein, The diagnostic information includes: data directory entry information, data session control information and data index node information;

所述数据诊断模块,用于根据所述诊断信息生成包括所述诊断信息的诊断文件,根据所述诊断文件判断所述待诊断数据是否有误。The data diagnosis module is configured to generate a diagnosis file including the diagnosis information according to the diagnosis information, and judge whether the data to be diagnosed is wrong according to the diagnosis file.

其中,所述数据诊断模块包括:第一诊断单元、第二诊断单元和第三诊断单元;其中;Wherein, the data diagnosis module includes: a first diagnosis unit, a second diagnosis unit and a third diagnosis unit; wherein;

所述第一诊断单元,用于根据所述数据目录项信息确定所述待诊断数据的文件名,判断是否所有所述文件名均唯一,若不是,则判定所述待诊断数据有误;The first diagnosis unit is configured to determine the file name of the data to be diagnosed according to the data directory item information, and determine whether all the file names are unique, and if not, determine that the data to be diagnosed is incorrect;

所述第二诊断单元,用于根据所述数据会话控制信息确定所述待诊断数据是否发生非正常更改,若发生,则判定所述待诊断数据有误;The second diagnosing unit is configured to determine whether the data to be diagnosed is abnormally changed according to the data session control information, and if so, determine that the data to be diagnosed is wrong;

所述第三诊断单元,用于根据所述数据所述节点信息确定所述待诊断数据的索引编号,判断是否所有所述索引编号均唯一,若不是,则判定所述待诊断数据有误。The third diagnosis unit is configured to determine the index numbers of the data to be diagnosed according to the node information of the data, and determine whether all the index numbers are unique, and if not, determine that the data to be diagnosed is incorrect.

其中,所述数据诊断模块还包括:判断单元、文件生成单元和信息写入单元;其中,Wherein, the data diagnosis module further includes: a judging unit, a file generating unit, and an information writing unit; wherein,

所述判断单元,用于判断是否接收到诊断信息;The judging unit is configured to judge whether diagnostic information is received;

所述文件生成单元,用于当接收到诊断信息时,生成诊断文件,其中,所述诊断文件为.info格式;The file generating unit is configured to generate a diagnostic file when receiving diagnostic information, wherein the diagnostic file is in .info format;

所述信息写入单元,用于将接收的所有所述诊断信息均写入所述诊断文件。The information writing unit is configured to write all the received diagnostic information into the diagnostic file.

其中,所述分布式文件系统数据诊断装置还包括:判断模块,用于判断所述指令发送模块向服务端发送数据诊断指令后,是否在预定时间内接收到所述服务端发送来的诊断信息;若否,则所述指令发送模块再次向所述服务端发送所述数据诊断指令。Wherein, the distributed file system data diagnosis device further includes: a judging module for judging whether the instruction sending module has received the diagnosis information sent by the server within a predetermined time after sending the data diagnosis instruction to the server ; If not, the instruction sending module sends the data diagnosis instruction to the server again.

一种分布式文件系统数据诊断系统,包括:客户端和服务端;其中,A distributed file system data diagnosis system, including: a client and a server; wherein,

所述客户端,用于向所述服务端发送数据诊断指令;接收所述服务端根据所述数据诊断指令确定待诊断数据,根据所述待诊断数据搜索得到诊断信息后,向所述客户端发送的所述诊断信息,其中,所述诊断信息包括:数据目录项信息、数据会话控制信息和数据索引节点信息;根据所述诊断信息生成包括所述诊断信息的诊断文件,根据所述诊断文件判断所述待诊断数据是否有误;The client is configured to send a data diagnosis instruction to the server; after receiving the data to be diagnosed determined by the server according to the data diagnosis instruction, and after obtaining diagnosis information according to the data to be diagnosed, send the data to the client The diagnostic information sent, wherein the diagnostic information includes: data directory item information, data session control information, and data index node information; generate a diagnostic file including the diagnostic information according to the diagnostic information, and generate a diagnostic file according to the diagnostic file judging whether the data to be diagnosed is wrong;

所述服务端,用于接收所述客户端发送的数据诊断指令,根据所述数据诊断指令确定待诊断数据,根据所述待诊断数据搜索得到诊断信息,将所述诊断信息发送至所述客户端。The server is configured to receive the data diagnosis instruction sent by the client, determine the data to be diagnosed according to the data diagnosis instruction, search for diagnosis information according to the data to be diagnosed, and send the diagnosis information to the client end.

基于上述技术方案,本发明实施例提供的分布式文件系统数据诊断方法、装置和系统,客户端向服务端发送数据诊断指令,服务端接收该数据诊断指令确定待诊断数据,根据该待诊断数据搜索得到诊断信息后,向客户端发送该诊断信息,其中,所述诊断信息包括:数据目录项信息、数据会话控制信息和数据索引节点信息,客户端在接收到服务端发送的诊断信息后,根据该诊断信息生成包括该诊断信息的诊断文件,根据该诊断文件判断所述待诊断数据是否有误。当系统维护人员需要对分布式文件系统内数据进行诊断时,只需要通过客户端向服务端发送数据诊断指令,客户端便可接收到服务端发送来的数据目录项信息、数据会话控制信息和数据索引节点信息三类诊断信息,并根据该诊断信息生成诊断文件,根据该诊断文件判断待诊断数据是否有误,在客户端无需再动态运行待诊断数据来对分布式文件系统内该待诊断数据进行诊断,对数据的诊断更为简单便利,维护难度较小,提高了客户端数据诊断的效率。Based on the above technical solution, in the distributed file system data diagnosis method, device and system provided by the embodiments of the present invention, the client sends a data diagnosis instruction to the server, and the server receives the data diagnosis instruction to determine the data to be diagnosed, and according to the data to be diagnosed After searching for the diagnostic information, send the diagnostic information to the client, wherein the diagnostic information includes: data directory item information, data session control information and data index node information, after the client receives the diagnostic information sent by the server, A diagnosis file including the diagnosis information is generated according to the diagnosis information, and it is judged according to the diagnosis file whether the data to be diagnosed is wrong. When system maintenance personnel need to diagnose data in the distributed file system, they only need to send data diagnosis instructions to the server through the client, and the client can receive the data directory item information, data session control information and Three types of diagnostic information of data index node information, and generate a diagnostic file based on the diagnostic information, and judge whether the data to be diagnosed is wrong according to the diagnostic file, and there is no need to dynamically run the data to be diagnosed on the client side to diagnose the data to be diagnosed in the distributed file system Diagnose the data, the diagnosis of the data is simpler and more convenient, the maintenance is less difficult, and the efficiency of the client data diagnosis is improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings on the premise of not paying creative efforts.

图1为本发明实施例提供的分布式文件系统数据诊断方法的流程图;FIG. 1 is a flow chart of a method for diagnosing data in a distributed file system provided by an embodiment of the present invention;

图2为本发明实施例提供的分布式文件系统数据诊断方法中根据诊断文件判断待诊断数据是否有误的方法流程图;2 is a flowchart of a method for judging whether the data to be diagnosed is incorrect according to the diagnosis file in the distributed file system data diagnosis method provided by the embodiment of the present invention;

图3为本发明实施例提供的分布式文件系统数据诊断方法中根据诊断信息生成诊断文件的方法流程图;FIG. 3 is a flow chart of a method for generating a diagnostic file based on diagnostic information in a distributed file system data diagnostic method provided by an embodiment of the present invention;

图4为本发明实施例提供的分布式文件系统数据诊断方法中判断是否再次向服务端发送数据诊断指令的方法流程图;4 is a flowchart of a method for judging whether to send a data diagnosis command to the server again in the distributed file system data diagnosis method provided by the embodiment of the present invention;

图5为本发明实施例提供的分布式文件系统数据诊断装置的系统框图;5 is a system block diagram of a distributed file system data diagnosis device provided by an embodiment of the present invention;

图6为本发明实施例提供的分布式文件系统数据诊断装置中数据诊断模块的结构框图;6 is a structural block diagram of a data diagnosis module in a distributed file system data diagnosis device provided by an embodiment of the present invention;

图7为本发明实施例提供的分布式文件系统数据诊断装置中数据诊断模块的另一结构框图;Fig. 7 is another structural block diagram of the data diagnosis module in the distributed file system data diagnosis device provided by the embodiment of the present invention;

图8为本发明实施例提供的分布式文件系统数据诊断装置的另一系统框图;FIG. 8 is another system block diagram of a distributed file system data diagnosis device provided by an embodiment of the present invention;

图9为本发明实施例提供的分布式文件系统数据诊断系统的系统框图。FIG. 9 is a system block diagram of a distributed file system data diagnosis system provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

图1为本发明实施例提供的分布式文件系统数据诊断方法的流程图,只需要通过客户端向服务端发送数据诊断指令,客户端便可接收到服务端发送来的数据目录项信息、数据会话控制信息和数据索引节点信息三类诊断信息,并根据该诊断信息生成诊断文件,根据该诊断文件判断待诊断数据是否有误,在客户端无需再动态运行待诊断数据来对分布式文件系统内该待诊断数据进行诊断,对数据的诊断更为简单便利,维护难度较小,提高了客户端数据诊断的效率;参照图1,该分布式文件系统数据诊断方法可以包括:Fig. 1 is a flow chart of the distributed file system data diagnosis method provided by the embodiment of the present invention. The client only needs to send a data diagnosis command to the server through the client, and the client can receive the data directory item information and data sent by the server. Session control information and data index node information are three types of diagnostic information, and a diagnostic file is generated based on the diagnostic information. According to the diagnostic file, it is judged whether the data to be diagnosed is wrong, and the client does not need to dynamically run the data to be diagnosed to update the distributed file system. Diagnose the data to be diagnosed, the data diagnosis is simpler and more convenient, the maintenance is less difficult, and the efficiency of client data diagnosis is improved; referring to Figure 1, the distributed file system data diagnosis method may include:

步骤S100:客户端向服务端发送数据诊断指令;Step S100: the client sends a data diagnosis instruction to the server;

可选的,在客户端向服务端发送数据诊断指令后,还可以判断是否在预定时间内接收到服务端发送来的诊断信息,若没有在预定时间内接收到服务端发送来的诊断信息,可认为该向服务端发送的数据诊断指令未被服务端接收,可再次向服务端发送数据诊断指令。Optionally, after the client sends the data diagnosis instruction to the server, it can also judge whether the diagnostic information sent by the server is received within the predetermined time, if the diagnostic information sent by the server is not received within the predetermined time, It can be considered that the data diagnosis instruction sent to the server is not received by the server, and the data diagnosis instruction can be sent to the server again.

步骤S110:接收所述服务端根据所述数据诊断指令确定待诊断数据,根据所述待诊断数据搜索得到诊断信息后,向所述客户端发送的所述诊断信息,其中,所述诊断信息包括:数据目录项信息、数据会话控制信息和数据索引节点信息;Step S110: receiving the diagnostic information sent to the client after the server determines the data to be diagnosed according to the data diagnosis instruction, searches the diagnostic information according to the data to be diagnosed, and the diagnostic information includes : data directory item information, data session control information and data index node information;

当服务端接收到客户端发送的数据诊断指令后,服务端将根据该接收的数据诊断指令确定待诊断数据,并根据该待诊断数据搜索得到诊断信息,将该搜到的诊断信息发送给客户端。其中,搜索的诊断信息包括:数据目录项信息、数据会话控制信息和数据索引节点信息。When the server receives the data diagnosis command sent by the client, the server will determine the data to be diagnosed according to the received data diagnosis command, and search for diagnostic information based on the data to be diagnosed, and send the found diagnostic information to the client end. Wherein, the searched diagnostic information includes: data directory item information, data session control information and data index node information.

步骤S120:根据所述诊断信息生成包括所述诊断信息的诊断文件,根据所述诊断文件判断所述待诊断数据是否有误。Step S120: Generate a diagnosis file including the diagnosis information according to the diagnosis information, and judge whether the data to be diagnosed is wrong according to the diagnosis file.

客户端在接收到服务端发送来的诊断信息后,将根据该诊断信息生成包括该诊断信息的诊断文件,在得到诊断文件后,便可根据该诊断文件来判断待诊断数据是否有误。After receiving the diagnostic information sent by the server, the client will generate a diagnostic file including the diagnostic information according to the diagnostic information. After obtaining the diagnostic file, it can judge whether the data to be diagnosed is wrong according to the diagnostic file.

可选的,可以通过接收的诊断信息中数据目录项信息确定待诊断数据的文件名,判断这些文件名是否均唯一,即判断这些文件名是否均具有唯一性,判断是否存在同名文件,若判定并非所有文件名均唯一,即存在同名文件,则可判定该待诊断数据有误。Optionally, the file name of the data to be diagnosed can be determined through the data directory item information in the received diagnostic information, and it can be judged whether these file names are unique, that is, it can be judged whether these file names are unique, and it can be judged whether there is a file with the same name. Not all file names are unique, that is, if there is a file with the same name, it can be determined that the data to be diagnosed is incorrect.

可选的,可以通过根据接收的诊断信息中数据会话控制信息确定待诊断数据是否发生非正常更改,例如非正常地增加数据,发送数据丢失和非正常的数据替换,若判定发生了非正常更改,则可判定该待诊断数据有误。Optionally, according to the data session control information in the received diagnostic information, it can be determined whether abnormal changes have occurred in the data to be diagnosed, such as abnormally increasing data, sending data loss and abnormal data replacement, if it is determined that abnormal changes have occurred , it can be determined that the data to be diagnosed is wrong.

可选的,可以通过接收的诊断信息中节点信息确定待诊断数据的索引编号,判断这些索引编号是否均唯一,即判断这些索引编号是否均具有唯一性,判断所有索引号中是否存在相同的索引编号,若判定并非所有索引编号均唯一,即存在相同的索引编号,则可判定该待诊断数据有误。Optionally, the index number of the data to be diagnosed can be determined through the node information in the received diagnosis information, and it can be judged whether these index numbers are unique, that is, it can be judged whether these index numbers are unique, and it can be judged whether there is the same index in all index numbers If it is determined that not all index numbers are unique, that is, there are identical index numbers, it can be determined that the data to be diagnosed is incorrect.

只有在判定待诊断数据所有文件名均唯一,未发生正常更改和所有索引编号均唯一时,才判定待诊断数据有误。Only when it is determined that all file names of the data to be diagnosed are unique, no normal changes have occurred and all index numbers are unique, it is determined that the data to be diagnosed is incorrect.

可选的,可以通过在接收到诊断信息后,先生成一诊断文件,然后将接收的所有诊断信息均写入该诊断文件,来生成诊断文件,该诊断文件中包括所有接收到的诊断信息。Optionally, after receiving the diagnostic information, first generating a diagnostic file, and then writing all the received diagnostic information into the diagnostic file to generate the diagnostic file, the diagnostic file includes all the received diagnostic information.

可选的,生成的诊断文件可以为.info格式的文件。Optionally, the generated diagnosis file may be a file in .info format.

可选的,根据诊断信息生成诊断文件后,可以通过显示屏对该诊断文件进行显示。Optionally, after the diagnostic file is generated according to the diagnostic information, the diagnostic file may be displayed on a display screen.

基于上述技术方案,本发明实施例提供的分布式文件系统数据诊断方法,客户端向服务端发送数据诊断指令,服务端接收该数据诊断指令确定待诊断数据,根据该待诊断数据搜索得到诊断信息后,向客户端发送该诊断信息,其中,所述诊断信息包括:数据目录项信息、数据会话控制信息和数据索引节点信息,客户端在接收到服务端发送的诊断信息后,根据该诊断信息生成包括该诊断信息的诊断文件,根据该诊断文件判断所述待诊断数据是否有误。当系统维护人员需要对分布式文件系统内数据进行诊断时,只需要通过客户端向服务端发送数据诊断指令,客户端便可接收到服务端发送来的数据目录项信息、数据会话控制信息和数据索引节点信息三类诊断信息,并根据该诊断信息生成诊断文件,根据该诊断文件判断待诊断数据是否有误,在客户端无需再动态运行待诊断数据来对分布式文件系统内该待诊断数据进行诊断,对数据的诊断更为简单便利,维护难度较小,提高了客户端数据诊断的效率。Based on the above technical solution, in the distributed file system data diagnosis method provided by the embodiment of the present invention, the client sends a data diagnosis instruction to the server, and the server receives the data diagnosis instruction to determine the data to be diagnosed, and searches for the diagnosis information according to the data to be diagnosed Then, send the diagnostic information to the client, wherein the diagnostic information includes: data directory item information, data session control information and data index node information, after the client receives the diagnostic information sent by the server, according to the diagnostic information A diagnosis file including the diagnosis information is generated, and it is judged according to the diagnosis file whether the data to be diagnosed is wrong. When system maintenance personnel need to diagnose data in the distributed file system, they only need to send data diagnosis instructions to the server through the client, and the client can receive the data directory item information, data session control information and Three types of diagnostic information of data index node information, and generate a diagnostic file based on the diagnostic information, and judge whether the data to be diagnosed is wrong according to the diagnostic file, and there is no need to dynamically run the data to be diagnosed on the client side to diagnose the data to be diagnosed in the distributed file system Diagnose the data, the diagnosis of the data is simpler and more convenient, the maintenance is less difficult, and the efficiency of the client data diagnosis is improved.

可选的,图2示出了本发明实施例提供的分布式文件系统数据诊断方法中根据诊断文件判断待诊断数据是否有误的方法流程图,参照图2,该根据诊断文件判断待诊断数据是否有误的方法可以包括:Optionally, Fig. 2 shows a flowchart of a method for judging whether the data to be diagnosed is incorrect according to the diagnosis file in the distributed file system data diagnosis method provided by the embodiment of the present invention. Referring to Fig. 2, the judgment of the data to be diagnosed is based on the diagnosis file Is there a wrong method that can include:

步骤S200:根据所述数据目录项信息确定所述待诊断数据的文件名,判断是否所有所述文件名均唯一,若不是,则判定所述待诊断数据有误;Step S200: Determine the file name of the data to be diagnosed according to the data directory item information, and determine whether all the file names are unique, if not, determine that the data to be diagnosed is wrong;

根据接收的诊断信息中数据目录项信息可确定待诊断数据的文件名,在确定待诊断数据的文件名后,可判断这些文件名是否均唯一,若判定并非所有文件名均唯一,则可判定该待诊断数据有误。According to the data directory item information in the received diagnostic information, the file name of the data to be diagnosed can be determined. After the file name of the data to be diagnosed is determined, it can be judged whether these file names are unique. If it is determined that not all file names are unique, it can be determined The data to be diagnosed is incorrect.

步骤S210:根据所述数据会话控制信息确定所述待诊断数据是否发生非正常更改,若发生,则判定所述待诊断数据有误;Step S210: Determine whether the data to be diagnosed is abnormally changed according to the data session control information, and if so, determine that the data to be diagnosed is wrong;

根据接收的诊断信息中数据会话控制信息可确定待诊断数据是否发生非正常更改,例如非正常地增加数据,发送数据丢失和非正常的数据替换,若判定发生了非正常更改,则说明该待诊断数据有误。According to the data session control information in the received diagnostic information, it can be determined whether abnormal changes have occurred in the data to be diagnosed, such as abnormally adding data, sending data loss, and abnormal data replacement. If it is determined that abnormal changes have occurred, it indicates that the pending The diagnostic data is incorrect.

步骤S220:根据所述数据所述节点信息确定所述待诊断数据的索引编号,判断是否所有所述索引编号均唯一,若不是,则判定所述待诊断数据有误。Step S220: Determine the index number of the data to be diagnosed according to the node information of the data, and determine whether all the index numbers are unique, if not, determine that the data to be diagnosed is wrong.

根据接收的诊断信息中节点信息可确定待诊断数据的索引编号,在确定待诊断数据的索引编号后,可判断这些索引编号是否均唯一,若判定并非所有索引编号均唯一,则可判定该待诊断数据有误。According to the node information in the received diagnostic information, the index numbers of the data to be diagnosed can be determined. After determining the index numbers of the data to be diagnosed, it can be judged whether these index numbers are unique. If it is determined that not all index numbers are unique, it can be determined that the The diagnostic data is incorrect.

其中,需要说明的是,步骤S200、步骤S210和步骤S220间并没有执行上的逻辑顺序关系,不论步骤S200、步骤S210和步骤S220的执行顺序如何,也不论是否同时执行步骤S200、步骤S210和步骤S220,只要完成步骤S200、步骤S210和步骤S220,即可完成对待诊断数据是否有误的判断过程。Among them, it should be noted that there is no logical sequence relationship among steps S200, S210 and S220, regardless of the execution order of steps S200, S210 and S220, and whether or not steps S200, S210 and S220 are executed at the same time. In step S220, as long as step S200, step S210 and step S220 are completed, the process of judging whether the data to be diagnosed is incorrect can be completed.

上述判断待诊断数据是否有误的方法,相较通过运行日志来判断待诊断数据是否有误,无需系统维护人员理解复杂的程序,只需要经过简单的比对即可完成,更为方便简单。The above-mentioned method of judging whether the data to be diagnosed is wrong is more convenient and simple than judging whether the data to be diagnosed is wrong through the operation log, which does not require system maintenance personnel to understand complicated procedures, and only needs to be completed through a simple comparison.

可选的,图3示出了本发明实施例提供的分布式文件系统数据诊断方法中根据诊断信息生成诊断文件的方法流程图,参照图3,该根据诊断信息生成诊断文件的方法可以包括:Optionally, FIG. 3 shows a flowchart of a method for generating a diagnostic file based on diagnostic information in the method for diagnosing data in a distributed file system provided by an embodiment of the present invention. Referring to FIG. 3 , the method for generating a diagnostic file based on diagnostic information may include:

步骤S300:判断是否接收到诊断信息;Step S300: judging whether diagnostic information is received;

客户端根据诊断信息生成诊断文件时,需要先判断是否接收到诊断信息,在判定接收到诊断信息后,才可根据接收的诊断信息生成诊断文件。When the client generates a diagnostic file based on the diagnostic information, it needs to first determine whether the diagnostic information has been received, and only after it determines that the diagnostic information has been received can it generate a diagnostic file based on the received diagnostic information.

其中,诊断信息可以包括数据目录项信息、数据会话控制信息和数据索引节点信息。Wherein, the diagnosis information may include data directory entry information, data session control information and data index node information.

步骤S310:若是,则生成诊断文件,其中,所述诊断文件为.info格式;Step S310: If yes, generate a diagnostic file, wherein the diagnostic file is in .info format;

若判定接收到诊断信息,则可先生成一.info格式的诊断文件,用于写入接收的所有所述诊断信息。If it is determined that diagnostic information has been received, a diagnostic file in .info format may be firstly generated for writing all the received diagnostic information.

步骤S320:将接收的所有所述诊断信息均写入所述诊断文件。Step S320: Write all the received diagnostic information into the diagnostic file.

在生成诊断文件后,便可将接收的所有诊断信息写入该诊断文件,得到包括所有接收的诊断信息的诊断文件,通过该诊断文件来判断待诊断数据是否有误。After the diagnostic file is generated, all the received diagnostic information can be written into the diagnostic file to obtain a diagnostic file including all the received diagnostic information, through which it can be judged whether the data to be diagnosed is wrong.

可选的,图4示出了本发明实施例提供的分布式文件系统数据诊断方法中判断是否再次向服务端发送数据诊断指令的方法流程图,参照图4,该判断是否再次向服务端发送数据诊断指令的方法可以包括:Optionally, FIG. 4 shows a flowchart of a method for judging whether to send a data diagnosis instruction to the server again in the distributed file system data diagnosis method provided by an embodiment of the present invention. Referring to FIG. Methods of data diagnostic instructions may include:

步骤S400:判断是否在预定时间内接收到所述服务端发送的诊断信息;Step S400: judging whether the diagnostic information sent by the server is received within a predetermined time;

可选的,在客户端向服务端发送数据诊断指令后,可以通过判断是否在预定时间内接收到服务端发送来的诊断信息,来判断服务端是否接收到该诊断指令。Optionally, after the client sends a data diagnosis instruction to the server, it may be determined whether the server receives the diagnosis instruction by judging whether the diagnosis information sent by the server is received within a predetermined time.

步骤S410:若否,则再次向所述服务端发送所述数据诊断指令。Step S410: If not, send the data diagnosis instruction to the server again.

若没有在预定时间内接收到服务端发送来的诊断信息,则可认为该向服务端发送的数据诊断指令未被服务端接收,可再次向服务端发送数据诊断指令。If the diagnosis information sent by the server is not received within the predetermined time, it can be considered that the data diagnosis instruction sent to the server has not been received by the server, and the data diagnosis instruction can be sent to the server again.

本发明实施例提供的分布式文件系统数据诊断方法,只需要通过客户端向服务端发送数据诊断指令,客户端便可接收到服务端发送来的数据目录项信息、数据会话控制信息和数据索引节点信息三类诊断信息,并根据该诊断信息生成诊断文件,根据该诊断文件判断待诊断数据是否有误,在客户端无需再动态运行待诊断数据来对分布式文件系统内该待诊断数据进行诊断,对数据的诊断更为简单便利,维护难度较小,提高了客户端数据诊断的效率。The distributed file system data diagnosis method provided by the embodiment of the present invention only needs to send a data diagnosis instruction to the server through the client, and the client can receive the data directory item information, data session control information and data index sent by the server. Three types of diagnostic information of node information, and generate a diagnostic file based on the diagnostic information, and judge whether the data to be diagnosed is wrong according to the diagnostic file, and there is no need to dynamically run the data to be diagnosed on the client side to carry out the data to be diagnosed in the distributed file system Diagnosis, the diagnosis of data is simpler and more convenient, and the maintenance is less difficult, which improves the efficiency of client data diagnosis.

下面对本发明实施例提供的分布式文件系统数据诊断装置进行介绍,下文描述的分布式文件系统数据诊断装置与上文描述的分布式文件系统数据诊断方法可相互对应参照。The apparatus for diagnosing distributed file system data provided by an embodiment of the present invention is introduced below. The apparatus for diagnosing data in a distributed file system described below and the method for diagnosing data in a distributed file system described above may be referred to in correspondence.

图5为本发明实施例提供的分布式文件系统数据诊断装置的系统框图,参照图5,该分布式文件系统数据诊断装置可以包括:指令发送模块100、数据接收模块200和数据诊断模块300;其中,FIG. 5 is a system block diagram of a distributed file system data diagnosis device provided by an embodiment of the present invention. Referring to FIG. 5 , the distributed file system data diagnosis device may include: an instruction sending module 100, a data receiving module 200, and a data diagnosis module 300; in,

指令发送模块100,用于向服务端发送数据诊断指令;An instruction sending module 100, configured to send a data diagnosis instruction to the server;

数据接收模块200,用于接收所述服务端根据所述数据诊断指令确定待诊断数据,根据所述待诊断数据搜索得到诊断信息后,向所述客户端发送的所述诊断信息,其中,所述诊断信息包括:数据目录项信息、数据会话控制信息和数据索引节点信息;The data receiving module 200 is configured to receive the diagnostic information sent to the client after the server determines the data to be diagnosed according to the data diagnosis instruction, searches the diagnostic information according to the data to be diagnosed, and sends the diagnostic information to the client. The above diagnostic information includes: data directory entry information, data session control information and data index node information;

数据诊断模块300,用于根据所述诊断信息生成包括所述诊断信息的诊断文件,根据所述诊断文件判断所述待诊断数据是否有误。The data diagnosis module 300 is configured to generate a diagnosis file including the diagnosis information according to the diagnosis information, and judge whether the data to be diagnosed is wrong according to the diagnosis file.

可选的,图6示出了本发明实施例提供的分布式文件系统数据诊断装置中数据诊断模块300的结构框图,参照图6,该数据诊断模块300可以包括:第一诊断单元310、第二诊断单元320和第三诊断单元330;其中,Optionally, FIG. 6 shows a structural block diagram of a data diagnosis module 300 in a distributed file system data diagnosis device provided by an embodiment of the present invention. Referring to FIG. 6, the data diagnosis module 300 may include: a first diagnosis unit 310, a second The second diagnostic unit 320 and the third diagnostic unit 330; wherein,

第一诊断单元310,用于根据所述数据目录项信息确定所述待诊断数据的文件名,判断是否所有所述文件名均唯一,若不是,则判定所述待诊断数据有误;The first diagnosis unit 310 is configured to determine the file name of the data to be diagnosed according to the data directory item information, and determine whether all the file names are unique, and if not, determine that the data to be diagnosed is wrong;

第二诊断单元320,用于根据所述数据会话控制信息确定所述待诊断数据是否发生非正常更改,若发生,则判定所述待诊断数据有误;The second diagnosis unit 320 is configured to determine whether the data to be diagnosed is changed abnormally according to the data session control information, and if so, determine that the data to be diagnosed is wrong;

第三诊断单元330,用于根据所述数据所述节点信息确定所述待诊断数据的索引编号,判断是否所有所述索引编号均唯一,若不是,则判定所述待诊断数据有误。The third diagnosis unit 330 is configured to determine the index number of the data to be diagnosed according to the node information of the data, and determine whether all the index numbers are unique, and if not, determine that the data to be diagnosed is wrong.

可选的,图7示出了本发明实施例提供的分布式文件系统数据诊断装置中数据诊断模块300的另一结构框图,参照图7,该数据诊断模块300还可以包括:判断单元340、文件生成单元350和信息写入单元360;其中,Optionally, FIG. 7 shows another structural block diagram of the data diagnosis module 300 in the distributed file system data diagnosis device provided by the embodiment of the present invention. Referring to FIG. 7, the data diagnosis module 300 may further include: a judging unit 340, A file generating unit 350 and an information writing unit 360; wherein,

判断单元340,用于判断是否接收到诊断信息;A judging unit 340, configured to judge whether diagnostic information is received;

文件生成单元350,用于当接收到诊断信息时,生成诊断文件,其中,所述诊断文件为.info格式;A file generating unit 350, configured to generate a diagnostic file when receiving diagnostic information, wherein the diagnostic file is in .info format;

信息写入单元360,用于将接收的所有所述诊断信息均写入所述诊断文件。An information writing unit 360, configured to write all the received diagnostic information into the diagnostic file.

可选的,图8示出了本发明实施例提供的分布式文件系统数据诊断装置的另一系统框图,参照图8,该分布式文件系统数据诊断装置还可以包括:判断模块400。Optionally, FIG. 8 shows another system block diagram of an apparatus for diagnosing distributed file system data provided by an embodiment of the present invention. Referring to FIG. 8 , the apparatus for diagnosing data in distributed file system may further include: a judging module 400 .

判断模块400,用于判断指令发送模块100向服务端发送数据诊断指令后,是否在预定时间内接收到所述服务端发送来的诊断信息;若否,则指令发送模块100再次向所述服务端发送所述数据诊断指令。The judging module 400 is used to judge whether the instruction sending module 100 has received the diagnostic information sent by the server within a predetermined time after the instruction sending module 100 sends the data diagnosis instruction to the server; The terminal sends the data diagnosis command.

本发明实施例提供的分布式文件系统数据诊断装置,只需要通过客户端向服务端发送数据诊断指令,客户端便可接收到服务端发送来的数据目录项信息、数据会话控制信息和数据索引节点信息三类诊断信息,并根据该诊断信息生成诊断文件,根据该诊断文件判断待诊断数据是否有误,在客户端无需再动态运行待诊断数据来对分布式文件系统内该待诊断数据进行诊断,对数据的诊断更为简单便利,维护难度较小,提高了客户端数据诊断的效率。The distributed file system data diagnosis device provided by the embodiment of the present invention only needs to send a data diagnosis instruction to the server through the client, and the client can receive the data directory item information, data session control information and data index sent by the server. Three types of diagnostic information of node information, and generate a diagnostic file based on the diagnostic information, and judge whether the data to be diagnosed is wrong according to the diagnostic file, and there is no need to dynamically run the data to be diagnosed on the client side to carry out the data to be diagnosed in the distributed file system Diagnosis, the diagnosis of data is simpler and more convenient, and the maintenance is less difficult, which improves the efficiency of client data diagnosis.

下面对本发明实施例提供的分布式文件系统数据诊断系统介绍,下文描述的分布式文件系统数据诊断系统包括上文所描述的分布式文件系统数据诊断,可用于实现上文描述的分布式文件系统数据诊断方法。The following is an introduction to the distributed file system data diagnosis system provided by the embodiment of the present invention. The distributed file system data diagnosis system described below includes the above-described distributed file system data diagnosis system, which can be used to implement the above-described distributed file system Data diagnostic methods.

图9为本发明实施例提供的分布式文件系统数据诊断系统的系统框图,参照图9,该分布式文件系统数据诊断系统可以包括:客户端10和服务端20;其中,FIG. 9 is a system block diagram of a distributed file system data diagnosis system provided by an embodiment of the present invention. Referring to FIG. 9, the distributed file system data diagnosis system may include: a client 10 and a server 20; wherein,

客户端10,用于向服务端20发送数据诊断指令;接收服务端20根据所述数据诊断指令确定待诊断数据,根据所述待诊断数据搜索得到诊断信息后,向所述客户端发送的所述诊断信息,其中,所述诊断信息包括:数据目录项信息、数据会话控制信息和数据索引节点信息;根据所述诊断信息生成包括所述诊断信息的诊断文件,根据所述诊断文件判断所述待诊断数据是否有误;The client 10 is configured to send a data diagnosis instruction to the server 20; the receiving server 20 determines the data to be diagnosed according to the data diagnosis instruction, and after searching and obtaining diagnosis information according to the data to be diagnosed, sends the data to the client. The diagnostic information, wherein the diagnostic information includes: data directory item information, data session control information, and data index node information; a diagnostic file including the diagnostic information is generated according to the diagnostic information, and the diagnostic file is used to determine the Whether the data to be diagnosed is wrong;

服务端20,用于接收所述客户端10发送的数据诊断指令,根据所述数据诊断指令确定待诊断数据,根据所述待诊断数据搜索得到诊断信息,将所述诊断信息发送至客户端10。The server 20 is configured to receive the data diagnosis instruction sent by the client 10, determine the data to be diagnosed according to the data diagnosis instruction, search for diagnosis information according to the data to be diagnosed, and send the diagnosis information to the client 10 .

本发明实施例提供的分布式文件系统数据诊断系统,只需要通过客户端向服务端发送数据诊断指令,客户端便可接收到服务端发送来的数据目录项信息、数据会话控制信息和数据索引节点信息三类诊断信息,并根据该诊断信息生成诊断文件,根据该诊断文件判断待诊断数据是否有误,在客户端无需再动态运行待诊断数据来对分布式文件系统内该待诊断数据进行诊断,对数据的诊断更为简单便利,维护难度较小,提高了客户端数据诊断的效率。The distributed file system data diagnosis system provided by the embodiment of the present invention only needs to send data diagnosis instructions to the server through the client, and the client can receive the data directory item information, data session control information and data index sent by the server. Three types of diagnostic information of node information, and generate a diagnostic file based on the diagnostic information, and judge whether the data to be diagnosed is wrong according to the diagnostic file, and there is no need to dynamically run the data to be diagnosed on the client side to carry out the data to be diagnosed in the distributed file system Diagnosis, the diagnosis of data is simpler and more convenient, and the maintenance is less difficult, which improves the efficiency of client data diagnosis.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置和系统而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the devices and systems disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and for relevant details, please refer to the description of the method part.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily 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 invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1.一种分布式文件系统数据诊断方法,其特征在于,包括:1. A method for diagnosing data in a distributed file system, comprising: 客户端向服务端发送数据诊断指令;The client sends data diagnosis instructions to the server; 接收所述服务端根据所述数据诊断指令确定待诊断数据,根据所述待诊断数据搜索得到诊断信息后,向所述客户端发送的所述诊断信息,其中,所述诊断信息包括:数据目录项信息、数据会话控制信息和数据索引节点信息;receiving the diagnostic information sent by the server to the client after determining the data to be diagnosed according to the data diagnosis instruction and searching the diagnostic information according to the data to be diagnosed, wherein the diagnostic information includes: a data directory Item information, data session control information and data inode information; 根据所述诊断信息生成包括所述诊断信息的诊断文件,根据所述诊断文件判断所述待诊断数据是否有误。A diagnosis file including the diagnosis information is generated according to the diagnosis information, and whether the data to be diagnosed is wrong is judged according to the diagnosis file. 2.根据权利要求1所述的分布式文件系统数据诊断方法,其特征在于,所述根据所述诊断文件判断所述待诊断数据是否有误包括:2. The method for diagnosing data in a distributed file system according to claim 1, wherein said judging whether said data to be diagnosed is wrong according to said diagnosis file comprises: 根据所述数据目录项信息确定所述待诊断数据的文件名,判断是否所有所述文件名均唯一,若不是,则判定所述待诊断数据有误;Determine the file name of the data to be diagnosed according to the data directory item information, determine whether all the file names are unique, if not, determine that the data to be diagnosed is wrong; 根据所述数据会话控制信息确定所述待诊断数据是否发生非正常更改,若发生,则判定所述待诊断数据有误;Determine whether the data to be diagnosed is abnormally changed according to the data session control information, and if so, determine that the data to be diagnosed is wrong; 根据所述数据所述节点信息确定所述待诊断数据的索引编号,判断是否所有所述索引编号均唯一,若不是,则判定所述待诊断数据有误。Determine the index number of the data to be diagnosed according to the node information of the data, judge whether all the index numbers are unique, if not, determine that the data to be diagnosed is wrong. 3.根据权利要求1所述的分布式文件系统数据诊断方法,其特征在于,所述根据所述诊断信息生成诊断文件包括:3. The method for diagnosing data in a distributed file system according to claim 1, wherein said generating a diagnostic file according to said diagnostic information comprises: 判断是否接收到诊断信息;judging whether diagnostic information is received; 若是,则生成诊断文件,其中,所述诊断文件为.info格式;If so, generate a diagnostic file, wherein the diagnostic file is in .info format; 将接收的所有所述诊断信息均写入所述诊断文件。All received diagnostic information is written to the diagnostic file. 4.根据权利要求1所述的分布式文件系统数据诊断方法,其特征在于,所述客户端向服务端发送数据诊断指令后还包括:4. The method for diagnosing data in a distributed file system according to claim 1, wherein, after the client sends the data diagnosis instruction to the server, it further includes: 判断是否在预定时间内接收到所述服务端发送来的诊断信息;judging whether the diagnostic information sent by the server is received within a predetermined time; 若否,则再次向所述服务端发送所述数据诊断指令。If not, send the data diagnosis instruction to the server again. 5.根据权利要求1所述的分布式文件系统数据诊断方法,其特征在于,所述根据所述诊断信息生成诊断文件后还包括:通过显示屏对所述诊断文件进行显示。5 . The method for diagnosing data in a distributed file system according to claim 1 , further comprising: displaying the diagnostic file through a display screen after generating the diagnostic file according to the diagnostic information. 6.一种分布式文件系统数据诊断装置,其特征在于,包括:指令发送模块、数据接收模块和数据诊断模块;其中,6. A distributed file system data diagnosis device, characterized in that it comprises: an instruction sending module, a data receiving module and a data diagnosis module; wherein, 所述指令发送模块,用于向服务端发送数据诊断指令;The instruction sending module is used to send a data diagnosis instruction to the server; 所述数据接收模块,用于接收所述服务端根据所述数据诊断指令确定待诊断数据,根据所述待诊断数据搜索得到诊断信息后,向所述客户端发送的所述诊断信息,其中,所述诊断信息包括:数据目录项信息、数据会话控制信息和数据索引节点信息;The data receiving module is configured to receive the diagnosis information sent to the client after the server determines the data to be diagnosed according to the data diagnosis instruction, and searches for the diagnosis information according to the data to be diagnosed, wherein, The diagnostic information includes: data directory entry information, data session control information and data index node information; 所述数据诊断模块,用于根据所述诊断信息生成包括所述诊断信息的诊断文件,根据所述诊断文件判断所述待诊断数据是否有误。The data diagnosis module is configured to generate a diagnosis file including the diagnosis information according to the diagnosis information, and judge whether the data to be diagnosed is wrong according to the diagnosis file. 7.根据权利要求6所述的分布式文件系统数据诊断装置,其特征在于,所述数据诊断模块包括:第一诊断单元、第二诊断单元和第三诊断单元;其中;7. The distributed file system data diagnosis device according to claim 6, wherein the data diagnosis module comprises: a first diagnosis unit, a second diagnosis unit and a third diagnosis unit; wherein; 所述第一诊断单元,用于根据所述数据目录项信息确定所述待诊断数据的文件名,判断是否所有所述文件名均唯一,若不是,则判定所述待诊断数据有误;The first diagnosis unit is configured to determine the file name of the data to be diagnosed according to the data directory item information, and determine whether all the file names are unique, and if not, determine that the data to be diagnosed is wrong; 所述第二诊断单元,用于根据所述数据会话控制信息确定所述待诊断数据是否发生非正常更改,若发生,则判定所述待诊断数据有误;The second diagnosing unit is configured to determine whether the data to be diagnosed is abnormally changed according to the data session control information, and if so, determine that the data to be diagnosed is wrong; 所述第三诊断单元,用于根据所述数据所述节点信息确定所述待诊断数据的索引编号,判断是否所有所述索引编号均唯一,若不是,则判定所述待诊断数据有误。The third diagnosis unit is configured to determine the index numbers of the data to be diagnosed according to the node information of the data, and determine whether all the index numbers are unique, and if not, determine that the data to be diagnosed is incorrect. 8.根据权利要求6所述的分布式文件系统数据诊断装置,其特征在于,所述数据诊断模块还包括:判断单元、文件生成单元和信息写入单元;其中,8. The distributed file system data diagnosis device according to claim 6, wherein the data diagnosis module further comprises: a judging unit, a file generating unit and an information writing unit; wherein, 所述判断单元,用于判断是否接收到诊断信息;The judging unit is configured to judge whether diagnostic information is received; 所述文件生成单元,用于当接收到诊断信息时,生成诊断文件,其中,所述诊断文件为.info格式;The file generating unit is configured to generate a diagnostic file when receiving diagnostic information, wherein the diagnostic file is in .info format; 所述信息写入单元,用于将接收的所有所述诊断信息均写入所述诊断文件。The information writing unit is configured to write all the received diagnostic information into the diagnostic file. 9.根据权利要求6所述的分布式文件系统数据诊断装置,其特征在于,还包括:判断模块,用于判断所述指令发送模块向服务端发送数据诊断指令后,是否在预定时间内接收到所述服务端发送来的诊断信息;若否,则所述指令发送模块再次向所述服务端发送所述数据诊断指令。9. The distributed file system data diagnosis device according to claim 6, further comprising: a judging module for judging whether the instruction sending module receives the data diagnosis instruction within a predetermined time after sending the data diagnosis instruction to the server to the diagnosis information sent by the server; if not, the instruction sending module sends the data diagnosis instruction to the server again. 10.一种分布式文件系统数据诊断系统,其特征在于,包括:客户端和服务端;其中,10. A distributed file system data diagnosis system, characterized in that, comprising: a client and a server; wherein, 所述客户端,用于向所述服务端发送数据诊断指令;接收所述服务端根据所述数据诊断指令确定待诊断数据,根据所述待诊断数据搜索得到诊断信息后,向所述客户端发送的所述诊断信息,其中,所述诊断信息包括:数据目录项信息、数据会话控制信息和数据索引节点信息;根据所述诊断信息生成包括所述诊断信息的诊断文件,根据所述诊断文件判断所述待诊断数据是否有误;The client is configured to send a data diagnosis instruction to the server; after receiving the data to be diagnosed from the server to be determined according to the data diagnosis instruction, and to obtain diagnosis information according to the data to be diagnosed, send the data to the client The diagnostic information sent, wherein the diagnostic information includes: data directory item information, data session control information, and data index node information; generate a diagnostic file including the diagnostic information according to the diagnostic information, and generate a diagnostic file according to the diagnostic file judging whether the data to be diagnosed is wrong; 所述服务端,用于接收所述客户端发送的数据诊断指令,根据所述数据诊断指令确定待诊断数据,根据所述待诊断数据搜索得到诊断信息,将所述诊断信息发送至所述客户端。The server is configured to receive the data diagnosis instruction sent by the client, determine the data to be diagnosed according to the data diagnosis instruction, search for diagnosis information according to the data to be diagnosed, and send the diagnosis information to the client end.
CN201510641019.9A 2015-09-30 2015-09-30 Data diagnosis method, device and system for distributed type file system Pending CN105138706A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510641019.9A CN105138706A (en) 2015-09-30 2015-09-30 Data diagnosis method, device and system for distributed type file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510641019.9A CN105138706A (en) 2015-09-30 2015-09-30 Data diagnosis method, device and system for distributed type file system

Publications (1)

Publication Number Publication Date
CN105138706A true CN105138706A (en) 2015-12-09

Family

ID=54724053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510641019.9A Pending CN105138706A (en) 2015-09-30 2015-09-30 Data diagnosis method, device and system for distributed type file system

Country Status (1)

Country Link
CN (1) CN105138706A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107301131A (en) * 2017-06-30 2017-10-27 郑州云海信息技术有限公司 A kind of distributed storage management software fault diagnosis method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0811939A3 (en) * 1996-06-03 1998-12-30 Webtv Networks, Inc. Method and apparatus for providing proxying and transcoding of documents in a distributed metwork
CN101187930A (en) * 2007-12-04 2008-05-28 浙江大学 Implementation method of distributed file system virtual directory and namespace
CN104077328A (en) * 2013-03-29 2014-10-01 百度在线网络技术(北京)有限公司 Operation diagnosis method and device for MapReduce distributed system
CN104219250A (en) * 2014-09-26 2014-12-17 北京国双科技有限公司 Webpage data acquisition method and apparatus and webpage data transmission method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0811939A3 (en) * 1996-06-03 1998-12-30 Webtv Networks, Inc. Method and apparatus for providing proxying and transcoding of documents in a distributed metwork
CN101187930A (en) * 2007-12-04 2008-05-28 浙江大学 Implementation method of distributed file system virtual directory and namespace
CN104077328A (en) * 2013-03-29 2014-10-01 百度在线网络技术(北京)有限公司 Operation diagnosis method and device for MapReduce distributed system
CN104219250A (en) * 2014-09-26 2014-12-17 北京国双科技有限公司 Webpage data acquisition method and apparatus and webpage data transmission method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107301131A (en) * 2017-06-30 2017-10-27 郑州云海信息技术有限公司 A kind of distributed storage management software fault diagnosis method and system

Similar Documents

Publication Publication Date Title
CN108681565B (en) Block chain data parallel processing method, device, equipment and storage medium
US11269705B2 (en) Method and apparatus for outputting information
US10452469B2 (en) Server performance correction using remote server actions
KR20200002843A (en) Machine-Learning Decision Guidance for Alarms in Monitoring Systems
CN104317618A (en) Firmware partitioning method and device
US20220188214A1 (en) Dynamic distributed tracing instrumentation in a microservice architecture
CN105260082A (en) Display method for test data and development terminal
CN114218072A (en) Test script generation method and device, storage medium and computer equipment
US8667340B2 (en) Method and system for distributed processing of alerts
CN108959101A (en) Test result processing method, device, equipment and memory software testing system
CN106168974B (en) Method and system for processing multi-system screenshot file
CN105574195B (en) Judge whether database answers the method and device of offline recycling
CN103491564B (en) Self-diagnostic method and system of mobile terminal
CN113868058A (en) Method, device and server for fault detection of peripheral component high-speed interconnection equipment
CN105138706A (en) Data diagnosis method, device and system for distributed type file system
CN112817883A (en) Method, device and system for adapting interface platform and computer readable storage medium
CN112818204A (en) Service processing method, device, equipment and storage medium
CN100576182C (en) Real-time monitoring system and method for computer files
US20180321670A2 (en) Mechanical device management system, mechanical device management device, server for managing mechanical device, mechanical device, and mechanical device management method
US20230267478A1 (en) Event attribution for estimating down stream impact
CN117454038A (en) Page detection method and device
CN112085443B (en) A distribution resource detection, task execution method, device and electronic equipment
CN111352742B (en) APP-based componentization information transmission method and apparatus
CN113168357B (en) Collect duplicate diagnostic data from each user participating in a document collaboration session
CN115221060A (en) Case generation method, device and equipment based on associated field and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151209

RJ01 Rejection of invention patent application after publication