【发布时间】:2012-09-18 02:00:18
【问题描述】:
我在 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
【问题讨论】:
-
你运行的是什么版本的 Cassandra?
-
我正在运行 Apache Cassandra 1.1.3。
-
我最近从 1.1.5 升级到 1.1.6,现在 cli 一直崩溃。 1.1.5 cli 对我的 1.1.6 系统运行良好。
-
“查看堆栈跟踪日志。”...堆栈跟踪说?