incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yi Yang <yy...@me.com>
Subject Schema Disagreement
Date Tue, 02 Aug 2011 00:01:43 GMT
Dear all,

I'm always meeting mp with schema disagree problems while trying to create a column family
like this, using cassandra-cli:

create column family sd
    with column_type = 'Super' 
    and key_validation_class = 'UUIDType'
    and comparator = 'LongType'
    and subcomparator = 'UTF8Type'
    and column_metadata = [
        {
        column_name: 'time', 
        validation_class : 'LongType'
        },{
        column_name: 'open', 
        validation_class : 'FloatType'
        },{
        column_name: 'high', 
        validation_class : 'FloatType'
        },{
        column_name: 'low', 
        validation_class : 'FloatType'
        },{
        column_name: 'close', 
        validation_class : 'FloatType'
        },{
        column_name: 'volumn', 
        validation_class : 'LongType'
        },{
        column_name: 'splitopen', 
        validation_class : 'FloatType'
        },{
        column_name: 'splithigh', 
        validation_class : 'FloatType'
        },{
        column_name: 'splitlow', 
        validation_class : 'FloatType'
        },{
        column_name: 'splitclose', 
        validation_class : 'FloatType'
        },{
        column_name: 'splitvolume',
        validation_class : 'LongType'
        },{
        column_name: 'splitclose',
        validation_class : 'FloatType'
        }
    ]
;

I've tried to erase everything and restart Cassandra but this still happens.   But when I
clear the column_metadata section this no more disagreement error.   Do you have any idea
why this happens?

Environment: 2 VMs, using the same harddrive, Cassandra 0.8.1, Ubuntu 10.04
This is for testing only.   We'll move to dedicated servers later.

Best regards,
Yi

Mime
View raw message