title: Difference between reduce and reduceByKey in Apache Spark
body: <p>What is the difference between reduce and reduceByKey in Apache Spark in terms of their functionalities?
  Why reduceByKey is a transformation and reduce is an action?</p>