title: spark cassandra connector for standalone python or scala script
body: <p>I am very new to Cassandra and Spark. Following are the things I have done so far:
  1) Installed Cassandra 2.1.8 version added lucene secondary indexes. Added test data.
  2) Have pre built Spark 1.4.1
  3) I have the Spark Cassandra connector Jars.</p>
  
  <p>I am able to use ./spark-shell --jars /pathy/to/spark-cassandra-connector/spark-cassandra-connector-assembly-1.5.0-M1-SNAPSHOT.jar and</p>
  
  <p>./pyspark --jars /path/to/pyspark_cassandra-0.1.5.jar --driver-class-path /path/to/pyspark_cassandra-0.1.5.jar --py-files /path/to/pyspark_cassandra-0.1.5-py2.6.egg</p>
  
  <p>Using both, I am able to query the cassandra table.</p>
  
  <p>My requirement is as follows -</p>
  
  <p>We have an application on a remote server in Php. This application, with some filters will request for data from the spark cassandra layer.</p>
  
  <ol>
  <li>What is the best way to serve this request?</li>
  <li>Which is the preferred language, Python or Scala?</li>
  <li>With REST API which scala framework is recommended?</li>
  </ol>
  
  <p>Currently I am just trying out a simple Python script over cgi-bin. The problem is, how do I add connector --jars in the Python script?</p>
  
  <p>I have tried conf.set("spark.jars","/jar/path") which does not work.</p>
  
  <p>Any help would be highly appreciated.</p>
  
  <p>Thanks in Advance</p>