i am getting an error when i am trying to run a spark application with cassandra.
Exception in thread \"main\" org.apache.spark.SparkException: Only one Spar
One way could be as follows:
SparkConf sparkConf = new SparkConf().setAppName("Example Spark App").setMaster("local[*]"); JavaSparkContext jssc = new JavaSparkContext(sparkConf); JavaStreamingContext jsc = new JavaStreamingContext(jssc, new Duration(1));