From Hadoop MapReduce and Hive to Spark SQL: The Same Analysis in Three Generations

What did each generation of the Hadoop-era tools change? The same seven analyses - word count, requests per day and top 10 URLs over the NASA web-server logs of 1995, and TPC-H queries Q1, Q6, Q3 and Q12 - were written three times: as hand-written Java MapReduce jobs (generation 1), as HiveQL on Hive 4.2.1 with its MapReduce engine (generation 2) and as Spark SQL 4.3.0 on YARN (generation 3), plus Spark in local mode as an ablation. All of them read the same files in HDFS (Hadoop 3.5.0, single machine, pseudo-distributed) and use the same YARN task slots; every run is one fresh client command, timed from start to exit, and its output is read back from HDFS and compared with DuckDB / plain Python.

NOTE: Public data (NASA web-server logs of 1995, generated TPC-H tables); the same files in HDFS for every engine, the same YARN task slots, one fresh client command per run and every answer compared with an independent reference; a standard laptop (pseudo-distributed Hadoop), not a multi-machine cluster.

Category: Big Data

Big Data Project BD13 from ProTechSC Academy, with graphical abstract, video demonstration and project guidance.