ulysses-you commented on a change in pull request #814:
URL: https://github.com/apache/incubator-kyuubi/pull/814#discussion_r671966277



##########
File path: 
externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/spark/kyuubi/SparkSQLEngineListener.scala
##########
@@ -63,8 +66,19 @@ class SparkSQLEngineListener(server: Serverable) extends 
SparkListener with Logg
     }
   }
 
+  override def onJobStart(jobStart: SparkListenerJobStart): Unit = {
+    val statementId = jobStart.properties.getProperty(KYUUBI_STATEMENT_ID_KEY)
+    val kyuubiJobInfo = KyuubiJobInfo(
+      jobStart.jobId, statementId, jobStart.stageIds, jobStart.time)
+    KyuubiStatementMonitor.putJobInfoIntoMap(kyuubiJobInfo)
+    info(s"Add jobStartInfo. Query [$statementId]: Job ${jobStart.jobId} 
started with " +
+      s"${jobStart.stageIds.length} stages")
+  }
+
   override def onJobEnd(jobEnd: SparkListenerJobEnd): Unit = {
-   jobEnd.jobResult match {
+    KyuubiStatementMonitor.insertEndTimeAndJobResult(jobEnd)
+    info(s"Job end. Job ${jobEnd.jobId} state is ${jobEnd.jobResult.toString}")

Review comment:
       debug is enough
   
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to