Scala

high-performance-spark-examples

Examples for High Performance Spark

H

high-performance-spark

Dernière activité 3 mai 2026
high-performance-spark/high-performance-spark-examples

537

étoiles

239

forks

10

issues ouvertes

spark

Ce README est souvent en anglais.

high-performance-spark-examples

Examples for High Performance Spark

We are in the progress of updata this for Spark 4 (some parts depending on external libraries like Iceberg, Comet, etc. are still 3.X) and the 2ed edition of our book!

Building

Most of the examples can be built with sbt, the C and Fortran components depend on gcc, g77, and cmake.

Tests

The full test suite depends on having the C and Fortran components built as well as a local R installation available.

The most "accuate" way of seeing how we run the tests is to look at the .github workflows

History Server

The history server can be a great way to figure out what's going on.

By default the history server writes to /tmp/spark-events so you'll need to create that directory if not setup with

mkdir -p /tmp/spark-events

The scripts for running the examples generally run with the event log enabled.

You can set the SPARK_EVENTLOG=true before running the scala tests and you'll get the history server too!

e.g.

SPARK_EVENTLOG=true sbt test

Some are not the byproduct of tests but instead come from main:

sbt assembly ${SPARK_HOME}/bin/spark-submit --name more --class com.highperformancespark.examples.perf.SimplePerfTest --conf spark.eventLog.enabled=true ./core/target/scala-2.13/core-assembly-0.0.2-SNAPSHOT.jar

If you want to run just a specific test you can run testOnly

Then to view the history server you'll want to launch it using the ${SPARK_HOME}/sbin/start-history-server.sh then you can go to your local history server

Projets similaires

Example code from Learning Spark book

Java
Ddatabricks
3,9 k étoiles2,4 k

Apache Spark - A unified analytics engine for large-scale data processing

Scalabig-datajavajdbc
Aapache
44,1 k étoiles29,4 k

Pyspark RDD, DataFrame and Dataset Examples in Python language

Python
Sspark-examples
1,4 k étoiles984