kafka-dev / kafka

A distributed publish/subscribe messaging service
http://sna-projects.com/kafka
Apache License 2.0
549 stars 300 forks source link

Error running compile: Compilation failed #50

Open alajangi opened 9 years ago

alajangi commented 9 years ago

Hi,

I cloned this repo with

git clone git@github.com:kafka-dev/kafka.git kafka

cd kafka

./sbt

project java-examples current Current project is java-examples 0.7 Current Scala version is 2.8.0 Current log level is info Stack traces are enabled when I run run I am seeing this error "/root/kafka/core/src/main/scala/kafka/Kafka.scala:20: value log4j is not a member of package org.apache"

and compilation failed,

I am Installed kafka through clouderamanager, is it makes any problem to run this code ?

Could anybody help me to rid from this ?

Thanks.

kamaldeep-ebay commented 9 years ago

Also getting the same error .. Any ideas how to fix this ?

ericslandry commented 9 years ago

To fix my log4j error, in the sbt console, I ran the following commands:

update

(thank you Neha: https://groups.google.com/d/msg/kafka-dev/0rXuSuddQvE/KtR7w540LZ0J )

I then had another problem with a "file name too long" error. Moving the code out of my home dir and re-executing package-all fixed that

(thank you Aleksey: http://brianoneill.blogspot.ca/2012/10/file-name-too-long-in-scalasbt-on-ubuntu.html )

PS - The file https://raw.githubusercontent.com/kafka-dev/kafka/master/perf/README.md is not properly coded (Markdown) so can lead to confusion when reading the instructions from the web page. Compare to https://github.com/kafka-dev/kafka/blob/master/perf/README.md