NoSuchElementException when trying to use dataset

2016-11-04 Thread levt
My code throw an exception when I am trying to create new DataSet from within SteamWriter sink Simplified version of the code   val df = sparkSession.readStream     .format("json")     .option("nullValue", " ")     .option("headerFlag", "true")     .option("spark.sql.shuffle.partitions", 1)

java.util.NoSuchElementException when trying to use dataset from worker

2016-11-04 Thread levt
My code throws an exception when I am trying to create new DataSet from within SteamWriter sink Simplified version of the code   val df = sparkSession.readStream     .format("json")     .option("nullValue", " ")     .option("headerFlag", "true")     .option("spark.sql.shuffle.partitions", 1