我在 CQLsh -3.0 中创建了一个表并将值插入其中。
create table users (
Id uuid PRIMARY KEY,
Name varchar,
Age int
);
insert into users(Id, Name, Age) values ('001', 'XYZ', '30');
cqlsh:usertable> select * from users;
id | age | name
--------------------------------------+-----+--------
1381b530-1dd2-11b2-0000-242d50cf1ffd | 30 | XYZ
13816710-1dd2-11b2-0000-242d50cf1ffd | 28 | ABC
13818e20-1dd2-11b2-0000-242d50cf1ffd | 30 | PQR
但是,当我尝试从 Cassandra-CLI 界面向该表中插入新行时,它会崩溃:
[default@unknown] use usertable;
Authenticated to keyspace: usertable
[default@usertable]
[default@usertable] set users['005']['name'] = 'MNO';
log4j:WARN No appenders could be found for logger (org.apache.cassandra.config.DatabaseDescriptor).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Cannot locate cassandra.yaml
Fatal configuration error; unable to start server. See log for stacktrace.
有没有其他人观察到类似的行为。?CQLsh 3.0 和 Cassandra-CLI 之间是否存在一些不兼容?此外,我在使用 CQLsh 规范 2.0.0 时看到了类似的结果!
谢谢,VS