arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1903.05838cs.DC
收藏

Hadoop Perfect File:一个快速访问容器,用于直接访问磁盘元数据的小文件

Hadoop Perfect File: A fast access container for small files with direct in disc metadata access

Jude Tchaye-Kondi, Yanlong Zhai, Kwei-Jay Lin, Wenjun Tao, Kai Yang

摘要:

存储和处理大量小文件是Hadoop分布式文件系统(HDFS)面临的主要挑战之一。为了提供快速的数据访问,HDFS中的NameNode(NN)在其主存中维护所有文件的元数据。Hadoop在少量大文件的情况下表现良好,这些文件需要NN内存中相对较少的元数据。但对于大量的小文件,Hadoop存在由于这些小文件的巨大元数据大小而导致NN内存过载等问题。本文提出了一种新的归档文件类型--Hadoop Perfect File(HPF),它通过将小文件合并到HDFS上的大文件中来解决HDFS的小文件问题。现有的归档文件提供有限的功能,并且在访问合并文件中的文件时性能较差,这是由于在元数据查找期间必须读取和处理整个索引文件的事实。相比之下,HPF文件可以直接从其索引文件访问特定文件的元数据,而无需完全处理它。HPF索引系统使用两个哈希函数:通过使用动态哈希函数通过索引文件分发文件的元数据,并且对于每个索引文件,我们构建一个保留顺序的完美哈希函数,该函数保留每个文件的元数据在索引文件中的位置。HPF设计将只读取索引文件中包含搜索文件的元数据的部分。HPF文件还支持在创建后追加文件的功能。我们的实验表明,HPF可以比原始HDFS快40%以上的文件访问速度。如果不考虑缓存效应,HPF的文件访问比MapFile快约179%,比HAR文件快11294%。如果我们考虑缓存效果,HPF比MapFile快35%左右,比HAR文件快105%。

英文摘要:

Storing and processing massive small files is one of the major challenges for the Hadoop Distributed File System (HDFS). In order to provide fast data access, the NameNode (NN) in HDFS maintains the metadata of all files in its main-memory. Hadoop performs well with a small number of large files that require relatively little metadata in the NN s memory. But for a large number of small files, Hadoop has problems such as NN memory overload caused by the huge metadata size of these small files. We present a new type of archive file, Hadoop Perfect File (HPF), to solve HDFS s small files problem by merging small files into a large file on HDFS. Existing archive files offer limited functionality and have poor performance when accessing a file in the merged file due to the fact that during metadata lookup it is necessary to read and process the entire index file(s). In contrast, HPF file can directly access the metadata of a particular file from its index file without having to process it entirely. The HPF index system uses two hash functions: file s metadata are distributed through index files by using a dynamic hash function and, for each index file, we build an order preserving perfect hash function that preserves the position of each file s metadata in the index file. The HPF design will only read the part of the index file that contains the metadata of the searched file during its access. HPF file also supports the file appending functionality after its creation. Our experiments show that HPF can be more than 40% faster file s access from the original HDFS. If we don t consider the caching effect, HPF s file access is around 179% faster than MapFile and 11294% faster than HAR file. If we consider caching effect, HPF is around 35% faster than MapFile and 105% faster than HAR file.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑