我试图从源代码构建cassandra二进制文件,当我试图编译单元测试用例时,其中一些会给我带来错误。我尝试了2.0.14、2.1.4和2.1.5版本,包括ubuntu 14.04和Java 7以及Java 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`我做错了什么吗?这就是我想要建立的:
发布于 2015-05-04 01:46:27
[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
https://stackoverflow.com/questions/30019302
复制相似问题