插入和更新需要指定行键,而您似乎正在尝试使用列名。插入新的 id、name 对时使用了什么键?
请参阅 [http://cassandra.apache.org/doc/cql3/CQL.html][1] 上的 CQL 文档
<update-stmt> ::= UPDATE <tablename>
( USING <option> ( AND <option> )* )?
SET <assignment> ( ',' <assignment> )*
WHERE <where-clause>
The UPDATE statement writes one or more columns for a given row in a table. The
<where-clause> is used to select the row to update and must include all columns
composing the PRIMARY KEY. Other columns values are specified through <assignment>
after the SET keyword.
您需要查看您的 ColumnFamily 定义并查看您的主键是什么。