Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/5096#discussion_r27765167
--- Diff: core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala ---
@@ -317,11 +328,32 @@ object SparkSubmit {
}
}
- // In yarn-cluster mode for a python app, add primary resource and
pyFiles to files
- // that can be distributed with the job
- if (args.isPython && isYarnCluster) {
- args.files = mergeFileLists(args.files, args.primaryResource)
- args.files = mergeFileLists(args.files, args.pyFiles)
+ // If we're running a R app, set the main class to our specific R
runner
+ if (args.isR && deployMode == CLIENT) {
+ if (args.primaryResource == SPARKR_SHELL) {
+ args.mainClass = "org.apache.spark.api.r.RBackend"
+ } else {
+ // If a R file is provided, add it to the child arguments and list
of files to deploy.
+ // Usage: PythonAppRunner <main R file> [app arguments]
--- End diff --
forgot to change this?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]