remember
spark-submit --class org.apache.spark.examples.streaming.KafkaReceiverWordCount --master local[*] --name KafkaReceiverWordCount
–packages org.apache.spark:spark-streaming-kafka-0-8_2.11:2.1.0
/home/hadoop/IdeaProjects/example/target/example-1.0.jar localhost:2181 test HelloWorld 1
spark-submit --class org.apache.spark.examples.streaming.KafkaReceiverWordCount
–master local[*]
–name KafkaReceiverWordCount
–packages org.apache.spark:spark-streaming-kafka-0-8_2.11:2.1.0 /home/hadoop/example.jar localhost:2181 test HelloWorld 1
spark-submit --class HelloWorld
–master local[*]
–name KafkaReceiverWordCount
/home/hadoop/js.jar