-
Notifications
You must be signed in to change notification settings - Fork 70
Tuning Spark Test Performance #989
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 9 commits
0bd331e
92e0e7f
f938f44
487567a
42ca188
bbd5b5f
c4c1ccf
1012ee3
5c29378
102ef7f
94e0be8
0a48faf
9f908de
e4a44a3
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 |
---|---|---|
|
@@ -98,6 +98,19 @@ object SparkSessionBuilder { | |
// use all threads - or the tests will be slow | ||
.master("local[*]") | ||
.config("spark.kryo.registrationRequired", s"${localWarehouseLocation.isEmpty}") | ||
// ── use an in‐memory Derby metastore rather than disk + BoneCP ── | ||
.config("spark.hadoop.javax.jdo.option.ConnectionURL", "jdbc:derby:memory:metastore_db;create=true") | ||
.config("spark.hadoop.javax.jdo.option.ConnectionDriverName", "org.apache.derby.jdbc.EmbeddedDriver") | ||
.config("spark.hadoop.javax.jdo.option.ConnectionUserName", "APP") | ||
.config("spark.hadoop.javax.jdo.option.ConnectionPassword", "APP") | ||
.config("spark.ui.enabled", "false") | ||
.config("spark.chronon.outputParallelismOverride", "2") | ||
.config("spark.chronon.group_by.parallelism", "2") | ||
.config("spark.sql.shuffle.partitions", "2") | ||
.config("spark.default.parallelism", "2") | ||
.config("spark.testing", "true") | ||
.config("spark.ui.enabled", false) | ||
.config("spark.sql.adaptive.enabled", true) | ||
.config("spark.local.dir", s"/tmp/$userName/$name") | ||
.config("spark.sql.warehouse.dir", s"$warehouseDir/data") | ||
.config("spark.hadoop.javax.jdo.option.ConnectionURL", metastoreDb) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does the metastoreDb here need to match the in-memory one above? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or should this be removed, I guess. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 Will change There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @tswitzer-netflix Thanks! |
||
|
@@ -129,6 +142,7 @@ object SparkSessionBuilder { | |
baseBuilder | ||
// use all threads - or the tests will be slow | ||
.master("local[*]") | ||
.config("spark.ui.enabled", "false") | ||
.config("spark.local.dir", s"/tmp/$userName/chronon-spark-streaming") | ||
.config("spark.kryo.registrationRequired", "true") | ||
} else { | ||
|
Uh oh!
There was an error while loading. Please reload this page.