Skip to content
Snippets Groups Projects
Commit 65938422 authored by Reynold Xin's avatar Reynold Xin
Browse files

Fixed style issues for [SPARK-6909][SQL] Remove Hive Shim code.

parent 0526fea4
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,9 @@
package org.apache.spark.sql.hive.thriftserver
import scala.collection.mutable
import scala.collection.mutable.ArrayBuffer
import org.apache.commons.logging.LogFactory
import org.apache.hadoop.hive.conf.HiveConf
import org.apache.hadoop.hive.conf.HiveConf.ConfVars
......@@ -32,8 +35,6 @@ import org.apache.spark.sql.hive.thriftserver.ui.ThriftServerTab
import org.apache.spark.util.Utils
import org.apache.spark.{Logging, SparkContext}
import scala.collection.mutable
import scala.collection.mutable.ArrayBuffer
/**
* The main entry point for the Spark SQL port of HiveServer2. Starts up a `SparkSQLContext` and a
......
......@@ -30,6 +30,7 @@ import org.apache.spark.sql.hive.HiveContext
import org.apache.spark.sql.hive.thriftserver.ReflectionUtils._
import org.apache.spark.sql.hive.thriftserver.server.SparkSQLOperationManager
private[hive] class SparkSQLSessionManager(hiveContext: HiveContext)
extends SessionManager
with ReflectedCompositeService {
......@@ -50,12 +51,13 @@ private[hive] class SparkSQLSessionManager(hiveContext: HiveContext)
initCompositeService(hiveConf)
}
override def openSession(protocol: TProtocolVersion,
username: String,
passwd: String,
sessionConf: java.util.Map[String, String],
withImpersonation: Boolean,
delegationToken: String): SessionHandle = {
override def openSession(
protocol: TProtocolVersion,
username: String,
passwd: String,
sessionConf: java.util.Map[String, String],
withImpersonation: Boolean,
delegationToken: String): SessionHandle = {
hiveContext.openSession()
val sessionHandle = super.openSession(
protocol, username, passwd, sessionConf, withImpersonation, delegationToken)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment