Spark+cassandra java.lang.ClassNotFoundException: com.datastax.spark.connector.rdd.CassandraRDD -
i trying read data cassandra 2.0.6 using spark. use datastax drivers.while reading got error " loss due java.lang.classnotfoundexception java.lang.classnotfoundexception: com.datastax.spark.connector.rdd.cassandrardd". included spark-cassandra-connector_2.10 in pom.xml has com.datastax.spark.connector.rdd.cassandrardd class.am missing other settings or environment variables.
you need make sure connector on class-path executor using -cp option or bundled jar in spark context (using sparkconf.addjars() ).
edit modern spark
in spark > 1.x it's recommend use spark-submit command place dependencies on executor classpath. see http://spark.apache.org/docs/latest/submitting-applications.html
Comments
Post a Comment