[SPARK-35180][BUILD] Allow to build SparkR with SBT#32285
[SPARK-35180][BUILD] Allow to build SparkR with SBT#32285sarutak wants to merge 4 commits intoapache:masterfrom
Conversation
|
cc @srowen and @HyukjinKwon |
dongjoon-hyun
left a comment
There was a problem hiding this comment.
It's great. Could you add the build command into R/README.md along with the existing mvn command, @sarutak ?
|
BTW, I can do the AS-IS master branch, what is the missing before this PR? |
O.K, I'll do it.
|
|
Got it!
|
R/README.md
Outdated
| #### Build Spark | ||
|
|
||
| Build Spark with [Maven](https://spark.apache.org/docs/latest/building-spark.html#buildmvn) and include the `-Psparkr` profile to build the R package. For example to use the default Hadoop versions you can run | ||
| Build Spark with [Maven](https://spark.apache.org/docs/latest/building-spark.html#buildmvn) or [SBT](http://spark.apache.org/docs/latest/building-spark.html#building-with-sbt), and include the `-Psparkr` profile to build the R package. For example to use the default Hadoop versions you can run |
There was a problem hiding this comment.
Ah, I just copied from the URL bar. I'll change it. Thanks.
project/SparkBuild.scala
Outdated
| Process(command.toString).!! | ||
| }, | ||
| (Compile / compile) := { | ||
| buildRPackage.value |
There was a problem hiding this comment.
I think we build SparkR after the compilation of core so the order should probably be switched with the next line.
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Kubernetes integration test unable to build dist. exiting with code: 1 |
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #137771 has finished for PR 32285 at commit
|
|
Test build #137778 has finished for PR 32285 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #137788 has finished for PR 32285 at commit
|
|
retest this please. |
|
Merged to master. |
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #137804 has finished for PR 32285 at commit
|
What changes were proposed in this pull request?
This PR proposes a change that allows us to build SparkR with SBT.
Why are the changes needed?
In the current master, SparkR can be built only with Maven.
It's helpful if we can built it with SBT.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
I confirmed that I can build SparkR on Ubuntu 20.04 with the following command.