This directory provides a simple wrapper library that can be used to submit a Spark Connect Go application to a Spark Cluster.
The wrapper library expects to variable input values:
- The path to the binary file that contains the Spark Connect Go application. This path is specified via the Spark conf property
spark.golang.binary
. - The actual binary has to be submitted as part of the application using the
--files
parameter to thespark-submit
script.
Building the libary can be done using:
sbt package
The run.sh
script is a simple script that can be used to submit a Spark Connect Go application to a Spark Cluster. The script can be called as follows:
export SPARK_HOME=/path/to/spark
./run.sh ../cmd/spark-connect-example-spark-session/spark-connect-example-spark-session
When this is called from the current directory and with the Spark Connect Golang client build, it will submit the example application to the Spark Cluster.
The run.sh
script can be modified according to your needs.