I have just began with Spark Streaming and I am trying to build a sample application that counts words from a Kafka stream. Although it compiles with sbt package
sbt package
meet the same problem, I solved it by build the jar with dependencies.
add the code below to pom.xml
src/main/java src/test/java maven-assembly-plugin jar-with-dependencies make-assembly package single
mvn package submit the "example-jar-with-dependencies.jar"