Skip to main content
QUICK REVIEW

[Paper Review] Evaluating Hive and Spark SQL with BigBench

Todor Ivanov, Max-Georg Beer|arXiv (Cornell University)|Dec 28, 2015
Cloud Computing and Resource ManagementComputer Science12 references6 citations
TL;DR

This paper evaluates Apache Hive (on MapReduce) and Spark SQL using the BigBench benchmark to compare performance and scalability across varying data sizes. It demonstrates that Spark SQL significantly outperforms Hive on MapReduce for most queries, with median runtime reductions of up to 60%, while also providing detailed setup guides, execution metrics, and resource utilization analysis for reproducible benchmarking.

ABSTRACT

The objective of this work was to utilize BigBench [1] as a Big Data benchmark and evaluate and compare two processing engines: MapReduce [2] and Spark [3]. MapReduce is the established engine for processing data on Hadoop. Spark is a popular alternative engine that promises faster processing times than the established MapReduce engine. BigBench was chosen for this comparison because it is the first end-to-end analytics Big Data benchmark and it is currently under public review as TPCx-BB [4]. One of our goals was to evaluate the benchmark by performing various scalability tests and validate that it is able to stress test the processing engines. First, we analyzed the steps necessary to execute the available MapReduce implementation of BigBench [1] on Spark. Then, all the 30 BigBench queries were executed on MapReduce/Hive with different scale factors in order to see how the performance changes with the increase of the data size. Next, the group of HiveQL queries were executed on Spark SQL and compared with their respective Hive runtimes. This report gives a detailed overview on how to setup an experimental Hadoop cluster and execute BigBench on both Hive and Spark SQL. It provides the absolute times for all experiments preformed for different scale factors as well as query results which can be used to validate correct benchmark execution. Additionally, multiple issues and workarounds were encountered and solved during our work. An evaluation of the resource utilization (CPU, memory, disk and network usage) of a subset of representative BigBench queries is presented to illustrate the behavior of the different query groups on both processing engines. Last but not least it is important to mention that larger parts of this report are taken from the master thesis of Max-Georg Beer, entitled "Evaluation of BigBench on Apache Spark Compared to MapReduce" [5].

Motivation & Objective

  • To evaluate and compare the performance of Hive on MapReduce and Spark SQL using the BigBench benchmark.
  • To validate BigBench as a scalable, end-to-end analytics benchmark for Big Data systems.
  • To analyze resource utilization (CPU, memory, disk, network) across representative queries on both engines.
  • To document practical deployment challenges and workarounds for running BigBench on Hadoop clusters with Hive and Spark SQL.
  • To provide reproducible performance data and absolute runtime measurements for different scale factors.

Proposed method

  • Ported the existing MapReduce implementation of BigBench to run on Spark SQL, ensuring feature and query compatibility.
  • Executed all 30 BigBench queries on Hive (MapReduce) and Spark SQL using multiple scale factors to assess performance scaling.
  • Collected absolute runtime measurements and query results for validation and benchmark reproducibility.
  • Monitored and recorded CPU, memory, disk, and network usage for a subset of representative queries on both engines.
  • Documented technical issues encountered during setup and execution, along with their solutions for deployment reproducibility.
  • Used a standardized Hadoop cluster configuration to ensure consistent and comparable performance measurements.

Experimental results

Research questions

  • RQ1How does Spark SQL performance compare to Hive on MapReduce across the full BigBench query suite?
  • RQ2How do query execution times scale with increasing data size (scale factors) on both Hive and Spark SQL?
  • RQ3What are the differences in resource utilization (CPU, memory, disk, network) between Hive and Spark SQL for various query types?
  • RQ4Can BigBench effectively stress-test and differentiate between the performance characteristics of Hive and Spark SQL?
  • RQ5What practical challenges arise when deploying and running BigBench on Hadoop clusters with Hive and Spark SQL?

Key findings

  • Spark SQL achieved median query runtime reductions of up to 60% compared to Hive on MapReduce across the BigBench benchmark suite.
  • Performance scaling with data size was consistent and predictable across both engines, with query times increasing proportionally to scale factor.
  • Resource utilization patterns differed significantly: Spark SQL showed higher memory and CPU usage but lower I/O and network load compared to Hive on MapReduce.
  • The benchmark successfully stressed both engines, revealing performance bottlenecks and scalability differences across query groups.
  • Several technical issues were encountered during deployment, including UDF compatibility and configuration mismatches, which were resolved and documented for reproducibility.
  • Absolute runtime values and query results are provided for all experiments, enabling validation and replication of the benchmark results.

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.