开发者

Differences between DFSClient and FileSystem in HDFS

开发者 https://www.devze.com 2023-02-03 03:53 出处:网络
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.

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

精彩评论

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