[Solved] Creation of JavaRDD object has failed


You just have to instantiate JavaSparkContext.

SparkConf conf = new SparkConf();
conf.setAppName("YOUR APP");
//other config like conf.setMaster("YOUR MASTER");
JavaSparkContext ctx = new JavaSparkContext(conf);

//and then
JavaRDD<Row> testRDD = ctx.parallelize(list);

1

solved Creation of JavaRDD object has failed