Spark Metrics: how to access executor and worker data?

后端 未结 1 694
故里飘歌
故里飘歌 2021-02-09 13:07

Note: I am using Spark on YARN

I have been trying out the Metric System implemented in Spark. I enabled the ConsoleSink and the CsvSink, and enabled JvmSource f

相关标签:
1条回答
  • 2021-02-09 14:11

    Since you have not given the command you tried, I am assuming that you are not passing metrics.properties. To pass the metrics.propertis the command should be

    spark-submit <other parameters> --files metrics.properties 
    --conf spark.metrics.conf=metrics.properties
    

    Note metrics.properties has to be specified in --files & --conf, the --files will transfer the metrics.properties file to the executors. Since you can see the output on driver and not on executors I think you are missing the --files option.

    0 讨论(0)
提交回复
热议问题