-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-2585] Remove special handling of Hadoop JobConf. #1648
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 all commits
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 |
|---|---|---|
|
|
@@ -20,6 +20,7 @@ package org.apache.spark.sql.hive.execution | |
| import java.io.File | ||
| import java.util.TimeZone | ||
|
|
||
| import org.apache.spark.sql.SQLConf | ||
| import org.scalatest.BeforeAndAfter | ||
|
|
||
| import org.apache.spark.sql.hive.test.TestHive | ||
|
|
@@ -38,6 +39,7 @@ class HiveCompatibilitySuite extends HiveQueryFileTest with BeforeAndAfter { | |
|
|
||
| override def beforeAll() { | ||
| TestHive.cacheTables = true | ||
| TestHive.set(SQLConf.SHUFFLE_PARTITIONS, "2") | ||
|
Contributor
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. Just a note: we need to remove this setting before merging it.
Contributor
Author
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. We should keep it at 2 to speed up tests ...
Contributor
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. This actually speeds up the tests quite a bit, although it might be masking some of the expensive serialization/deserialization issues. |
||
| // Timezone is fixed to America/Los_Angeles for those timezone sensitive tests (timestamp_*) | ||
| originalTimeZone = TimeZone.getDefault | ||
| TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles")) | ||
|
|
||
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.
Is this guaranteed to return a new copy of the conf for every partition or something? Because otherwise I'm not sure I see why we can safely remove the lock.
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.
It is because RDD objects are not reused at all. Each task gets its own deserialized copy of the HadoopRDD and the conf.
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.
It might be worth a comment here then saying that the createJobConf() method really does create a new job conf because [xyz] even though it looks like it's just accessing the broadcast value.