Skip to content

Commit

Permalink
setLogLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
zeotuan committed Sep 23, 2024
1 parent 66d4b25 commit 6471880
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import org.apache.spark.sql.SparkSession
trait SparkSessionTestWrapper {

lazy val spark: SparkSession = {
SparkSession
val session = SparkSession
.builder()
.master("local")
.appName("spark session")
Expand All @@ -14,6 +14,8 @@ trait SparkSessionTestWrapper {
"1"
)
.getOrCreate()
session.sparkContext.setLogLevel("ERROR")
session
}

}

0 comments on commit 6471880

Please sign in to comment.