Accepted answer

Is your spark-MQTT jar the same version of your spark? it's possible that different versions cause these problems. I had a similar problem when using spark 1.6 from Cloudera Express. After upgrading it to the same version the problem was solved

Related Query

More Query from same tag