开发者

Differences between DFSClient and FileSystem in HDFS

What is the difference between DFSClient Protocol and FileSystem class in Hadoop DFS (HDFS). Both of these classes are used for connecting a remote client to the namenode in HDFS. So, I wanted to know the a开发者_运维知识库dvantages of one over the other and which one is suitable for remote-client connection.


FileSystem is an abstract class for file management. There are multiple implementations of the FileSystem class like FTPFileSystem. Using the FileSystem API, it's easy to swap between different file systems.

DFSClient is a specific client for HDFS and does a lot more than file management like getting the namenode, getting the missing blocks count etc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜