title: Unable to find CassandraSQLContext
body: <p>I am using spark 1.6 prebuild with hadoop 2.6
  spark cassandra connector 1.6
  cassandra 2.1.12</p>
  
  <p>I wrote a simple scala program to run simple select count(*) query on cassandra here is my code </p>
  
  <pre><code>import org.apache.spark.{SparkContext, SparkConf} 
  import com.datastax.spark.connector._
  import org.apache.spark.sql.cassandra.CassandraSQLContext
  import org.apache.spark.sql._
  
  
  object Hi {
    def main(args: Array[String])
    {
          val conf = new SparkConf(true).set("spark.cassandra.connection.host", "172.16.4.196")
  
          val sc = new SparkContext("spark://naresh-pc:7077", "test", conf)
      val csc = new CassandraSQLContext(sc)
      val rdd1 = csc.sql("SELECT count(*) from cw.testdata")
  
          println(rdd1.count)
          println(rdd1.first)
    } 
  }
  </code></pre>
  
  <p>it is successfully building with sbt assembly and creating jar 
  when i submit using spark submit 
  it gives the following error </p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/spark/sql/cassandra/CassandraSQLContext
      at Hi$.main(trySpark.scala:15)
      at Hi.main(trySpark.scala)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:731)
      at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:181)
      at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:206)
      at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:121)
      at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
  Caused by: java.lang.ClassNotFoundException: org.apache.spark.sql.cassandra.CassandraSQLContext
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  </code></pre>
  
  <p>Any help on this ?</p>
  
  <p>Moreover when i run with spark-shell it works fine</p>