Skip to content

[Documentation] Deploy Worker and Udf Binaries #329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Nov 19, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update format
  • Loading branch information
elvaliuliuliu authored Nov 14, 2019
commit 17360bd6f027465e50c03fb46074a8c558b7a19a
10 changes: 9 additions & 1 deletion docs/deploy-worker-udf-binaries.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,13 @@ Once the Spark application is [bundled](https://spark.apache.org/docs/latest/sub

**Answer:** To launch the spark application on YARN, the environment variables should be specified as `spark.yarn.appMasterEnv.[EnvironmentVariableName]`. Please see below as an example using `spark-submit`:
```shell
spark-submit --class org.apache.spark.deploy.dotnet.DotnetRunner --master yarn --deploy-mode cluster --conf spark.yarn.appMasterEnv.DOTNET_WORKER_DIR=.\worker\Microsoft.Spark.Worker-0.6.0 --conf spark.yarn.appMasterEnv.DOTNET_ASSEMBLY_SEARCH_PATHS=.\udfs\mySparkApp --archives hdfs://<path to your files>/Microsoft.Spark.Worker.net461.win-x64-0.6.0.zip#worker,hdfs://<path to your files>/mySparkApp.zip#udfs hdfs://<path to jar file>/microsoft-spark-2.4.x-0.6.0.jar hdfs://<path to your files>/mySparkApp.zip mySparkApp
spark-submit \
--class org.apache.spark.deploy.dotnet.DotnetRunner \
--master yarn \
--deploy-mode cluster \
--conf spark.yarn.appMasterEnv.DOTNET_WORKER_DIR=.\worker\Microsoft.Spark.Worker-0.6.0 \
--conf spark.yarn.appMasterEnv.DOTNET_ASSEMBLY_SEARCH_PATHS=.\udfs\mySparkApp \
--archives hdfs://<path to your files>/Microsoft.Spark.Worker.net461.win-x64-0.6.0.zip#worker,hdfs://<path to your files>/mySparkApp.zip#udfs \
hdfs://<path to jar file>/microsoft-spark-2.4.x-0.6.0.jar \
hdfs://<path to your files>/mySparkApp.zip mySparkApp
```