- Download Apache Maven from https://maven.apache.org/download.cgi
- Download Apache Spark 3.3.0 from https://spark.apache.org/downloads.html
Untar these downloads and set MAVEN_HOME
and SPARK_HOME
environment variables to point to the
install location.
$MAVEN_HOME/bin/mvn package
$SPARK_HOME/sbin/start-master.sh
$SPARK_HOME/sbin/start-worker.sh spark://ripper:7077
$SPARK_HOME/bin/spark-submit --master spark://ripper:7077 \
--class io.sqlbenchmarks.sqlbench.Main \
--conf spark.driver.memory=8G \
--conf spark.executor.memory=32G \
--conf spark.executor.cores=24 \
--conf spark.cores.max=24 \
target/sqlbench-spark-0.1.0-SNAPSHOT-jar-with-dependencies.jar \
--input-path /mnt/bigdata/tpch/sf10-parquet/ \
--output-path . \
--query-path ~/git/sql-benchmarks/sqlbench-h/queries/sf\=10/ \
--query 1
$SPARK_HOME/bin/spark-submit --master spark://ripper:7077 \
--class io.sqlbenchmarks.sqlbench.Main \
--conf spark.driver.memory=8G \
--conf spark.executor.memory=32G \
--conf spark.executor.cores=24 \
--conf spark.cores.max=24 \
target/sqlbench-spark-0.1.0-SNAPSHOT-jar-with-dependencies.jar \
--input-path /mnt/bigdata/tpch/sf10-parquet/ \
--output-path . \
--query-path ~/git/sql-benchmarks/sqlbench-h/queries/sf\=10/ \
--num-queries 22
Monitor progress via the Spark UI at http://localhost:8080
$SPARK_HOME/sbin/stop-slave.sh
$SPARK_HOME/sbin/stop-master.sh