scala - Error java.lang.ClassNotFoundException: com.kafka.spark.kafka-sparkStreaming -
i using hortonworks sandbox.i have installed maven in sandbox , created scala application in that.i following these link, http://www.bigindustries.be/creating-a-data-pipeline-using-flume-kafka-spark-and-hive/ while running command:
./bin/run-example com.kafka.spark.flafkatweet2hive localhost 9999
it throws error:
java.lang.classnotfoundexception: org.apache.spark.examples.com.kafka.spark.flafkatweet2hive @ java.net.urlclassloader.findclass(urlclassloader.java:381) @ java.lang.classloader.loadclass(classloader.java:424) @ java.lang.classloader.loadclass(classloader.java:357) @ java.lang.class.forname0(native method) @ java.lang.class.forname(class.java:348) @ org.apache.spark.util.utils$.classforname(utils.scala:175) @ org.apache.spark.deploy.sparksubmit$.org$apache$spark$deploy$sparksubmit$$runmain(sparksubmit.scala:689) @ org.apache.spark.deploy.sparksubmit$.dorunmain$1(sparksubmit.scala:181) @ org.apache.spark.deploy.sparksubmit$.submit(sparksubmit.scala:206) @ org.apache.spark.deploy.sparksubmit$.main(sparksubmit.scala:121) @ org.apache.spark.deploy.sparksubmit.main(sparksubmit.scala)
in scala application package name com.kafka.spark
,scala application name kafka-sparkstreaming
, scala object flafkatweet2hive
.i not getting how set --class
parameter in these command.
Comments
Post a Comment