Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-5783

Include filename, line number in eventlog-parsing error message

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0.0
    • 1.3.2, 1.4.0
    • Spark Core
    • None

    Description

      While investigating why some recent applications were not showing up in my History Server UI, I found error message blocks like this in the history server logs:

      15/02/12 18:51:55 ERROR scheduler.ReplayListenerBus: Exception in parsing Spark event log.
      java.lang.ClassCastException: org.json4s.JsonAST$JNothing$ cannot be cast to org.json4s.JsonAST$JObject
      	at org.apache.spark.util.JsonProtocol$.mapFromJson(JsonProtocol.scala:814)
      	at org.apache.spark.util.JsonProtocol$.executorInfoFromJson(JsonProtocol.scala:805)
      ...
      	at org.apache.spark.deploy.history.FsHistoryProvider$$anon$1.run(FsHistoryProvider.scala:84)
      15/02/12 18:51:55 ERROR scheduler.ReplayListenerBus: Malformed line: {"Event":"SparkListenerExecutorAdded","Timestamp":1422897479154,"Executor ID":"12","Executor Info":{"Host":"demeter-csmaz11-1.demeter.hpc.mssm.edu","Total Cores":4}}
      

      Turns out certain files had some malformed lines due to having been generated by a forked Spark with some WIP event-log functionality.

      It would be nice if the first line specified the file the error was found in, and the last line specified the line number.

      Attachments

        Activity

          People

            rdub Ryan Williams
            rdub Ryan Williams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: