简体   繁体   English

如何为Hbase 0.96.0编译YCSB?

[英]How to compile YCSB for Hbase 0.96.0?

I was stuck with the compilation issue of YCSB for Hbase 0.96.0. 我陷入了针对Hbase 0.96.0的YCSB的编译问题。 After I changed the pom.xml in YCSB/Hbase directory to 将YCSB / Hbase目录中的pom.xml更改为

<dependency>
  <groupId>org.apache.hbase</groupId>
  <artifactId>hbase</artifactId>
  <version>0.96.0-hadoop2</version>
</dependency>
<dependency>
  <groupId>org.apache.hadoop</groupId>
  <artifactId>hadoop-core</artifactId>
  <version>1.1.2</version>
</dependency>

And try to run the command: mvn clean package in YCSB directory, it gives me a compilation error: 并尝试运行命令:YCSB目录中的mvn clean package,它给我一个编译错误:

[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.hbase:hbase:jar:0.96.0-hadoop2 in http://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] [错误]无法对项目hbase-binding执行目标:无法解析项目com.yahoo.ycsb:hbase-binding:jar:0.1.4的依赖项:找不到org.apache.hbase:hbase:jar:0.96。 http://repo.maven.apache.org/maven2中的 0-hadoop2已缓存在本地存储库中,直到中心的更新间隔过去或强制执行更新后,才会重新尝试解析-> [帮助1]

Then I run mvn clean package -U to force updating the local repo, it gives me the same error... 然后我运行mvn clean package -U强制更新本地存储库,它给了我同样的错误...

Any help will be welcome! 任何帮助都将受到欢迎! Thanks! 谢谢!

Try using hbase-client instead of hbase 尝试使用hbase-client而不是hbase

<dependency>
  <groupId>org.apache.hbase</groupId>
  <artifactId>hbase-client</artifactId>
  <version>0.96.0-hadoop2</version>
</dependency>

Also if you are using hadoop 1.1.2, you should use 0.96.0-hadoop1. 另外,如果您使用的是hadoop 1.1.2,则应使用0.96.0-hadoop1。 0.96.0-hadoop2 is for hadoop 2.* 0.96.0-hadoop2适用于hadoop 2。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM