kevinweil/elephant-bird — Issue #111: nonothing build broken
Author: tdunning
Created: 2012-01-04 04:26:20+00:00
State: open

When I try [ant nonothing compile] on a machine with thrift 0.6 installed, I get the output below. Clearly there are some protobuf references that have slipped in.

Also, I find it difficult to stomach installing thrift 0.5 but note that if I just don't use the thrift support then commenting out the version check makes everything work for me.

Teds-MacBook-Pro:elephant-bird[master]$ ant nonothing compile
Buildfile: /Users/tdunning/Apache/tmp/elephant-bird/build.xml

init:
[mkdir] Created dir: /Users/tdunning/Apache/tmp/elephant-bird/build
[mkdir] Created dir: /Users/tdunning/Apache/tmp/elephant-bird/build/classes
[mkdir] Created dir: /Users/tdunning/Apache/tmp/elephant-bird/build/test

nonothing:
[echo] building without protobuf and thrift support
[javac] /Users/tdunning/Apache/tmp/elephant-bird/build.xml:103: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 71 source files to /Users/tdunning/Apache/tmp/elephant-bird/build/classes
[javac] /Users/tdunning/Apache/tmp/elephant-bird/src/java/com/twitter/elephantbird/mapreduce/input/MultiInputFormat.java:20: package com.twitter.data.proto.BlockStorage does not exist
[javac] import com.twitter.data.proto.BlockStorage.SerializedBlock;
[javac] ^
[javac] /Users/tdunning/Apache/tmp/elephant-bird/src/java/com/twitter/elephantbird/mapreduce/io/BinaryBlockReader.java:6: package com.twitter.data.proto.BlockStorage does not exist
[javac] import com.twitter.data.proto.BlockStorage.SerializedBlock;
[javac] ^
[javac] /Users/tdunning/Apache/tmp/elephant-bird/src/java/com/twitter/elephantbird/mapreduce/io/BinaryBlockReader.java:27: cannot find symbol
[javac] symbol : class SerializedBlock
[javac] location: class com.twitter.elephantbird.mapreduce.io.BinaryBlockReader
[javac] private SerializedBlock curBlock_;
[javac] ^
[javac] /Users/tdunning/Apache/tmp/elephant-bird/src/java/com/twitter/elephantbird/mapreduce/io/BinaryBlockReader.java:105: cannot find symbol
[javac] symbol : class SerializedBlock
[javac] location: class com.twitter.elephantbird.mapreduce.io.BinaryBlockReader
[javac] public SerializedBlock parseNextBlock() throws IOException {
[javac] ^
[javac] /Users/tdunning/Apache/tmp/elephant-bird/src/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java:14: package com.twitter.data.proto.Misc does not exist
[javac] import com.twitter.data.proto.Misc.CountedMap;
[javac] ^
[javac] /Users/tdunning/Apache/tmp/elephant-bird/src/java/com/twitter/elephantbird/mapreduce/io/BinaryBlockReader.java:123: cannot find symbol
[javac] symbol : class SerializedBlock
[javac] location: class com.twitter.elephantbird.mapreduce.io.BinaryBlockReader
[javac] SerializedBlock block = SerializedBlock.parseFrom(byteArray);
[javac] ^
[javac] /Users/tdunning/Apache/tmp/elephant-bird/src/java/com/twitter/elephantbird/mapreduce/io/BinaryBlockReader.java:123: cannot find symbol
[javac] symbol : variable SerializedBlock
[javac] location: class com.twitter.elephantbird.mapreduce.io.BinaryBlockReader
[javac] SerializedBlock block = SerializedBlock.parseFrom(byteArray);
[javac] ^
[javac] /Users/tdunning/Apache/tmp/elephant-bird/src/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java:119: cannot find symbol
[javac] symbol : variable CountedMap
[javac] location: class com.twitter.elephantbird.pig.util.ProtobufToPig
[javac] fieldDescriptor.getMessageType().getName().equals(CountedMap.getDescriptor().getName())) {
[javac] ^
[javac] /Users/tdunning/Apache/tmp/elephant-bird/src/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java:122: cannot find symbol
[javac] symbol : class CountedMap
[javac] location: class com.twitter.elephantbird.pig.util.ProtobufToPig
[javac] CountedMap cm = (CountedMap) m;
[javac] ^
[javac] /Users/tdunning/Apache/tmp/elephant-bird/src/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java:122: cannot find symbol
[javac] symbol : class CountedMap
[javac] location: class com.twitter.elephantbird.pig.util.ProtobufToPig
[javac] CountedMap cm = (CountedMap) m;
[javac] ^
[javac] /Users/tdunning/Apache/tmp/elephant-bird/src/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java:124: operator + cannot be applied to long,CountedMap.getValue
[javac] map.put(cm.getKey(), (curCount == null ? 0L : curCount) + cm.getValue());
[javac] ^
[javac] /Users/tdunning/Apache/tmp/elephant-bird/src/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java:252: cannot find symbol
[javac] symbol : variable CountedMap
[javac] location: class com.twitter.elephantbird.pig.util.ProtobufToPig
[javac] fieldDescriptor.getMessageType().getName().equals(CountedMap.getDescriptor().getName()) && fieldDescriptor.isRepeated()) {
[javac] ^
[javac] /Users/tdunning/Apache/tmp/elephant-bird/src/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java:414: cannot find symbol
[javac] symbol : variable CountedMap
[javac] location: class com.twitter.elephantbird.pig.util.ProtobufToPig
[javac] fieldDescriptor.getMessageType().getName().equals(CountedMap.getDescriptor().getName()) && fieldDescriptor.isRepeated()) {
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: /Users/tdunning/Apache/tmp/elephant-bird/src/java/com/twitter/elephantbird/util/TypeRef.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 13 errors

BUILD FAILED
/Users/tdunning/Apache/tmp/elephant-bird/build.xml:74: The following error occurred while executing this line:
/Users/tdunning/Apache/tmp/elephant-bird/build.xml:103: Compile failed; see the compiler error output for details.