Menu

MapReduce, Hive and Spark SQL on the same 7 jobs: Spark won by 1.5x, but 58% of its time was start-up
📰

MapReduce, Hive and Spark SQL on the same 7 jobs: Spark won by 1.5x, but 58% of its time was start-up

DEV Community: sql·ProTechSC Academy·about 6 hours ago
#LG5tixO2
#devtosql#devto#dev#spark#mapreduce
Long article (630 words) — no AI summary yet.
Reading 0:00
15s threshold

How much did each generation of the Hadoop-era tools actually change? We wrote the same seven analyses three times and ran them on the same files:

Generation 1: hand-written Java MapReduce jobs

Generation 2: HiveQL on Hive 4.2.1 with its MapReduce engine

Generation 3: Spark SQL 4.3.0 on YARN

plus Spark in local mode as an ablation.

The setup

Data: NASA web-server logs of 1995 and generated TPC-H tables, at two sizes: sf1 (1.34 GB) and sf3 (4.06 GB).

Jobs: word count, requests per day and top 10 URLs over the logs; TPC-H Q1, Q6, Q3 and Q12 .

Same everything: the same files in HDFS (Hadoop 3.5.0, single machine, pseudo-distributed), the same YARN task slots, one fresh client command per run, timed from start to exit.

Answer check: every run's output was read back from HDFS and compared with DuckDB (TPC-H) or a plain Python pass (logs).

This is a standard laptop, not a multi-machine cluster.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.