I changed it to 1.5.0, and fixed the problem.
Thank you very much.
Also when i add
JavaRDD<Double> pricesRDD = javaFunctions(sc).cassandraTable("mykeyspace", "tablename", mapColumnTo(Double.class)).select("price");
mapColumnTo can not be recognized. The page says that
"The column mapper based row reader takes all the selected columns and maps them to some object with use of a given ColumnMapper
. The corresponding factories can be easily obtained by series of mapRowTo
overloaded methods. "
Best,
yasemin