Research of Small Files Storage Method Based on HDFS

Author
DongQiWen
Advisor
LiuChaoBin
School
Dalian Maritime University
Major
Computer Science and Technology
Classification
TP333 Memory
Degree
Master's thesis
Year
2013
Downloads
135
Citations
0

Request the full text

Abstract

With the continuous development of science and technology, digital information is showing explosive growth, the traditional way has already not be able to meet the demand of storing massive data. So, it becomes an urgent problem to store and process massive data efficiently. At present, many large enterprises use the Hadoop HDFS (Hadoop Distributed File System) to store massive data. HDFS is designed to store large files with good reliability and scalability at the first. But with the development of Internet, people start to apply the HDFS to store small files and the existing shortcomings and deficiencies in it are exposed. The storage of small files has already been a bottleneck and restricted the overall performance of HDFS.This paper mainly studies the problem of small files stored in HDFS. For problem of processing work before small files stored into HDFS and retrieval work after storage, proposed three algorithms. Firstly, we will introduce Small Files Merging Algorithm based on Feature type and Sequence table. This algorithm is based on getting the characteristics of small files and the data types that the characteristics belongs to, merge the small files in the flow-through way, and create an index file based on the file name by NameNode unified management. Secondly, we present DataNode Pre-Allocation Algorithm based on Data Feature. The purpose of the Algorithm is to improve the efficiency ofNameNode and to reduce the entire performance impact of HDFS due to the overloading of NameNode. Thirdly, we propose Small Files Retrieval Algorithm based on Frequency of Access. The algorithm can be achieved to quickly find small files that we need from mass index files. It draws the ideas of virtual storage and page replacement. When users search, the index files are loaded to the virtual memory and replaced according to the index file access frequency.By this way. we can quickly hit the index file we want.We apply three different use cases which are designed by adjusting percent of small files and threshold in algorithms to test the system performance of three algorithms we present above. Experimental results show that the three algorithms can effectively improve the efficiency of HDFS for small files to store and read, and optimize the storage performance of entire HDFS.

Table of contents

Summary 5-6 ABSTRACT 6-10 Chapter 1 Introduction 10-15 1.1 Background and Significance 10 - 11 1.2 Research Status 11-12 1.3 research 12-13 1.4 thesis structure 13-15 2 knowledge chapter describes 15-22 2.1 small files problem 15-16 2.2 data characteristics related definitions 16-17 2.3 Apache Hadoop overall architecture 17-21 2.3.1 Hadoop core components outlined 17-18 2.3.2 Hadoop distributed File System 18-20 2.3.3 Hadoop MapReduce 20-21 2.4 Summary 21-22 Chapter 3 HDFS -depth study 22-37 3.1 HDFS cluster start 22-25 3.1.1 NameNode start 23-24 3.1.2 DataNode startup 24-25 3.2 status Information and heartbeat protocol 25-28 3.2.1 status information 25-27 3.2.2 heartbeat protocol 27-28 33 HDFS read process studies 28-31 3.3.1 HDFS file writing process 28-30 3.3.2 HDFS file reading process 30-31 <br / > 3.4 HDFS to store a copy of the policy 31-36 3.5 Summary design and implementation 36-37 Chapter 4 small file storage method 37-59 4.1 HDFS architecture optimized design 37-39 4.1.1 cluster architecture optimization 37-38 4.1.2 flowchart 38-39 4.2 PreNode functional design 39-47 4.2.1 data quantitative analysis 40-41 4.2.2 feature extraction and data management 41-45 4.2.3 small files into 45-47 4.2.4 log management 47 4.3 feature type sequence based on the table a small file merging algorithm 47 -51 4.3.1 proposed algorithm background 47 4.3.2 related data structures 47-48 algorithm design and implementation 4.3.3 48 -50 4.3.4 algorithm Analysis 50-51 4.4 DataNode feature -based data pre- allocation algorithm 51-54 4.4.1 proposed algorithm background 51 4.4.2 algorithm Design and Implementation 51-54 4.4.3 algorithm Analysis 54 4.5 based on frequency of access of small files retrieval algorithm 54-58 4.5.1 proposed algorithm background 4.5.2 algorithm Design and Implementation 54-55 55-57 4.5.3 algorithm Analysis 57-58 4.6 Summary 58-59 Chapter 5 performance measurement and analysis 59-72 5.1 Hadoop installation and configuration 59-60 nbsp 5.1.1 experimental environment ; 59-60 5.1.2 node configuration 60 5.2 compiler optimization code 60-61 5.3 experimental verification and analysis 61-71 5.3.1 experimental program 61-62 5.3.2 validation and analysis 62-71 5.4 summary 71-72 Chapter 6 summary and Outlook 72-74 6.1 paper summarizes 72 6.2 Next Steps 72-74 References 74-78 Thanks 78

Related dissertations

  1. Processing of Small Files Based on HDFS and Optimization and Improvement of the Performance for Mapreduce Computing Model
    CaiZuoCheng ·Jilin University ·2012 ·Master's thesis
  2. Research and Implementation of Cloud Storage Platform Based on Hadoop
  3. Research on Hadoop/Mapreduce-based Scalable Storage System
  4. Study on Storage Mode for Mass Data Storage
    ZhangXi ·Guangdong University of Technology ·2012 ·Master's thesis
  5. Research on Storage Strategies and Optimization Hadoop Platform
    GaoJiChao ·Beijing Jiaotong University ·2012 ·Master's thesis
  6. The Research of Increase the IO Speed of Small Files in HDFS
  7. The Research and Improvement for General Distributed File System
  8. Case Research on the Production Logistics Management of Dalian PRK Company
    LiuYang ·Dalian University of Technology ·2013 ·Master's thesis
  9. Web Information Crawler of Design and Implementation Based on Computing Cluster
    WangWenSheng ·Harbin Institute of Technology ·2012 ·Master's thesis
  10. The Research of Distributed Search Engine Technology Based on Pagerank Algorithm
    GuoXiaoXi ·Dalian Jiaotong University ·2013 ·Master's thesis
  11. A Research and Implementation with Improved K-Means Clustering Algorithm to Image Retrieval System Based on Hadoop Platform
    LiGuangPu ·Xiamen University ·2014 ·Master's thesis
  12. Research on the Metadata Management of Multi Namenodes Based on HDFS
  13. The Design and Implementation of Telecom Card Management Based on J2EE
    YangHuaiYu ·Dalian University of Technology ·2013 ·Master's thesis
  14. Warehouse Management System
  15. Distributed Web Crawler System Design and Implementation
  16. Extensible Platform Based on WSO2Stratos and Its Enterprise-class Application Development
    DuanZuo ·South China University of Technology ·2013 ·Master's thesis
  17. Design and Implement of Video Crawler System Based on Hadoop
  18. The Design of Storage and Backup Architecture Based on Stress Transfer Mode
  19. The Research on Security Policies of Access Control in HDFS-based Cloud Storage
    HuangWei ·Harbin Institute of Technology ·2013 ·Master's thesis
  20. Research and Design on Hadoop-based Cloud Storage Platform of New Campus
    GengChangXing ·Tianjin University ·2012 ·Master's thesis