kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ball, Ronald" <Ronald.B...@travelport.com>
Subject Kafka version 0.7.0 and 7.0.1 failed to build
Date Fri, 17 Aug 2012 22:35:43 GMT
Kafka version 0.7.0 and 7.0.1 failed to build.  All steps thru "update" are successful.  The
"package" step fails with compile errors.  Why?

Quick Start Procedure

·         Download a recent stable release.

·         tar xzf kafka-<VERSION>.tgz

·         cd kafka-<VERSION>

·         ./sbt update

·         ./sbt package


Environment

·         Linux Flavor
$ cat /etc/*-release
Red Hat Enterprise Linux Server release 5.6 (Tikanga)

·         System Information
$ uname -a
Linux LANSOASVR02 2.6.18-238.12.1.el5PAE #1 SMP Sat May 7 20:37:06 EDT 2011 i686 i686 i386
GNU/Linux

·         Java Version
$ java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.8) (rhel-1.22.1.9.8.el5_6-i386)
OpenJDK Client VM (build 19.0-b09, mixed mode)


Kafka version 0.7.1 Errors

·         Complied source version issue

o   /project/build/ KafkaProject.scala appears to need update for project(s)

§  override def javaCompileOptions = super.javaCompileOptions ++

§        List(JavaCompileOption("-source"), JavaCompileOption("1.5"))

·         @SuppressWarnings using non-stardard value "rawtypes" supported by Eclipse Juno
and not by Sun

o   The value "rawtypes" is supported by Eclipse Juno and possibly some earlier versions.

o   It is not supported by Sun

o   The use of "rawtypes" should be changed to "unchecked"

·         I fixed the above issues and still ran into compile errors

[info] == hadoop consumer / compile ==
[info]   Source analysis: 12 new/modified, 0 indirectly invalidated, 0 removed.
[info] Compiling main sources...
[error] ----------
[error] 1. ERROR in /home/c115812/SoftwareApps/kafka/kafka-0.7.1-incubating/contrib/hadoop-consumer/src/main/java
/kafka/etl/KafkaETLContext.java (at line 39)
[error]         @SuppressWarnings({ "deprecation"})
[error]         ^^^^^^^^^^^^^^^^^
[error] Syntax error, annotations are only available if source level is 5.0
[error] ----------
[error] 2. ERROR in /home/c115812/SoftwareApps/kafka/kafka-0.7.1-incubating/contrib/hadoop-consumer/src/main/java
/kafka/etl/KafkaETLContext.java (at line 61)
[error]         protected Iterator<MessageAndOffset> _messageIt = null; /*message iterator*/
[error]                   ^^^^^^^^
[error] The type Iterator is not generic; it cannot be parameterized with arguments <MessageAndOffset>
[error] ----------


[info] == hadoop consumer / compile ==
[info]   Source analysis: 12 new/modified, 0 indirectly invalidated, 0 removed.
[info] Compiling main sources...
[error] ----------
[error] 1. WARNING in /home/c115812/SoftwareApps/kafka/kafka-0.7.1-incubating/contrib/hadoop-consumer/src/main/ja
va/kafka/etl/KafkaETLJob.java (at line 37)
[error]         @SuppressWarnings("rawtypes")
[error]                           ^^^^^^^^^^
[error] Unhandled warning token rawtypes


[info] == hadoop consumer / compile ==
[info]   Source analysis: 12 new/modified, 0 indirectly invalidated, 0 removed.
[info] Compiling main sources...
[error] ----------
[error] 1. ERROR in /home/c115812/SoftwareApps/kafka/kafka-0.7.1-incubating/contrib/hadoop-consumer/src/main/java
/kafka/etl/KafkaETLKey.java (at line 71)
[error]         public void readFields(DataInput in) throws IOException {
[error]                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] The method readFields(DataInput) of type KafkaETLKey must override a superclass method
[error] ----------
[error] 2. ERROR in /home/c115812/SoftwareApps/kafka/kafka-0.7.1-incubating/contrib/hadoop-consumer/src/main/java
/kafka/etl/KafkaETLKey.java (at line 78)
[error]         public void write(DataOutput out) throws IOException {
[error]                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] The method write(DataOutput) of type KafkaETLKey must override a superclass method
[error] ----------
[error] 3. ERROR in /home/c115812/SoftwareApps/kafka/kafka-0.7.1-incubating/contrib/hadoop-consumer/src/main/java
/kafka/etl/KafkaETLKey.java (at line 85)
[error]         public int compareTo(KafkaETLKey o) {
[error]                    ^^^^^^^^^^^^^^^^^^^^^^^^
[error] The method compareTo(KafkaETLKey) of type KafkaETLKey must override a superclass method


Kafka version 0.7.0 Errors

·         Hadoop code/JAR appears old based on one Google hit

o   http://stackoverflow.com/questions/6474252/the-type-mapper-is-not-generic-hadoop-eclipse-pluggin

·         Complied source version issue

o   /project/build/ KafkaProject.scala appears to need update for project(s)

§  override def javaCompileOptions = super.javaCompileOptions ++

§        List(JavaCompileOption("-source"), JavaCompileOption("1.5"))

[info] == hadoop producer / compile ==
[info]   Source analysis: 4 new/modified, 0 indirectly invalidated, 0 removed.
[info] Compiling main sources...
[error] ----------
[error] 1. ERROR in /home/c115812/SoftwareApps/kafka/kafka-0.7.0/kafka-0.7.0-incubating-src/contrib/hadoop-produc
er/src/main/java/kafka/bridge/examples/TextPublisher.java (at line 60)
[error]         public static class TheMapper extends Mapper<Object, Object, NullWritable,
BytesWritable>
[error]                                               ^^^^^^
[error] The type Mapper is not generic; it cannot be parameterized with arguments <Object,
Object, NullWritable,
BytesWritable>
[error] ----------
[error] 2. ERROR in /home/c115812/SoftwareApps/kafka/kafka-0.7.0/kafka-0.7.0-incubating-src/contrib/hadoop-produc
er/src/main/java/kafka/bridge/examples/TextPublisher.java (at line 60)
[error]         public static class TheMapper extends Mapper<Object, Object, NullWritable,
BytesWritable>
[error]                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] Syntax error, parameterized types are only available if source level is 5.0
[error] ----------
[error] 3. ERROR in /home/c115812/SoftwareApps/kafka/kafka-0.7.0/kafka-0.7.0-incubating-src/contrib/hadoop-produc
er/src/main/java/kafka/bridge/examples/TextPublisher.java (at line 62)
[error]         @Override
[error]         ^^^^^^^^^
[error] Syntax error, annotations are only available if source level is 5.0
[error] ----------
[error] 4. ERROR in /home/c115812/SoftwareApps/kafka/kafka-0.7.0/kafka-0.7.0-incubating-src/contrib/hadoop-produc
er/src/main/java/kafka/bridge/examples/TextPublisher.java (at line 63)
[error]         protected void map(Object key, Object value, Context context) throws IOException,
InterruptedException

[error]                                                      ^^^^^^^
[error] Context cannot be resolved to a type
[error] ----------
[error] ----------
[error] 5. ERROR in /home/c115812/SoftwareApps/kafka/kafka-0.7.0/kafka-0.7.0-incubating-src/contrib/hadoop-produc
er/src/main/java/kafka/bridge/hadoop/KafkaOutputFormat.java (at line 34)
[error]         public class KafkaOutputFormat<W extends BytesWritable> extends OutputFormat<NullWritable,
W>
[error]                                        ^^^^^^^^^^^^^^^^^^^^^^^
[error] Syntax error, type parameters are only available if source level is 5.0


Ron Ball

If you are not the intended recipient of this e-mail message, please notify the sender 
and delete all copies immediately. The sender believes this message and any attachments 
were sent free of any virus, worm, Trojan horse, and other forms of malicious code. 
This message and its attachments could have been infected during transmission. The 
recipient opens any attachments at the recipient's own risk, and in so doing, the 
recipient accepts full responsibility for such actions and agrees to take protective 
and remedial action relating to any malicious code. Travelport is not liable for any 
loss or damage arising from this message or its attachments.


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