Spark Scala Hive, See for example How to optimize below spark code (scala)? I am Apache Spark Tutorial - Apach...