Spark Metrics: how to access executor and worker data?

后端 未结 1 691
故里飘歌
故里飘歌 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  --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)
提交回复
热议问题