java - YCSB Maven 构建错误

标签 java git maven hadoop

我克隆了YSCB git并修改 \hbase 中的 pom.xml用于指向我的 HBase 和 Hadoop 的正确版本的文件夹。之后,我尝试使用 `mvn clean package' 制作 YCSB 包,但出现以下我无法解决的错误。

[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building HBase DB Binding 0.1.4
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.apache.hadoop:hadoop-core:jar:2.4.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] YCSB Root .......................................... SUCCESS [  0.954 s]
[INFO] Core YCSB .......................................... SUCCESS [ 19.117 s]
[INFO] Cassandra DB Binding ............................... SUCCESS [ 10.728 s]
[INFO] HBase DB Binding ................................... FAILURE [  0.260 s]
[INFO] Hypertable DB Binding .............................. SKIPPED
[INFO] Accumulo DB Binding ................................ SKIPPED
[INFO] DynamoDB DB Binding ................................ SKIPPED
[INFO] ElasticSearch Binding .............................. SKIPPED
[INFO] Infinispan DB Binding .............................. SKIPPED
[INFO] JDBC DB Binding .................................... SKIPPED
[INFO] Mapkeeper DB Binding ............................... SKIPPED
[INFO] Mongo DB Binding ................................... SKIPPED
[INFO] OrientDB Binding ................................... SKIPPED
[INFO] Redis DB Binding ................................... SKIPPED
[INFO] Voldemort DB Binding ............................... SKIPPED
[INFO] YCSB Release Distribution Builder .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31.309 s
[INFO] Finished at: 2015-02-27T08:30:30+00:00
[INFO] Final Memory: 53M/934M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project hbase-binding: Could not resolve dependencies for project com.yahoo.ycsb:hbase-binding:jar:0.1.4: Failure to find org.apache.hadoop:hadoop-core:jar:2.4.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :hbase-binding

我正在使用 HBase 版本 0.94.18 和 Hadoop 2.4.0。关于如何解决它的任何建议?

最佳答案

你是否更改了 hbase pom.xml 文件中的 hbase 和 hadoop 版本。
还要检查您使用的存储库中是否有所需的 jar https://repo.maven.apache.org/maven2

如果您仅将 YCSB 用于 hbase,我建议从 pom 文件中删除不需要的模块,这将减少构建所需的时间。

关于java - YCSB Maven 构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28760736/

相关文章:

java - 创建后增加 LRUMap 的大小

git - git 将分支外提交保留多长时间?

maven - 部署.war后运行Maven ant插件吗?

java - 检查 5x6 矩阵中的相邻单元格

Java 异常循环和弃用(或者是 URLEncoding 的东西?)

git - git diff 的奇怪输出到 Ubuntu 中的文件

maven - Maven中范围为“optional”的“provided”依赖项

java - 如何让 AspectJ 和 Lombok 与 maven 协同工作?

java - Java 中的 UDP 服务器

git - 我可以强制 git 将更改视为一个整体吗?