Spark Streaming Kafka createDirectStream - Spark UI shows input event size as zero

送分小仙女□ 提交于 2019-12-05 21:20:20

It seems that it is not recorded by the Spark Kafka library code.

Based on the code of Spark 2.3.1

  1. Search Input Size / Records, found it is the value of stageData.inputBytes (StagePage.scala)
  2. Search StageData and inputBytes, found it is the value of metrics.inputMetrics.bytesRead (LiveEntity.scala)
  3. Search bytesRead, found it's set in HadoopRDD.scala, FileScanRDD.scala and ShuffleSuite.scala. But not in any Kafka related files.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!