title: Why does spark-submit fail with "Failed to load class for data source: org.apache.spark.sql.cassandra" with Cassandra connector in --jars?
body: <p>Spark version: 1.4.1</p>
  
  <p>Cassandra Version: 2.1.8</p>
  
  <p>Datastax Cassandra Connector: 1.4.2-SNAPSHOT.jar</p>
  
  <p>Command I ran</p>
  
  <blockquote>
    <p>./spark-submit --jars /usr/local/src/spark-cassandra-connector/spark-cassandra-connector-java/target/scala-2.10/spark-cassandra-connector-java-assembly-1.4.2-SNAPSHOT.jar --driver-class-path /usr/local/src/spark-cassandra-connector/spark-cassandra-connector-java/target/scala-2.10/spark-cassandra-connector-java-assembly-1.4.2-SNAPSHOT.jar --jars /usr/local/lib/spark-1.4.1/external/kafka/target/scala-2.10/spark-streaming-kafka_2.10-1.4.1.jar --jars /usr/local/lib/spark-1.4.1/external/kafka-assembly/target/scala-2.10/spark-streaming-kafka-assembly_2.10-1.4.1.jar --driver-class-path /usr/local/lib/spark-1.4.1/external/kafka/target/scala-2.10/spark-streaming-kafka_2.10-1.4.1.jar --driver-class-path /usr/local/lib/spark-1.4.1/external/kafka-assembly/target/scala-2.10/spark-streaming-kafka-assembly_2.10-1.4.1.jar --packages org.apache.spark:spark-streaming-kafka_2.10:1.4.1 --executor-memory 6g --executor-cores 6 --master local[4] kafka_streaming.py</p>
  </blockquote>
  
  <p>Below is the error I am getting:</p>
  
  <pre><code>Py4JJavaError: An error occurred while calling o169.save.
  : java.lang.RuntimeException: Failed to load class for data source: org.apache.spark.sql.cassandra
  </code></pre>
  
  <p>Must be doing something silly. Any response will be appreciated.</p>