title: How to find max value in pair RDD?
body: <p>I have a spark pair RDD (key, count) as below </p>
  
  <pre><code>Array[(String, Int)] = Array((a,1), (b,2), (c,1), (d,3))
  </code></pre>
  
  <p>How to find the key with highest count using spark scala API?</p>
  
  <p>EDIT: datatype of pair RDD is org.apache.spark.rdd.RDD[(String, Int)]</p>