Skip to content

Commit

Permalink
[SPARK-11062] Thrift server does not support operationLog
Browse files Browse the repository at this point in the history
  • Loading branch information
navis committed Oct 12, 2015
1 parent 595012e commit a56728c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ private[hive] class SparkExecuteStatementOperation(
}
}

override def run(): Unit = {
override def runInternal(): Unit = {
setState(OperationState.PENDING)
setHasResultSet(true) // avoid no resultset for async run

if (!runInBackground) {
runInternal()
execute()
} else {
val sparkServiceUGI = Utils.getUGI()

Expand All @@ -149,7 +149,7 @@ private[hive] class SparkExecuteStatementOperation(
val doAsAction = new PrivilegedExceptionAction[Unit]() {
override def run(): Unit = {
try {
runInternal()
execute()
} catch {
case e: HiveSQLException =>
setOperationException(e)
Expand Down Expand Up @@ -186,7 +186,7 @@ private[hive] class SparkExecuteStatementOperation(
}
}

override def runInternal(): Unit = {
private def execute(): Unit = {
statementId = UUID.randomUUID().toString
logInfo(s"Running query '$statement' with $statementId")
setState(OperationState.RUNNING)
Expand Down

0 comments on commit a56728c

Please sign in to comment.