首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >构建cassandra测试用例失败

构建cassandra测试用例失败
EN

Stack Overflow用户
提问于 2015-05-03 20:56:35
回答 1查看 401关注 0票数 1

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

代码语言:javascript
复制
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`

我做错了什么吗?这就是我想要建立的:

  • 蚂蚁
  • 蚂蚁建造
  • 蚂蚁构建测试
  • 蚂蚁试验
  • 蚂蚁伪像
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-05-04 01:46:27

代码语言:javascript
复制
[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

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30019302

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档