Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #9 from MrPowers/remove-test-sugar
Remove spark-test-sugar dependency
- Loading branch information
Showing
5 changed files
with
33 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Set everything to be logged to the console | ||
log4j.rootCategory=ERROR, console | ||
log4j.appender.console=org.apache.log4j.ConsoleAppender | ||
log4j.appender.console.target=System.err | ||
log4j.appender.console.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n | ||
|
||
# Settings to quiet third party logs that are too verbose | ||
log4j.logger.org.eclipse.jetty=WARN | ||
log4j.logger.org.eclipse.jetty.util.component.AbstractLifeCycle=ERROR | ||
log4j.logger.org.apache.spark.repl.SparkIMain$exprTyper=WARN | ||
log4j.logger.org.apache.spark.repl.SparkILoop$SparkILoopInterpreter=WARN |
11 changes: 11 additions & 0 deletions
11
src/test/scala/com/swoop/spark/SparkSessionTestWrapper.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,11 @@ | ||
package com.swoop.spark | ||
|
||
import org.apache.spark.sql.SparkSession | ||
|
||
trait SparkSessionTestWrapper { | ||
|
||
lazy val spark: SparkSession = { | ||
SparkSession.builder().master("local[2]").appName("spark-records").config("spark.sql.shuffle.partitions", "4").getOrCreate() | ||
} | ||
|
||
} |
8 changes: 4 additions & 4 deletions
8
src/test/scala/com/swoop/spark/accumulators/ByKeyAdditiveAccumulatorTest.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
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