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

Get error message during benchmark cassandra v2.1.1 using YCSB 0.1.4 #198

Closed
yeh928 opened this issue Dec 4, 2014 · 5 comments
Closed

Comments

@yeh928
Copy link

yeh928 commented Dec 4, 2014

I want to benchmark cassandra v2.1.1 using YCSB 0.1.4
I try to benchmark cassandra with following command, I got the error as below:

[root@localhost YCSB]# ./bin/ycsb load cassandra-10 -P workloads/workloada -p hosts=192.168.117.121 -p columnfamily=data > tese_ca.txt
Loading workload...
Starting test.
InvalidRequestException(why:Keyspace 'usertable' does not exist)
at org.apache.cassandra.thrift.Cassandra$set_keyspace_result.read(Cassandra.java:4816)
at org.apache.cassandra.thrift.Cassandra$Client.recv_set_keyspace(Cassandra.java:451)
at org.apache.cassandra.thrift.Cassandra$Client.set_keyspace(Cassandra.java:426)
at com.yahoo.ycsb.db.CassandraClient10.insert(CassandraClient10.java:437)
at com.yahoo.ycsb.DBWrapper.insert(DBWrapper.java:148)
at com.yahoo.ycsb.workloads.CoreWorkload.doInsert(CoreWorkload.java:461)
at com.yahoo.ycsb.ClientThread.run(Client.java:277)

Please assist me to solve issue.
Thanks!

@bigbes
Copy link
Collaborator

bigbes commented Dec 4, 2014

InvalidRequestException(why:Keyspace 'usertable' does not exist)

why:Keyspace 'usertable' does not exist

oooook, and so?

For example, in MySQL you would "CREATE TABLE," in Cassandra you would define a keyspace in the Cassandra configuration, and so on.

@yeh928
Copy link
Author

yeh928 commented Dec 4, 2014

Thanks for your reply!

I am already improving this issue after doing following step:
./cassandra-cli -host 192.168.117.121 -port 9160
create Keyspace usertable;
use usertable;
create column family data;

@mukundrv
Copy link

mukundrv commented Jan 2, 2015

Hi,

I used cqlsh to run the below 3 statements.

create Keyspace usertable; --> Executed successfully
use usertable; --> Executed successfully
create column family data; --> Execution failed.

Any idea what this column family or how to run through cqlsh

@busbey
Copy link
Collaborator

busbey commented Jun 6, 2015

Please attempt ot use the new CQL bindings

@busbey
Copy link
Collaborator

busbey commented Aug 4, 2015

We now know the new CQL bindings don't work with 2.1+. If you have time to help troubleshoot, let us know. Otherwise please follow #293 for updates.

@busbey busbey closed this as completed Aug 4, 2015
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

4 participants