Chapter 29: The Small Files Problem¶
Programs of chapter 29 of the book Data Algorithms (O'Reilly, 2015), running on Spark 4.3.0.
Sample input: data/chap29/small_files
Run the commands from the repository folder after building the jar (Running the programs).
MapReduce (Hadoop)¶
chap29.combinesmallfilesbybuckets.WordCountDriverWithConsolidator¶
Source: WordCountDriverWithConsolidator.java
scripts/run_mapreduce.sh org.dataalgorithms.chap29.combinesmallfilesbybuckets.WordCountDriverWithConsolidator data/chap29/small_files /tmp/data-algorithms/chap29.combinesmallfilesbybuckets.WordCountDriverWithConsolidator/output
chap29.combinesmallfilesbybuckets.WordCountDriverWithoutConsolidator¶
Source: WordCountDriverWithoutConsolidator.java
scripts/run_mapreduce.sh org.dataalgorithms.chap29.combinesmallfilesbybuckets.WordCountDriverWithoutConsolidator data/chap29/small_files /tmp/data-algorithms/chap29.combinesmallfilesbybuckets.WordCountDriverWithoutConsolidator/output
chap29.combinesmallfilesbyhadoop.CombineSmallFilesDriver¶
Source: CombineSmallFilesDriver.java
scripts/run_mapreduce.sh org.dataalgorithms.chap29.combinesmallfilesbyhadoop.CombineSmallFilesDriver data/chap29/small_files /tmp/data-algorithms/chap29.combinesmallfilesbyhadoop.CombineSmallFilesDriver/output