title: How to write structured stream data to Cassandra table using pyspark?
body: <p><strong>This is my terminal command to run strm.py file</strong></p>
  
  <blockquote>
    <p>$SPARK_HOME/bin/spark-submit --master local --driver-memory 4g --num-executors 2 --executor-memory 4g --packages org.apache.spark:spark-sql-kafka-0-10_2.11:2.4.0 org.apache.spark:spark-cassandra-connector_2.11:2.4.0 strm.py</p>
  </blockquote>
  
  <p><strong>Error:</strong></p>
  
  <blockquote>
    <p>Cannot load main class from JAR org.apache.spark:spark-cassandra-connector_2.11:2.4.0 with URI org.apache.spark. Please specify a class through --class.
          at org.apache.spark.deploy.SparkSubmitArguments.error(SparkSubmitArguments.scala:657)
          atorg.apache.spark.deploy.SparkSubmitArguments.loadEnvironmentArguments(SparkSubmitArguments.scala:224)
            at org.apache.spark.deploy.SparkSubmitArguments.(SparkSubmitArguments.scala:116)
            at org.apache.spark.deploy.SparkSubmit$$anon$2$$anon$1.(SparkSubmit.scala:907)
            at org.apache.spark.deploy.SparkSubmit$$anon$2.parseArguments(SparkSubmit.scala:907)
            at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:81)
            at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:920)
            at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:929)
            at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)</p>
  </blockquote>
  
  <p>So can anyone help me out what is the issue with this why it can't loading.</p>