Github user pwendell commented on a diff in the pull request:

    https://github.com/apache/spark/pull/204#discussion_r11470537
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/EventLoggingListener.scala ---
    @@ -90,9 +97,115 @@ private[spark] class EventLoggingListener(appName: 
String, conf: SparkConf)
         logEvent(event, flushLogger = true)
       override def onUnpersistRDD(event: SparkListenerUnpersistRDD) =
         logEvent(event, flushLogger = true)
    +  override def onApplicationStart(event: SparkListenerApplicationStart) =
    +    logEvent(event, flushLogger = true)
    +  override def onApplicationEnd(event: SparkListenerApplicationEnd) =
    +    logEvent(event, flushLogger = true)
    +
    +  /**
    +   * Stop logging events.
    +   * In addition, create an empty special file to indicate application 
completion.
    +   */
    +  def stop() = {
    +    logger.newFile(APPLICATION_COMPLETE)
    +    logger.stop()
    +  }
    +}
    +
    +private[spark] object EventLoggingListener extends Logging {
    +  val LOG_PREFIX = "EVENT_LOG_"
    +  val SPARK_VERSION_PREFIX = "SPARK_VERSION_"
    +  val COMPRESSION_CODEC_PREFIX = "COMPRESSION_CODEC_"
    +  val APPLICATION_COMPLETE = "APPLICATION_COMPLETE"
    --- End diff --
    
    I meant it might be nice if we had a different file name that users could 
set if they manually create the file. I guess we can always infer failure by 
just lacking an end event, so maybe that's not necessary.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to