brianfrankcooper/YCSB — Issue #56: Problem with ant dbcompile-cassandra-0.7
Author: pirz
Created: 2011-12-02 21:33:43+00:00
State: open

Hi,

I am using ant 1.8.0, on an Ubuntu machine, and I am trying to build db layer for Cassandra.
I have used Cassandra releases 0.7.8 and 0.7.6-2 and 0.7.0 but I constantly getting build failures. I have noticed that there was an already closed issue (issue #25) on this problem, which claims that the problems are solved for the versions I am using.

Below you can see the detailed failure message I am getting.
Any help/hint would be great, as I really wanna use YCSB for benchmarking some KVS systems.

dbcompile:
[javac] /home/pouria/KVS/YCSB/build.xml:63: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1 source file to /home/pouria/KVS/YCSB/build/classes
[javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:209: setColumn_names(java.util.List) in org.apache.cassandra.thrift.SlicePredicate cannot be applied to (java.util.ArrayList)
[javac] predicate.setColumn_names(fieldlist);
[javac] ^
[javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:213: get_slice(java.nio.ByteBuffer,org.apache.cassandra.thrift.ColumnParent,org.apache.cassandra.thrift.SlicePredicate,org.apache.cassandra.thrift.ConsistencyLevel) in org.apache.cassandra.thrift.Cassandra.Client cannot be applied to (byte[],org.apache.cassandra.thrift.ColumnParent,org.apache.cassandra.thrift.SlicePredicate,org.apache.cassandra.thrift.ConsistencyLevel)
[javac] List results = client.get_slice(key.getBytes("UTF-8"), parent, predicate,
[javac] ^
[javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:224: cannot find symbol
[javac] symbol : constructor String(java.nio.ByteBuffer)
[javac] location: class java.lang.String
[javac] result.put(new String(column.name), new String(column.value));
[javac] ^
[javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:224: cannot find symbol
[javac] symbol : constructor String(java.nio.ByteBuffer)
[javac] location: class java.lang.String
[javac] result.put(new String(column.name), new String(column.value));
[javac] ^
[javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:228: cannot find symbol
[javac] symbol : constructor String(java.nio.ByteBuffer)
[javac] location: class java.lang.String
[javac] System.out.print("(" + new String(column.name) + "=" + new String(column.value) + ")");
[javac] ^
[javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:228: cannot find symbol
[javac] symbol : constructor String(java.nio.ByteBuffer)
[javac] location: class java.lang.String
[javac] System.out.print("(" + new String(column.name) + "=" + new String(column.value) + ")");
[javac] ^
[javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:310: setColumn_names(java.util.List) in org.apache.cassandra.thrift.SlicePredicate cannot be applied to (java.util.ArrayList)
[javac] predicate.setColumn_names(fieldlist);
[javac] ^
[javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:329: cannot find symbol
[javac] symbol : constructor String(java.nio.ByteBuffer)
[javac] location: class java.lang.String
[javac] tuple.put(new String(column.name), new String(column.value));
[javac] ^
[javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:329: cannot find symbol
[javac] symbol : constructor String(java.nio.ByteBuffer)
[javac] location: class java.lang.String
[javac] tuple.put(new String(column.name), new String(column.value));
[javac] ^
[javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:334: cannot find symbol
[javac] symbol : constructor String(java.nio.ByteBuffer)
[javac] location: class java.lang.String
[javac] .print("(" + new String(column.name) + "=" + new String(column.value) + ")");
[javac] ^
[javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:334: cannot find symbol
[javac] symbol : constructor String(java.nio.ByteBuffer)
[javac] location: class java.lang.String
[javac] .print("(" + new String(column.name) + "=" + new String(column.value) + ")");
[javac] ^
[javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:423: cannot find symbol
[javac] symbol : constructor Column(byte[],byte[],long)
[javac] location: class org.apache.cassandra.thrift.Column
[javac] Column col = new Column(field.getBytes("UTF-8"), val.getBytes("UTF-8"), timestamp);
[javac] ^
[javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:433: batch_mutate(java.util.Map>>,org.apache.cassandra.thrift.ConsistencyLevel) in org.apache.cassandra.thrift.Cassandra.Client cannot be applied to (java.util.Map>>,org.apache.cassandra.thrift.ConsistencyLevel)
[javac] client.batch_mutate(batch_mutation, ConsistencyLevel.ONE);
[javac] ^
[javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:485: remove(java.nio.ByteBuffer,org.apache.cassandra.thrift.ColumnPath,long,org.apache.cassandra.thrift.ConsistencyLevel) in org.apache.cassandra.thrift.Cassandra.Client cannot be applied to (byte[],org.apache.cassandra.thrift.ColumnPath,long,org.apache.cassandra.thrift.ConsistencyLevel)
[javac] client.remove(key.getBytes("UTF-8"), new ColumnPath(column_family), System.currentTimeMillis(),
[javac] ^
[javac] 14 errors

BUILD FAILED