grundprinzip opened a new pull request, #98:
URL: https://github.com/apache/spark-connect-go/pull/98

   ### What changes were proposed in this pull request?
   This patch adds an example runner script and wrapping Java application to 
submit an application written and compiled using Spark Connect Go to a Spark 
cluster using Spark Connect.
   
   The easiest way to test this approach is as follows:
   
   ```bash
   export SPARK_HOME=<path_to_spark>
   cd java
   sbt package
   ./run.sh 
../cmd/spark-connect-example-spark-session/spark-connect-example-spark-session
   ```
   
   This `run.sh` wrapper script is primarily meant for illustrative purposes 
and can be extended to work with any Spark distribution. Under the hood it 
essentially calls `spark-submit` as follows.
   
   ```
   $SPARK_HOME/bin/spark-submit \
     --master local[4] \
     --files $BINARY_PATH \
     --conf spark.golang.binary=$BINARY_NAME \
     --class org.apache.spark.golang.Runner \
     --packages org.apache.spark:spark-connect_$SCALA_VERSION:$SPARK_VERSION \
     
target/scala-$SCALA_VERSION/sparkconnectgorunner_$SCALA_VERSION-0.1.0-SNAPSHOT.jar
   ```
   
   ### Why are the changes needed?
   Compatibility.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Manual testing


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to