Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbcompile-cassandra-0.7 errors #60

Closed
mangobatao opened this issue Jan 25, 2012 · 2 comments
Closed

dbcompile-cassandra-0.7 errors #60

mangobatao opened this issue Jan 25, 2012 · 2 comments

Comments

@mangobatao
Copy link

I use the latest version of YCSB to connect to the cassandra (0.7.10) with ant 1.8.2 and jdk 1.6, but get some errors:

dbcompile:
[javac] /home/mangobatao/Downloads/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/mangobatao/Downloads/YCSB/build/classes
[javac] /home/mangobatao/Downloads/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:209: setColumn_names(java.util.List<java.nio.ByteBuffer>) in org.apache.cassandra.thrift.SlicePredicate cannot be applied to (java.util.ArrayList<byte[]>)
[javac] predicate.setColumn_names(fieldlist);
[javac] ^
[javac] /home/mangobatao/Downloads/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/mangobatao/Downloads/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/mangobatao/Downloads/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/mangobatao/Downloads/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/mangobatao/Downloads/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/mangobatao/Downloads/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:310: setColumn_names(java.util.List<java.nio.ByteBuffer>) in org.apache.cassandra.thrift.SlicePredicate cannot be applied to (java.util.ArrayList<byte[]>)
[javac] predicate.setColumn_names(fieldlist);
[javac] ^
[javac] /home/mangobatao/Downloads/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/mangobatao/Downloads/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/mangobatao/Downloads/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/mangobatao/Downloads/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/mangobatao/Downloads/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/mangobatao/Downloads/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:433: batch_mutate(java.util.Map<java.nio.ByteBuffer,java.util.Map<java.lang.String,java.util.List<org.apache.cassandra.thrift.Mutation>>>,org.apache.cassandra.thrift.ConsistencyLevel) in org.apache.cassandra.thrift.Cassandra.Client cannot be applied to (java.util.Map<byte[],java.util.Map<java.lang.String,java.util.List<org.apache.cassandra.thrift.Mutation>>>,org.apache.cassandra.thrift.ConsistencyLevel)
[javac] client.batch_mutate(batch_mutation, ConsistencyLevel.ONE);
[javac] ^
[javac] /home/mangobatao/Downloads/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

I see other people have the same problems, could someone tell me how could I solve this kind of problem?

@ghost
Copy link

ghost commented Jan 25, 2012

Hi mangobatao,

Can you copy and paste the output of "ant -v dbcompile-cassandra-0.7"? I'm suspecting ant might be picking up a wrong version of cassandra jar file.

Thanks!
--Michi

@mangobatao
Copy link
Author

I have just solved this problem as the commit "Updated Cassandra0.7 plugin to use API for 0.7 release: replaced byte[]". Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant