Skip to content

Commit

Permalink
[SPARK-3945]Write properties of hive-site.xml to HiveContext when ini…
Browse files Browse the repository at this point in the history
…tilize session state In SparkSQLEnv.scala
  • Loading branch information
luogankun committed Oct 14, 2014
1 parent 186b497 commit 3679efc
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ private[hive] object SparkSQLEnv extends Logging {
sparkContext.addSparkListener(new StatsReportListener())

hiveContext = new HiveContext(sparkContext) {
@transient override lazy val sessionState = SessionState.get()
@transient override lazy val sessionState = {
val state = SessionState.get()
setConf(state.getConf.getAllProperties)
state
}
@transient override lazy val hiveconf = sessionState.getConf
}
}
Expand Down

0 comments on commit 3679efc

Please sign in to comment.