一种实现文件读取和/或写入的方法以及数据服务器技术

技术编号:6045320 阅读:198 留言:0更新日期:2012-04-11 18:40
本发明专利技术实施例公开了一种实现文件读取和/或写入的方法,包括:第一HDFS客户端接收客户终端发送的文件读取信息和/或文件写入信息,第一HDFS客户端为预设的与客户终端默认对应的HDFS客户端;所述第一HDFS客户端根据所述文件读取信息和/或文件写入信息与名称服务器进行交互,获取所述名称服务器发送的文件节点信息;所述第一HDFS客户端根据所述文件节点信息对应的数据服务器完成文件读取和/或文件写入。本发明专利技术实施例还公开了一种数据服务器。采用本发明专利技术,可更加快捷简单地实现基于HDFS的文件的读取和写入,完成大数据量的存储;并且能方便地运行在各个普通的计算机上,大大地提高了系统的兼容性。

Method for implementing file read and / or write, and data server

The embodiment of the invention discloses a file read and / or write method: first the HDFS client receives the client terminal to read the file information and / or documents written information, the first HDFS client for default and default client terminal corresponding to the HDFS client; the first HDFS client according to the file to read the information and / or written to the file name server information and interactive information file node acquires the name sent by the server; the first HDFS client according to the node information corresponding to the file server to complete the data file read and / or write files. The embodiment of the invention also discloses a data server. The invention can fast and easy implementation of the HDFS file read and write based on the completion of a large amount of data storage; and can easily run in the normal computer, greatly improve the compatibility of the system.

【技术实现步骤摘要】

【技术保护点】
一种实现文件读取和/或写入的方法,其特征在于,包括:第一HDFS客户端接收客户终端发送的文件读取信息和/或文件写入信息,所述第一HDFS客户端为预设的与所述客户终端默认对应的HDFS客户端;所述第一HDFS客户端根据所述文件读取信息和/或文件写入信息与名称服务器进行交互,获取所述名称服务器发送的文件节点信息;所述第一HDFS客户端根据所述文件节点信息对应的数据服务器完成文件读取和/或文件写入。

【技术特征摘要】

【专利技术属性】
技术研发人员:荆宇
申请(专利权)人:宇龙计算机通信科技深圳有限公司
类型:发明
国别省市:94

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1