Made all CDAP examples to be compatible with Spark 2.
Fix https://github.com/caskdata/cdap/pull/10538