Created
July 1, 2012 20:03
-
-
Save justizin/3029411 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# schema creation for Telephus (Twisted Python Cassandra client) example code | |
# feed into cassandra-cli | |
connect localhost/9160; | |
create keyspace Keyspace1; | |
use Keyspace1; | |
create column family Standard1 with comparator = UTF8Type; | |
update column family Standard1 with column_metadata = [ | |
{column_name: foo, validation_class: UTF8Type}]; | |
create column family Super1 with column_type = 'Super' and comparator = 'UTF8Type' and caching='ALL'; | |
create column family Counter1 with default_validation_class=CounterColumnType and replicate_on_write=true; | |
create column family SuperCounter1 with column_type='Super' and default_validation_class=CounterColumnType and replicate_on_write=true; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment