• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

计算机工程与科学 ›› 2014, Vol. 36 ›› Issue (10): 1860-1865.

• • 上一篇    下一篇

MapReduce中连接负载均衡优化研究

翟红敏,刘国华,赵威,刘源源,翟红坤   

  1. (1.东华大学计算机科学与技术学院,上海 201620;2.国网黑龙江省电力有限公司信息通信公司,黑龙江 哈尔滨 150000)
  • 收稿日期:2014-06-25 修回日期:2014-08-30 出版日期:2014-10-25 发布日期:2014-10-04
  • 基金资助:

    国家自然科学基金资助项目(61070032)

Optimizing load balancing of joins in MapReduce      

ZHAI Hongmin,LIU Guohua,ZHAO Wei,LIU Yuanyuan,ZHAI Hongkun   

  1. (1.School of Computer and Science,Donghua University,Shanghai 201620;
    2.State Grid Corporation of China Heilongjiang Electric Power Company Ltd.,
    Information & Telecommunication Branch,Harbin 150000,China)
  • Received:2014-06-25 Revised:2014-08-30 Online:2014-10-25 Published:2014-10-04

摘要:

数据分析和处理是大规模分布式数据处理应用中的重要任务。由于简单易用和具有灵活性, MapReduce编程模型逐渐成为大规模分布式数据处理系统(如Hadoop系统)的核心模型。由于所处理的数据可能不是均匀分布的,MapReduce编程模型在处理连接操作时,会出现数据倾斜问题。数据倾斜问题严重降低了MapReduce执行连接操作的效率。针对MapReduce中连接操作的数据倾斜问题,分析了造成MapReduce连接性能瓶颈的原因并建立负载均衡代价模型,提出了用范围分割方法控制连接过程中的数据倾斜问题实现负载均衡的策略。实验结果表明,所提方法明显提高了连接的效率。

关键词: MapReduce, 连接, 数据倾斜, 范围分割, 负载均衡

Abstract:

Data analysis and processing is one of the most important tasks in largescale distributed data processing applications.Due to its simplicity and scalability,MapReduce programming model has gradually become the crucial model for largescale distributed data processing systems (eg.Hadoop).Since the data may be uniformly distributed,data skew occurs when MapReduce programming model joins data,thus degrading the join performance severely.To solve data skew,its reason is analyzed,the load balancing cost model is established,and the rangepartitioner algorithm is proposed to control data skew so as to realize load balancing.Experimental results demonstrate that our method can obviously improve the efficiency of joins.

Key words: MapReduce, join, data skew, rangepartitioner, load balancing