-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from alexarchambault/develop
Try to run yarn tests using a spark distrib on CI (WIP)
- Loading branch information
Showing
14 changed files
with
199 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
modules/local-spark-distrib-tests/src/test/scala/ammonite/spark/LocalSparkHomeTests.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package ammonite.spark | ||
|
||
object LocalSparkHomeTests extends SparkReplTests( | ||
sys.env("SPARK_VERSION"), | ||
Local.master | ||
) { | ||
override def sparkHomeBased = | ||
true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
modules/yarn-spark-distrib-tests/src/test/scala/ammonite/spark/YarnSparkDistribTests.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package ammonite.spark | ||
|
||
object YarnSparkDistribTests extends SparkReplTests( | ||
sys.env("SPARK_VERSION"), | ||
"yarn", | ||
"spark.executor.instances" -> "1", | ||
"spark.executor.memory" -> "2g", | ||
"spark.yarn.executor.memoryOverhead" -> "1g", | ||
"spark.yarn.am.memory" -> "2g" | ||
) { | ||
|
||
if (!sys.env.contains("SPARK_HOME")) | ||
sys.error("SPARK_HOME not set") | ||
|
||
override def sparkHomeBased = | ||
true | ||
|
||
override def inputUrlOpt = | ||
Some( | ||
sys.env.getOrElse( | ||
"INPUT_TXT_URL", | ||
sys.error("INPUT_TXT_URL not set") | ||
) | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.