直接 create column family User 新建 User ,
後續用 set User['ehewitt']['fname']='Eben' insert 資料
會出現如下的Exception:
[default@MyKeyspace] set User['ehewitt']['fname']='Eben';
org.apache.cassandra.db.marshal.MarshalException: cannot parse 'fname' as hex by
tes
改用如下語法 create column family 則會成功:
create column family User with comparator=UTF8Type and default_validation_class=UTF8Type and key_validation_class=UTF8Type;