GitHub user ash211 opened a pull request: https://github.com/apache/spark/pull/17401
[SPARK-18364][YARN] Expose metrics for YarnShuffleService Registers the shuffle server's metrics with the Hadoop Node Manager's DefaultMetricsSystem. ## What changes were proposed in this pull request? Expose the shuffle service metrics not only on the ExternalShuffleService as done in SPARK-16405, but also in the YarnShuffleService. Because the YARN Node Manager operates under ## How was this patch tested? Manual deploy of new yarn-shuffle jar into a Node Manager and verifying that the metrics appear in the Node Manager-standard location. This is JMX with an query endpoint at `/jmx`. Resulting metrics look like this: ``` [user@host ~]$ curl -sk -XGET https://`hostname -f`:8042/jmx | jq . | grep 'shuffleservice' -B 1 -A 18 { "name": "Hadoop:service=NodeManager,name=shuffleservice", "modelerType": "shuffleservice", "tag.Hostname": "<redacted>", "openBlockRequestLatencyMillis_count": 1, "openBlockRequestLatencyMillis_rate15": 0.0011080303990206543, "openBlockRequestLatencyMillis_rate5": 0.0033057092356765017, "openBlockRequestLatencyMillis_rate1": 0.015991117074135343, "openBlockRequestLatencyMillis_rateMean": 0.003843993699021382, "blockTransferRateBytes_count": 118, "blockTransferRateBytes_rate15": 0.1307475870844372, "blockTransferRateBytes_rate5": 0.39007368980982715, "blockTransferRateBytes_rate1": 1.8869518147479705, "blockTransferRateBytes_rateMean": 0.45359183094454836, "registeredExecutorsSize": 2, "registerExecutorRequestLatencyMillis_count": 2, "registerExecutorRequestLatencyMillis_rate15": 0.001697343764758814, "registerExecutorRequestLatencyMillis_rate5": 0.002970701813078509, "registerExecutorRequestLatencyMillis_rate1": 0.0005857750515146702, "registerExecutorRequestLatencyMillis_rateMean": 0.007687995987242345 }, [user@host ~]$ ``` You can merge this pull request into a Git repository by running: $ git pull https://github.com/ash211/spark spark-18364 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/17401.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #17401 ---- commit 4caf4d28819d82240f1d61e11cdabd68fafad14a Author: Andrew Ash <and...@andrewash.com> Date: 2017-03-23T02:59:38Z [SPARK-18364][YARN] Expose metrics for YarnShuffleService Registers the shuffle server's metrics with the Hadoop Node Manager's DefaultMetricsSystem. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org