-
Notifications
You must be signed in to change notification settings - Fork 29k
[MINOR][SPARKR][DOC] Add a description for running unit tests in Windows #13217
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
Changes from 4 commits
8797ba3
ad68456
acb9363
b62b631
aa2839c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,3 +11,19 @@ include Rtools and R in `PATH`. | |
| directory in Maven in `PATH`. | ||
| 4. Set `MAVEN_OPTS` as described in [Building Spark](http://spark.apache.org/docs/latest/building-spark.html). | ||
| 5. Open a command shell (`cmd`) in the Spark directory and run `mvn -DskipTests -Psparkr package` | ||
|
|
||
| ## Unit tests | ||
|
|
||
| To run existing unit tests in SparkR on Windows, the following setps are required (the steps below suppose you are in Spark root directory) | ||
|
|
||
| 1. Set `HADOOP_HOME`. | ||
| 2. Download `winutils.exe` and locate this in `$HADOOP_HOME/bin`. | ||
|
|
||
| It seems not requiring installing Hadoop but only this `winutils.exe`. It seems not included in Hadoop official binary releases so it should be built from source but it seems it is able to be downloaded from community (e.g. [steveloughran/winutils](https://github.com/steveloughran/winutils)). | ||
|
||
|
|
||
| 3. Run unit-tests for SparkR by running below (you need to install the [testthat](http://cran.r-project.org/web/packages/testthat/index.html) package first): | ||
|
||
|
|
||
| ``` | ||
| R -e "install.packages('testthat', repos='http://cran.us.r-project.org')" | ||
| .\bin\spark-submit2.cmd --conf spark.hadoop.fs.defualt.name="file:///" R\pkg\tests\run-all.R | ||
| ``` | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parenthetical is fine as a sentence by itself. "in the Spark root ..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh. Thanks!