Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so dont bother with any of their useless mail servers here and just use oauth login instead. Thank the nice Russians for causing that. :)

Paste

Pasted as Plain Text by registered user geekatcmu ( 12 years ago )
cqlsh> DESCRIBE KEYSPACE operations ;

 CREATE KEYSPACE operations WITH replicati
  'class': 'NetworkTopologyStrategy',
  'sjc': '3',
  'ams': '3',
  'lga': '3'
} AND durable_writes = 'false';

USE operations;

CREATE TABLE mutex (
  PRIMARY KEY (())
) WITH COMPACT STORAGE AND
  bloom_filter_fp_chance=0.010000 AND
  caching='KEYS_ONLY' AND
  comment='Poor MUTEX implementation' AND
  dclocal_read_repair_chance=0.000000 AND
   gc_grace_sec AND
  read_repair_chance=0.100000 AND
   replicate_ AND
   populate_io_cache_ AND
   compacti 'SizeTieredCompactionStrategy'} AND
   compressi 'SnappyCompressor'};

Traceback (most recent call last):
  File "/usr/local/bin/cqlsh", line 834, in onecmd
    self.handle_statement(st, statementtext)
  File "/usr/local/bin/cqlsh", line 872, in handle_statement
    return custom_handler(parsed)
  File "/usr/local/bin/cqlsh", line 1349, in do_describe
    self.describe_keyspace(ksname)
  File "/usr/local/bin/cqlsh", line 1248, in describe_keyspace
    self.print_recreate_keyspace(self.get_keyspace(ksname), sys.stdout)
  File "/usr/local/bin/cqlsh", line 1118, in print_recreate_keyspace
    self.print_recreate_columnfamily(ksdef.name, cf, out)
  File "/usr/local/bin/cqlsh", line 1127, in print_recreate_columnfamily
    layout = self.get_columnfamily_layout(ksname, cfname)
  File "/usr/local/bin/cqlsh", line 709, in get_columnfamily_layout
    return cql3handling.CqlTableDef.from_layout(layout, cols)
  File "/usr/local/Cellar/cassandra/2.0.9/bin/../pylib/cqlshlib/cql3handling.py", line 1144, in from_layout
    columns = filter(lambda c: c.name, map(CqlColumnDef.from_layout, coldefs))
  File "/usr/local/Cellar/cassandra/2.0.9/bin/../pylib/cqlshlib/cql3handling.py", line 1088, in from_layout
     c.comp
KeyError: u'type'

The missing table was created with:

CREATE TABLE "repair_status" (
             nodename varchar,
             repair_status varchar,
             PRIMARY KEY (nodename))
           WITH comment='Repair status of each node'

 

Revise this Paste

Parent: 73830
Your Name: Code Language: