title: error while connecting cassandra and spark
body: <p>I have installed cassandra 2.1.11, spark 2.0.0.bin hadoop 2.7 and java version 1.8.0_101 on my ubuntu 14.04.
  For the Spark Cassandra Connector, i have installed git</p>
  
  <pre><code>sudo apt-get install git
  git clone https://github.com/datastax/spark-cassandra-connector.git
  </code></pre>
  
  <p>and build it</p>
  
  <pre><code>cd spark-cassandra-connector
  git checkout v1.4.0
  ./sbt/sbt assembly
  </code></pre>
  
  <p>and placed the jar of scala on home directory</p>
  
  <pre><code>cp spark-cassandra-connector/target/scala-2.10/spark-cassandra-connector-assembly-1.4.0-SNAPSHOT.jar ~
  </code></pre>
  
  <p>and used the connector</p>
  
  <pre><code>bin/spark-shell --jars ~/spark-cassandra-connector-assembly-1.4.0-SNAPSHOT.jar
  </code></pre>
  
  <p>and in the scala promt</p>
  
  <pre><code>sc.stop
  import com.datastax.spark.connector._, org.apache.spark.SparkContext, org.apache.spark.SparkContext._, org.apache.spark.SparkConf
  val conf = new SparkConf(true).set("spark.cassandra.connection.host", "localhost")
  val sc = new SparkContext(conf)
  </code></pre>
  
  <p>I have created <strong>test</strong> keyspace and table <strong>my_table</strong> from cqlsh and to test the connection, i have run the following command</p>
  
  <pre><code>eval test_spark_rdd = sc.cassandraTable("test", "my_table")
  </code></pre>
  
  <p>and got the error</p>
  
  <pre><code>error: missing or invalid dependency detected while loading class file 'CassandraConnector.class'.
  Could not access type Logging in package org.apache.spark,
  because it (or its dependencies) are missing. Check your build definition for
  missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)
  A full rebuild may help if 'CassandraConnector.class' was compiled against an incompatible version of org.apache.spark.
  </code></pre>
  
  <p>Is this due to the version mismatch of spark and cassandra?</p>