kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Su She <suhsheka...@gmail.com>
Subject Jar files needed to run in Java environment (without Maven)
Date Mon, 19 Jan 2015 18:03:05 GMT
Hello All,

I posted a question last week (
http://mail-archives.apache.org/mod_mbox/kafka-users/201501.mbox/browser)
but I'm not able to respond to the thread for some reason?

The suggestion on the last post was that I am missing some jar files in my
classpath, but I am using the following jar files:

* kafka_2.10-0.8.2-beta.jar, kafka-clients-0.8.2-beta.jar,
metrics-core-2.2.0.jar, scala-library-2.10.4.jar, slf4j-api-1.5.6.jar,
slf4j-log4j12-1.5.6.jar*

These are the jar files that I used when I ran the Kafka producer using the
Spark submit script which looked like this:

*/opt/cloudera/parcels/CDH-5.2.1-1.cdh5.2.1.p0.12/lib/spark/bin/spark-submit
 --class SimpleApp --local[2]  --jars $(echo
/home/ec2-user/sparkApps/lib/*.jar | tr ' ' ',')
/home/ec2-user/target/simple-project-1.0.jar*

Is there a reason I would need additional jar files now that i'm using the
java -cp -jar command?

Thanks!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message