Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    thank you, but using Spark 1.5.2 it doesn't work. Instead you have to do: recordsWrittenCount += taskEnd.taskMetrics.outputMetrics.get.recordsWritten Commented May 29, 2016 at 17:47
  • Like mentioned it is an internal API so there is no guarantee it will be stable. Commented May 29, 2016 at 18:05
  • Wouldn't it be better to use atomic recordsWrittenCount instead of synch block? Commented Jan 16, 2018 at 14:39
  • 2
    is there a way to do the same thing when writing records using: spark.write.avro(...) Commented Jan 7, 2019 at 12:22
  • for me recordsWritten is always 0 in structuredstreaming Commented Feb 14, 2022 at 8:48