title: How can I calculate exact median with Apache Spark?
body: <p>This <a href="https://spark.apache.org/docs/0.7.0/api/core/spark/api/java/JavaDoubleRDD.html" rel="nofollow noreferrer">page</a> contains some statistics functions (mean, stdev, variance, etc.) but it does not contain the median. How can I calculate exact median?</p>