title: running pyspark kafka steam with an error
body: <p>When I tried to run an example code for spark-steaming: "kafka_wordcount.py"
   under the folder: /usr/local/spark/examples/src/main/python/streaming  </p>
  
  <p>The code explicitly describes the instruction to execute the code as: </p>
  
  <p>"  <code>$ bin/spark-submit --jars \
      external/kafka-assembly/target/scala-*/spark-streaming-kafka-assembly-*.jar \
      examples/src/main/python/streaming/kafka_wordcount.py \
      localhost:2181 test</code></p>
  
  <p>test is the topic name. But I cannot find the jar and the path: </p>
  
  <p>" external/kafka-assembly/target/scala-<em>/spark-streaming-kafka-assembly-</em>.jar"</p>
  
  <p>So instead I created a folder "streaming/jar/" and put all jars from the 
   website <a href="http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22spark-streaming-kafka-assembly_2.10%22" rel="nofollow">http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22spark-streaming-kafka-assembly_2.10%22</a> and then when I run </p>
  
  <p>"park-submit --jars ~/stream-example/jars/spark-streaming-kafka-assembly_*.jar kafka_wordcount.py localhost:2181 topic"</p>
  
  <p>which shows</p>
  
  <p>"Error: No main class set in JAR; please specify one with --class
  Run with --help for usage help or --verbose for debug output"</p>
  
  <p>What is wrong with that? Where are jars?</p>
  
  <p>A ton of Thanks!!</p>