I'm using Cassandra 0.6.4 and I'm trying to insert an UUID for a column and I get an exception of: InvalidRequestException(why:UUIDs must be exactly 16 bytes). What is the correct way to insert an UUID? Thanks!
My column family is defined as:
<ColumnFamily CompareWith="TimeUUIDType" Name="Comments"/>
Code Snippet:
try {
ColumnPath colPathname = new ColumnPath(COLUMN_FAMILY);
colPathname.setColumn(colName.getBytes(ENCODING));
client.insert(KEYSPACE, rowKey, colPathname, colValue, System.currentTimeMillis(), ConsistencyLevel.ONE);
} catch (Exception exception) {
..
}
}