Not exactly sure which two lines you are referring to to but...

"Subcolumns sorted by: org.apache.cassandra.db.marshal.LongType" - means the column name on the second level of columns in your Super Column Family will be sorted as Long integers. 

and "A long is exactly 8 bytes:" Looks like an error thrown when the LongType is trying to convert a value toString(), in this case the value is only 4 bytes long. 

Were there any error log messages in the server when you ran this?


On 09 Nov, 2010,at 08:21 AM, Dmitri Smirnov <> wrote:

I have created a CF with the following:

create column family CFam with column_type = 'Super' and comparator =
'LongType' and subcomparator = 'UTF8Type' and comment = 'List of Tests
Super Family' and column_metadata=[{ column_name:cell,
validation_class:IntegerType}, { column_name:'created_by',
validation_class:UTF8Type },{ column_name:'creation_ts',
validation_class : LongType }, { column_name:'enabled', validation_class
: UTF8Type }, { column_name :'subcategory_id', validation_class :
LongType }, { column_name : 'update_ts', validation_class : LongType }]

What is the meaning of 2 lines below:

- Subcolumns sorted by: org.apache.cassandra.db.marshal.LongType

- A long is exactly 8 bytes: 4
> describe keyspace Kspace
Keyspace: Kspace:
Replication Factor: 4
Column Families:
ColumnFamily: CFam (Super)
"List of Tests Super Family"
Columns sorted by:
Subcolumns sorted by: org.apache.cassandra.db.marshal.LongType
Row cache size / save period: 0.0/0
Key cache size / save period: 200000.0/3600
Memtable thresholds: 1.1203125/239/60
GC grace seconds: 864000
Compaction min/max thresholds: 4/32
Column Metadata:
A long is exactly 8 bytes: 4

Dmitri Smirnov
Y!IM: ia_slepukhin