Skip to main content
QUICK REVIEW

[Paper Review] Optimization and analysis of large scale data sorting algorithm based on Hadoop

Zhuo Wang, Longlong Tian|arXiv (Cornell University)|Jun 1, 2015
Graph Theory and AlgorithmsComputer Science2 references4 citations
TL;DR

This paper proposes a multi-round MapReduce-based sorting algorithm optimized for large-scale data in Hadoop, using random sampling and uniform data distribution across reducers to reduce load imbalance. Experiments show it outperforms native Hadoop shuffle sorting in efficiency and scalability for massive datasets.

ABSTRACT

When dealing with massive data sorting, we usually use Hadoop which is a framework that allows for the distributed processing of large data sets across clusters of computers using simple programming models. A common approach in implement of big data sorting is to use shuffle and sort phase in MapReduce based on Hadoop. However, if we use it directly, the efficiency could be very low and the load imbalance can be a big problem. In this paper we carry out an experimental study of an optimization and analysis of large scale data sorting algorithm based on hadoop. In order to reach optimization, we use more than 2 rounds MapReduce. In the first round, we use a MapReduce to take sample randomly. Then we use another MapReduce to order the data uniformly, according to the results of the first round. If the data is also too big, it will turn back to the first round and keep on. The experiments show that, it is better to use the optimized algorithm than shuffle of MapReduce to sort large scale data.

Motivation & Objective

  • To address the inefficiency and load imbalance in Hadoop's native shuffle-based sorting for large-scale data.
  • To design a scalable, distributed sorting algorithm that minimizes data skew and improves sorting throughput.
  • To evaluate the performance of the proposed algorithm against standard Hadoop MapReduce sorting under varying data sizes.
  • To analyze the impact of sampling and data distribution strategies on sorting efficiency in a cluster environment.

Proposed method

  • The algorithm uses multiple MapReduce rounds: the first round performs random sampling of the dataset to estimate data distribution.
  • A second MapReduce round uses the sample results to define range boundaries for partitioning, enabling more uniform data distribution across reducers.
  • If data remains too large after initial partitioning, the process iteratively repeats the sampling and partitioning steps until data fits within manageable partitions.
  • The method leverages Hadoop's MapReduce model but modifies the partitioning logic to reduce skew and improve load balancing.
  • The approach avoids relying on Hadoop's default hash-based partitioning, which often leads to uneven reducer loads in large-scale sorting.
  • The algorithm is implemented using standard Hadoop APIs with custom partitioning logic based on sampled data statistics.

Experimental results

Research questions

  • RQ1How does multi-round sampling and partitioning improve sorting performance compared to Hadoop's default shuffle in large-scale data processing?
  • RQ2To what extent does the proposed algorithm reduce load imbalance across reducers during large-scale sorting?
  • RQ3What is the performance gain of the optimized algorithm in terms of execution time and resource utilization?
  • RQ4How does the algorithm scale with increasing data volume, and when does iterative sampling become necessary?

Key findings

  • The optimized algorithm significantly reduces load imbalance by using sampled data to guide uniform partitioning across reducers.
  • Performance evaluation shows the proposed method outperforms native Hadoop shuffle sorting in terms of execution time and scalability.
  • The use of multiple MapReduce rounds with iterative sampling enables effective handling of very large datasets that exceed single-round processing capacity.
  • The algorithm achieves better data distribution and higher throughput by replacing default hash partitioning with range-based partitioning informed by sampling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.