Adding Sessionization code in Spark, MR and Hive