cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dikang Gu <dikan...@gmail.com>
Subject Re: Schema Disagreement
Date Tue, 02 Aug 2011 00:08:50 GMT
I thought the schema disagree problem was already solved in 0.8.1...

On possible solution is to decommission the disagree node and rejoin it.


On Tue, Aug 2, 2011 at 8:01 AM, Yi Yang <yyang@me.com> wrote:

> 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
>



-- 
Dikang Gu

0086 - 18611140205

Mime
View raw message