First, fire up the Spark shell: $ spark-shell --jars /tmp/spark-hive-udf_2.11-0.1.0.jar At the Scala REPL prompt, type :paste, then copy and paste the following code followed by a Ctrl-D. NOTE: The following code assumes Spark 2.x. import java.sql.Timestamp import java.text.Si...