简体   繁体   English

以下工件无法解析:org.apache.hbase:hbase:jar:0.96.1.1-hadoop2

[英]The following artifacts could not be resolved: org.apache.hbase:hbase:jar:0.96.1.1-hadoop2

I try to take the following steps: right click on pom.xml and run as maven install in eclipse but I got this error: 我尝试执行以下步骤:右键单击pom.xml并在Eclipse中作为maven install运行,但出现此错误:

[ERROR] Failed to execute goal on project tt: Could not resolve dependencies for project com.sunshineatnoon:tt:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: org.apache.hbase:hbase:jar:0.96.1.1-hadoop2, com.yahoo.ycsb:core:jar:0.1.4: Failure to find org.apache.hbase:hbase:jar:0.96.1.1-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]

however, when I looked into http://repo.maven.apache.org/maven2 , there indeed exists this org.apache.hbase:hbase:jar:0.96.1.1-hadoop2. 但是,当我查看http://repo.maven.apache.org/maven2时 ,确实存在此org.apache.hbase:hbase:jar:0.96.1.1-hadoop2。

My pom.xml is as follows: 我的pom.xml如下:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.sunshineatnoon</groupId>
  <artifactId>tt</artifactId>
  <version>0.0.1-SNAPSHOT</version>

  <dependencies>
    <dependency>
      <groupId>org.apache.hbase</groupId>
      <artifactId>hbase</artifactId>
      <version>0.96.1.1-hadoop2</version>
    </dependency>
    <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-client</artifactId>
      <version>2.2.0</version>
    </dependency>
    <dependency>
      <groupId>com.yahoo.ycsb</groupId>
      <artifactId>core</artifactId>
      <version>0.1.4</version>
    </dependency>
  </dependencies>

</project>

How can I solve this problem?Any help will be appreciated, thanks in advance! 我该如何解决这个问题?感谢您的帮助!

Maven pulls all the dependencies to your local machine. Maven将所有依赖项拉到本地计算机。 The default path would be ${USER_HOME}/.m2/repository. 默认路径为$ {USER_HOME} /。m2 / repository。 Here you should see whether the following dependencies really exist. 在这里,您应该查看以下依赖项是否确实存在。 Also are you using multiple repositories? 您还在使用多个存储库吗? Maven will place files under folders where it thinks there's a conflict "_maven.repositories" I normally delete these as it creates the above error as well. Maven会将文件放在它认为存在冲突的文件夹“ _maven.repositories”下,通常会删除它们,因为它也会产生上述错误。

org.apache.hbase:hbase:jar:0.96.1.1-hadoop2
${USER_HOME}/.m2/repository/org/apache/hbase/hbase/0.96.1.1-hadoop2

com.yahoo.ycsb:core:jar:0.1.4
${USER_HOME}/.m2/repository/com/yahoo/ycsb/core/0.1.4

The artifact hbase-0.96.1.1-hadoop2 does not exist. 工件hbase-0.96.1.1-hadoop2不存在。 The hbase module was divided into multiple children as of version 0.96. 从0.96版开始,hbase模块被分为多个子级。

  hbase =>  hbase-client, hbase-protocol, hbase-server, hbase-examples ..

You will need to reference hbase-(client|protocol|server|examples|etc)-0.96.1.1-hadoop2 您将需要参考hbase-(client | protocol | server | examples | etc)-0.96.1.1-hadoop2

暂无
暂无

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

相关问题 eclipse:缺少工件org.apache.hbase:hbase:jar:1.1.3 - eclipse : Missing artifact org.apache.hbase:hbase:jar:1.1.3 无法在Java中独立连接到HBase 0.96.1.1-hadoop2 - Unable to Connect to HBase 0.96.1.1-hadoop2 Standalone in Java 使用Cygwin在Windows上启动HBase时出错:找不到主类:org.apache.hadoop.hbase.master.HMaster - Error on start HBase on Windows with Cygwin : Could not find the main class : org.apache.hadoop.hbase.master.HMaster org.apache.hadoop.hbase.MasterNotRunningException - org.apache.hadoop.hbase.MasterNotRunningException Hbase java.lang.NoClassDefFoundError:org / apache / hadoop / hbase / MasterNotRunningException - Hbase java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/MasterNotRunningException 异常:org.apache.hadoop.hbase.masternotrunningexception - Exception :org.apache.hadoop.hbase.masternotrunningexception java.lang.NoClassDefFoundError:无法初始化类org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil $ ClassLoaderHolder - java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil$ClassLoaderHolder HBase on Tomcat7安装错误:无法初始化类org.apache.hadoop.security.ShellBasedUnixGroupsMapping - HBase on Tomcat7 setup error: Could not initialize class org.apache.hadoop.security.ShellBasedUnixGroupsMapping Spark Hbase:如何将数据帧转换为 Hbase org.apache.hadoop.hbase.client.Result - Spark Hbase : How to convert a dataframe to Hbase org.apache.hadoop.hbase.client.Result java.lang.NoClassDefFoundError:org.apache.hadoop.hbase.HBaseConfiguration - java.lang.NoClassDefFoundError: org.apache.hadoop.hbase.HBaseConfiguration
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM