Open outoftime opened 11 years ago
I've also encountered this error. Restarting the process fixes it, but a proper fix would be appreciated.
Hi, I am getting error when i do CassandraCQL::Database.new('127.0.0.1:9160', {:keyspace => 'keyspace1'})
CassandraCQL::Error::InvalidRequestException: Keyspace 'keyspace1' does not exist
from /usr/local/share/gems/gems/cassandra-cql-1.2.2/lib/cassandra-cql/database.rb:121:in rescue in execute_cql_query' from /usr/local/share/gems/gems/cassandra-cql-1.2.2/lib/cassandra-cql/database.rb:115:in
execute_cql_query'
from /usr/local/share/gems/gems/cassandra-cql-1.2.2/lib/cassandra-cql/statement.rb:47:in execute' from /usr/local/share/gems/gems/cassandra-cql-1.2.2/lib/cassandra-cql/database.rb:104:in
execute'
from /usr/local/share/gems/gems/cassandra-cql-1.2.2/lib/cassandra-cql/database.rb:63:in block in connect!' from /usr/local/share/gems/gems/thrift_client-0.8.4/lib/thrift_client/abstract_thrift_client.rb:128:in
call'
from /usr/local/share/gems/gems/thrift_client-0.8.4/lib/thrift_client/abstract_thrift_client.rb:128:in block in do_callbacks' from /usr/local/share/gems/gems/thrift_client-0.8.4/lib/thrift_client/abstract_thrift_client.rb:127:in
each'
from /usr/local/share/gems/gems/thrift_client-0.8.4/lib/thrift_client/abstract_thrift_client.rb:127:in do_callbacks' from /usr/local/share/gems/gems/thrift_client-0.8.4/lib/thrift_client/abstract_thrift_client.rb:100:in
connect!'
from /usr/local/share/gems/gems/cassandra-cql-1.2.2/lib/cassandra-cql/database.rb:65:in connect!' from /usr/local/share/gems/gems/cassandra-cql-1.2.2/lib/cassandra-cql/database.rb:38:in
initialize'
Any idea why?
I'm seeing this error, which is a little baffling. The scenario is typically a worker process that has been running for a while without needing to touch the Cassandra connection. Then it finally does try a query to Cassandra, and explodes on this.
Weird that it throws a "no keyspace has been specified" error when the query is specifying a keyspace...
Any ideas? For now I'd be thrilled by a workaround...