2

尝试运行 cassandra-cli 时出现以下错误。

manuzhang@manuzhang-U24E:~/git/cassandra-trunk$ bin/cassandra-cli -h localhost -p 9160
Column Family assumptions read from /home/manuzhang/.cassandra-cli/assumptions.json
Connected to: "Test Cluster" on localhost/9160
Welcome to Cassandra CLI version Unknown

Exception in thread "main" java.lang.AssertionError
    at org.apache.cassandra.cli.CliClient.loadHelp(CliClient.java:178)
    at org.apache.cassandra.cli.CliClient.getHelp(CliClient.java:171)
    at org.apache.cassandra.cli.CliClient.printBanner(CliClient.java:197)
    at org.apache.cassandra.cli.CliMain.main(CliMain.java:312)

那条线是:

final InputStream is = CliClient.class.getClassLoader().getResourceAsStream("org/apache/cassandra/cli/CliHelp.yaml");
assert is != null;

该文件实际上位于$CASSANDRA_HOME/src/resources/org/apache/cassandra/cli.

我已经成功运行了几次。

4

1 回答 1

1

好吧,ant build在终端解决了。

我认为这是因为我是从源代码构建的,并且不时修改一些代码。

但是仅仅添加几行注释并不能重现问题。

于 2012-08-08T05:29:07.533 回答