cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 刘大伟 <liudawei...@gmail.com>
Subject How can I get a right 16-bytes UUIDs TException: UUIDs must be exactly 16 bytes Error:
Date Mon, 31 May 2010 09:45:36 GMT
When I using Thrift with PHP-api batch_insert , It Throw Exception "
TException: UUIDs must be exactly 16 bytes Error:"

PHP Codes:
    $column_data[0] = new cassandra_Column();
    $column_data[0]->name = 'status_id';
    $column_data[0]->value = '1';
    $column_data[0]->timestamp = time();
    $super_column = new cassandra_SuperColumn();
    $b = new SimpleCassieUuid();
    $super_column->name = $b->__toString();
//15a599c0-6c98-11df-8f93-e9f1c3a0e6e8
    $super_column->columns = $column_data;
    $c_or_sc = new cassandra_ColumnOrSuperColumn();
    $c_or_sc->super_column = $super_column;
    $mutation['StatusRelationships'] = array($c_or_sc);
    $status=$client->batch_insert($keyspace, $keyUserId, $mutation,
$consistency_level);

How can I get a right 16-bytes UUIDs?

15a599c0-6c98-11df-8f93-e9f1c3a0e6e8

Thanks!

-- 
执著而努力着      david.liu

Mime
View raw message