Created
April 7, 2017 08:42
-
-
Save ebuildy/4fb26a225e5e9109e74c193fe2ea438b to your computer and use it in GitHub Desktop.
Get total memory used by all executors on Apache Spark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sc.getExecutorMemoryStatus.map(a => (a._2._1 - a._2._2)/(1024.0*1024*1024)).sum |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment