建设cassandra测试用例失败

时间:2015-05-03 20:56:35

标签: ant build cassandra

我正在尝试从源代码构建cassandra二进制文件,当我尝试编译单元测试用例时,其中一些会给我错误。我使用2.0.142.1.4以及2.1.5尝试了ubuntu 14.04Java 7Java 8版本。这是构建测试用例后得到的消息:

BUILD FAILED
/opt/cassandra/build.xml:1139: Some test bucket 0 test(s) failed.
Total time: 17 minutes 13 seconds
Buildfile: `/opt/cassandra/build.xml`

我做错了吗?这就是我试图建立的方式:

  • ant build
  • ant build-test
  • ant test
  • ant artifacts

1 个答案:

答案 0 :(得分:3)

[junit] Testsuite: org.apache.cassandra.utils.BitSetTest
[junit] Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.075 sec
[junit]
[junit] Testcase: compareBitSets(org.apache.cassandra.utils.BitSetTest):    Caused an ERROR
[junit] java.io.FileNotFoundException: /usr/share/dict/words (No such file or directory)
[junit] java.lang.RuntimeException: java.io.FileNotFoundException: /usr/share/dict/words (No such file or directory)
[junit]     at org.apache.cassandra.utils.KeyGenerator$WordGenerator.reset(KeyGenerator.java:137)
[junit]     at org.apache.cassandra.utils.KeyGenerator$WordGenerator.<init>(KeyGenerator.java:126)
[junit]     at org.apache.cassandra.utils.BitSetTest.compareBitSets(BitSetTest.java:50)
[junit] Caused by: java.io.FileNotFoundException: /usr/share/dict/words (No such file or directory)
[junit]     at java.io.FileInputStream.open(Native Method)
[junit]     at java.io.FileInputStream.<init>(FileInputStream.java:146)
[junit]     at java.io.FileInputStream.<init>(FileInputStream.java:101)
[junit]     at org.apache.cassandra.utils.KeyGenerator$WordGenerator.reset(KeyGenerator.java:135)
[junit]
[junit]
[junit] Test org.apache.cassandra.utils.BitSetTest FAILED

你的错误。测试正在寻找/usr/share/dict/words

apt-get install wamerican