Processing of Small Files Based on HDFS and Optimization and Improvement of the Performance for Mapreduce Computing Model
- Author
- CaiZuoCheng
- Advisor
- FangZhiYi
- School
- Jilin University
- Major
- Computer System Architecture
- Classification
- TP338.8 Distributed computer
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 402
- Citations
- 4
Abstract
With the rapid development of Internet and the explosive growth of the data, traditionaltechnical architecture has been increasingly unable to meet the needs of the current massivedata. Therefore, research of massive data processing and storage has become upsurge. DongCutting, who learn from Google paper developed a new distributed computingplatform-Hadoop to complete the calculation of index of search engine. Hadoop is designed tohandle the streaming of large files, but Hadoop is used to do a lot of computation in variousfields with the continuous promotion of the Hadoop application, this leads to the requirementsexpanded. And small files processing become a bottleneck of Hadoop now.This paper proposes a new method of dealing with small files in the Hadoop by theresearch of recent solution. The small file is referring to the size of file that is less than thesize of HDFS block (64M). This kind of file has affected the performance and expansibility ofHadoop. For the following reasons:firstly,any form of the block,file or directory is storedas objects in memory, and each object is about to spend150byte. If there are10million smallfiles, the namenode need the2G memory space, if you store up to100million files, thenamenode need20G space. The small file takes up a lot of namenode’s memory space, so thatthe namenode’s memory capacity would severely hinder the expansion and application of thecluster; secondly, the speed of accessing to a large number of small files is far less thanaccessing to a few big files. HDFS was originally develop for stream access to large files, ifaccess to a large number of small files, the access need to constantly jump from one datanodeto another the datanode, it seriously affects the performance; lastly, the speed of dealing withlarge numbers of small files is less than the speed of the equal size of large files, because eachsmall files take up a slot in mapreduce, and starting a task will spend a lot of time, a largenumber of small files will inevitably lead to most of the time spent on the start and release oftask.This paper builds a new top-level file system which named HSF based on HDFS to solvethe storage management of small files. In HSF file system, the files are classified, anddifferent kinds of files take a different solution. The small files which are the same as picturefiles, adopt SequenceFile as a container to merge small files, and building efficient indexmechanism complete random access to original small files, and then the small files problem toHadoop is resolved. In the experiment part of the article, we test the HSF file system by use of different kindsof data and establish different kinds of experimental cases. The experiment of reading smallfiles and the merged file, binary image files and text files separate experiments, and readingefficiency is linear growth for the local file system and HDFS, so it does not affect the normaloperation of system because of the amount of increasing data; we cmpare the the small filesand the merged file with the WordCount MapReduce sample program and using the text file,this experiment fully verify the HSF file system applies to MapReduce computation model; atlast, the experiment of random small file read, it verifies that the file random access of HSF ismore efficient than the har file system.
Table of contents
Summary 4-6
Abstract 6-10
Chapter 1 Introduction 10-16
1.1 Background and Significance 10 - 11
1.2 Research Status 11-14
1.2.1 relational database management system and MapReduce compare 11-12
1.2.2 distributed File System 1.3 to work with the structure of this article 12-14
14-16
1.3.1 This work 14-15
1.3.2 the paper is 15-16
Chapter 2 examines related technologies 16-27
2.1 HADOOP platform introduces 16-24
2.1.1 MapReduce introduced 16 -22
2.1.2 HDFS introduced 22-24
2.2 cloud computing introduce 24-26
2.2.1 concept of cloud computing 25
2.2.2 development Status of cloud computing 25-26
2.3 Summary 26-27
Chapter 3 HDFS -depth analysis of the massive small document solutions analysis 27-42
3.1 entity class 27-32
3.1.1 Storage class correlation analysis 27-29
3.1.2 FSDataset related classes analysis 29-32
3.2 HAR file system analysis 32-39
3.2.1 HadoopArchives class analysis 33-37
3.2.2 HarFileSystem class analysis analysis 37-39
3.3 solutions for small files massive ; nbsp 39-41
3.4 Summary 41-42
Chapter 4 design and HSF achieve 42-55
4.1 HSF 's overall design and functional analysis 42-43
4.1.1 HSF small document solutions 42-43 <br / > 4.1.2 HSF functional analysis 43
4.2 SEQUENCEFILE format Detailed 43-46
4.3 URI and index design 46-49
4.3. 1 HSF 's URI design 46-47
4.3.2 index design 47-49
4.4 process analysis and detailed design 49-53
4.4.1 merge document workflow analysis 49-51
4.4.2 HSF detailed design 51-53
4.5 related to the achievement 53-54
4.6 Summary 54-55
Chapter 5 experiments and data analysis 55-61
5.1 purpose 55
5.2 test environment and data 55-56
5.3 experimental Design and analysis 56-60
5.3.1 to read and write small files analysis 56-57
5.3.2 WordCount Case Study 57-59
5.3.3 analysis of random reads of small files 59-60
5.4 Summary 60-61
Chapter 6 summary and Outlook 61-62
References main job About 62-64
author and master during 64-65
Thanks 65
Related dissertations
- Design and Implementation of Web Data Acquisition System for Wireless City
- Research and Implementation of Cloud Storage Platform Based on Hadoop
- Research and Optimizing of Data Storage under HDFS
- The Research and Improvement for General Distributed File System
- Web Information Crawler of Design and Implementation Based on Computing Cluster
- Research and Design of Distributed Vertical Search Engine Based on Hadoop
- The Research of Distributed Topic Detection Method
- Design and Implemention of High Performance Text Clustering Algorithm Basic on Hadoop
- Application Research of Distributed Query and Optimization Method Based on Metadata
- With the implementation of 3D model management system design based on Hadoop
- Design and Implement of Video Crawler System Based on Hadoop
- Research and Design on Hadoop-based Cloud Storage Platform of New Campus
- Research of Data Storage and Management on Huatu Online Library System Based on HDFS
- MapReduce Performance Research and Optimization Based on Block Aggregation
- Design and Implementation of Data Processing System Based on Taihu Cyanophytes of Internet of Things
- The Research and Performance Optimization of Cloud Transcoding System Based on Hadoop
- The Design and Implementation of Open Report System Based on the Hadoop
- N-gram Language Model Based on Distributed System
- Research of Distributed Text Categorization Based on Hadoop
- Research and implementation of electronic medical record retrieval based on distributed cloud computing