2015-12-04 80 views
2

我使用Mac OS X,我的ant,java依赖项满足最低要求。当我通过无法从源代码构建Cassandra

ant build 

打造的源代码我喜欢的错误:

[echo] apache-cassandra: /Users/taiyuanz/git/cassandra-trunk/build.xml 
[javac] Compiling 890 source files to /Users/taiyuanz/git/cassandra-trunk/build/classes/main 
[javac] Note: Processing compiler hints annotations 
[javac] warning: Supported source version 'RELEASE_6' from annotation processor 'org.openjdk.jmh.generators.BenchmarkProcessor' less than -source '1.8' 
[javac] /Users/taiyuanz/git/cassandra-trunk/src/java/org/apache/cassandra/db/partitions/AbstractBTreePartition.java:33: error: reference to Row is ambiguous 
[javac] public abstract class AbstractBTreePartition implements Partition, Iterable<Row> 
[javac]                   ^
[javac] both interface org.apache.cassandra.db.rows.Row in org.apache.cassandra.db.rows and class org.apache.cassandra.db.Row in org.apache.cassandra.db match 
[javac] /Users/taiyuanz/git/cassandra-trunk/src/java/org/apache/cassandra/db/partitions/PartitionUpdate.java:72: error: reference to Row is ambiguous 
[javac]  private BTree.Builder<Row> rowBuilder; 
[javac]       ^
[javac] both interface org.apache.cassandra.db.rows.Row in org.apache.cassandra.db.rows and class org.apache.cassandra.db.Row in org.apache.cassandra.db match 
[javac] /Users/taiyuanz/git/cassandra-trunk/src/java/org/apache/cassandra/db/partitions/PartitionUpdate.java:164: error: reference to Row is ambiguous 
[javac]  public static PartitionUpdate singleRowUpdate(CFMetaData metadata, DecoratedKey key, Row row) 
....... 

一切都是因为同样的问题 - 不确定性,由于Row类。如何解决这个问题?

+0

'javac -version'的输出是什么? –

回答

4

它看起来像源代码来自源3.0以前和后3.0 Cassandra在您的源代码树中。我会跑:

git clean -xfd 

要看看是否修复它。否则,请删除存储库并使用干净的克隆重新启动。