dziegler/alexandra — Issue #3: Do I have to manually create the keyspace in Cassandra?
Author: stodge
Created: 2012-01-24 13:30:04+00:00
State: open

Do I have to manually create the keyspace in Cassandra? Or is it automatically created during the syncdb?

```
File "/usr/lib/python2.7/site-packages/alexandra-0.1-py2.7.egg/alexandra/__init__.py", line 6, in
client = pycassa.connection.Connection(settings.CASSANDRA_KEYSPACE, settings.CASSANDRA_CLUSTER)
File "/usr/lib/python2.7/site-packages/pycassa-1.4.0-py2.7.egg/pycassa/connection.py", line 56, in __init__
self.set_keyspace(keyspace)
File "/usr/lib/python2.7/site-packages/pycassa-1.4.0-py2.7.egg/pycassa/connection.py", line 64, in set_keyspace
super(Connection, self).set_keyspace(keyspace)
File "/usr/lib/python2.7/site-packages/pycassa-1.4.0-py2.7.egg/pycassa/cassandra/c10/Cassandra.py", line 387, in set_keyspace
self.recv_set_keyspace()
File "/usr/lib/python2.7/site-packages/pycassa-1.4.0-py2.7.egg/pycassa/cassandra/c10/Cassandra.py", line 408, in recv_set_keyspace
raise result.ire
pycassa.cassandra.c10.ttypes.InvalidRequestException: InvalidRequestException(why='Keyspace my_keyspace does not exist')
```