sirikata/sirikata-cdn — Issue #5: Error setting up Cassandra schema
Author: ewencp
Created: 2012-02-03 19:27:05+00:00
State: open

When doing a fresh install, I run

python sirikata-cdn/manage.py sync_cassandra

to setup the schema and get:

Traceback (most recent call last):
File "sirikata-cdn/manage.py", line 11, in
execute_manager(settings)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "/home/ewencp/sirikata-cdn.git/sirikata-cdn/cassandra_storage/management/commands/sync_cassandra.py", line 32, in handle_noargs
strategy_options=settings.CASSANDRA_STRATEGY_OPTIONS)
TypeError: create_keyspace() got an unexpected keyword argument 'replication_factor'

Looking at pycassa docs, it looks like that should be in an 'strategy_options' parameter, but I don't know pycassa/cassandra well enough to say if that's the right fix & check that it works.