木鸟杂记

大规模数据系统

Hadoop Source Code Reading — DFS (Part 3): FileSystem

FileSystem

FileSystem is an abstract base class that provides some common methods for LocalFileSystem and DistributedFileSystem. It maintains all used file systems via a HashMap: name -> filesystem, whose key is either “Local” or “Host:Port” (identifying a NameNode).
It inherits from the Configured class and can load some basic parameters via configuration, saved in Configuration.
To improve reliability, it generates a checksum for each file and saves it in a hidden file with the extension .*.crc.


我是青藤木鸟,一个喜欢摄影、专注大规模数据系统的程序员,欢迎关注我的公众号:“木鸟杂记”,有更多的分布式系统、存储和数据库相关的文章,欢迎关注。 关注公众号后,回复“资料”可以获取我总结一份分布式数据库学习资料。 回复“优惠券”可以获取我的大规模数据系统付费专栏《系统日知录》的八折优惠券。

我们还有相关的分布式系统和数据库的群,可以添加我的微信号:qtmuniao,我拉你入群。加我时记得备注:“分布式系统群”。 另外,如果你不想加群,还有一个分布式系统和数据库的论坛(点这里),欢迎来玩耍。

wx-distributed-system-s.jpg