Skip to content

Commit

Permalink
Fixed SPARK-2814
Browse files Browse the repository at this point in the history
  • Loading branch information
liancheng committed Aug 3, 2014
1 parent 3dc55fd commit c74a3b2
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,12 @@ class HiveContext(sc: SparkContext) extends SQLContext(sc) {
@transient protected[hive] lazy val sessionState = {
val ss = new SessionState(hiveconf)
set(hiveconf.getAllProperties) // Have SQLConf pick up the initial set of HiveConf.

ss.err = new PrintStream(outputBuffer, true, "UTF-8")
ss.out = new PrintStream(outputBuffer, true, "UTF-8")

ss
}

sessionState.err = new PrintStream(outputBuffer, true, "UTF-8")
sessionState.out = new PrintStream(outputBuffer, true, "UTF-8")

override def set(key: String, value: String): Unit = {
super.set(key, value)
runSqlHive(s"SET $key=$value")
Expand Down

0 comments on commit c74a3b2

Please sign in to comment.