Designing fast and scalable algorithm for mining frequent itemsets is always being a most eminent and promising problem of data mining. Apriori is one of the most broadly used and popular algorithm of frequent itemset mining. Designing efficient algorithms on MapReduce framework to process and analyze big datasets is contemporary research nowadays. In this paper, we have focused on the performance of MapReduce based Apriori on homogeneous as well as on heterogeneous Hadoop cluster. We have investigated a number of factors that significantly affects the execution time of MapReduce based Apriori running on homogeneous and heterogeneous Hadoop Cluster. Factors are specific to both algorithmic and non-algorithmic improvements. Considered factors specific to algorithmic improvements are filtered transactions and data structures. Experimental results show that how an appropriate data structure and filtered transactions technique drastically reduce the execution time. The non-algorithmic factors include speculative execution, nodes with poor performance, data locality & distribution of data blocks, and parallelism control with input split size. We have applied strategies against these factors and fine tuned the relevant parameters in our particular application. Experimental results show that if cluster specific parameters are taken care of then there is a significant reduction in execution time. Also we have discussed the issues regarding MapReduce implementation of Apriori which may significantly influence the performance.
A Data Structure Perspective to the RDD-based Apriori Algorithm on Spark
近年来,许多研究者提出了许多高效、可扩展的大数据频繁项集挖掘算法。首先,提出了Hadoop集群上基于MapReduce的频繁项集挖掘算法。虽然Hadoop已经被开发成一个处理大数据的集群计算系统,但是由于其高I/O以及在磁盘上写入和读取中间结果,Hadoop的性能并不能满足数据采掘迭代算法的期望。因此,Spark被开发为另一种集群计算基础设施,由于其内存计算,它比Hadoop快得多。它非常适合迭代算法,并支持数据的批处理,交互式,迭代和流处理。许多频繁项集挖掘算法在Spark上被重新设计,其中大部分都是基于Apriori的。所有这些基于Spark的Apriori算法都使用Hash Tree作为底层数据结构。本文研究了基于Spark的Apriori的各种数据结构的效率。虽然,以前已经从数据结构的角度进行了研究,但是对于基于MapReduce的Apriori,必须在Spark的分布式计算环境下进行重新研究。所考虑的底层数据结构是哈希树、Trie和哈希表Trie。在基准数据集上的实验结果表明,在Spark的分布式计算环境下,基于Spark的Apriori with Trie和哈希表Trie的性能几乎相当,但都比Hash Tree高出许多倍。
Performance Evaluation of Query Plan Recommendation with Apache Hadoop and Apache Spark
Islamic Azad University(伊斯兰阿扎德大学);Mobile Telecommunication Company of Iran(伊朗移动电信公司);Iran University of Medical Sciences(伊朗医科大学);University of Human Development(人类发展大学);Gachon University(加川大学);Technische Universität Dresden(德累斯顿工业大学)
关于n-gram的统计(即,文本文档或其它字符串数据中的连续单词或其它标记的序列)是信息检索和自然语言处理中的重要构件。在这项工作中,我们研究了如何利用MapReduce进行分布式数据处理来有效地计算n-gram统计数据,这些统计数据可选地受到最大n-gram长度和最小收集频率的限制。我们描述了不同的算法,从单词计数的扩展,通过基于Apriori原理的方法,到一种依赖于排序和聚合后缀的新方法Suffix-σ。我们研究我们的方法可能的扩展,以支持最大性/封闭性的概念,并执行聚合发生计数之外。假设Hadoop作为一个具体的MapReduce实现,我们提供了一个有效的方法实现的见解。在《纽约时报》注释语料库(The New York Times Annotated Corpus)和Cocktail Web 09上进行的大量实验揭示了这些方法的相对优势和利弊。