如何修复java.lang.classnotfoundexception:org.apache.hadoop.hbase.hbaseconfiguration

tquggr8v  于 2021-06-09  发布在  Hbase
关注(0)|答案(0)|浏览(332)

我正在使用hadoop和hbase。hbase版本为1.1.1.2.3。我尝试使用maven来编译、运行项目。但是它有org.apache.hadoop.hbase.hbaseconfiguration not find问题。这是我的pom.xml:

<dependencies>
        <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>3.8.1</version>
                <scope>test</scope>
        </dependency>
  <dependency>
    <groupId>org.apache.hadoop</groupId>
    <artifactId>hadoop-core</artifactId>
    <version>0.20.2</version>
  </dependency>
  <dependency>
    <groupId>org.apache.zookeeper</groupId>
        <artifactId>zookeeper</artifactId>
            <version>3.4.6</version>
            </dependency>
 <dependency>
    <groupId>com.google.protobuf</groupId>
        <artifactId>protobuf-java</artifactId>
            <version>2.4.0a</version>
            </dependency>
 <dependency>
    <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
            <version>11.0.2</version>
            </dependency>

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

  <dependency>
    <groupId>org.apache.hadoop</groupId>
    <artifactId>hadoop-common</artifactId>
    <version>0.23.1</version>
  </dependency>
  <dependency>
    <groupId>org.apache.hbase</groupId>
        <artifactId>hbase-protocol</artifactId>
            <version>1.1.2</version>
    </dependency>

   <dependency>
    <groupId>org.apache.hbase</groupId>
    <artifactId>hbase</artifactId>
    <version>0.94.27</version>
  </dependency>
      <dependency>
                <groupId>org.apache.hbase</groupId>
                <artifactId>hbase-server</artifactId>
                <version>1.1.1</version>
        </dependency>
        <dependency>
                <groupId>org.apache.hbase</groupId>
                <artifactId>hbase-testing-util</artifactId>
                <version>1.1.1</version>
        </dependency>
    </dependencies>

相依关系如上所述,我真的不知道要添加什么更多。有人能帮忙吗?非常感谢。我知道有很多类似的问题,但没有一个是使用最新的版本库,我尝试了那里的解决方案,不起作用。此外,我还尝试添加依赖项:http://mvnrepository.com/artifact/org.apache.hbase/hbase/1.1.1 但获取错误: Failed to execute goal on project hbaseTable: Could not resolve dependencies for project apache.hbase:hbaseTable:jar:0.0.1-SNAPSHOT: Failure to find org.apache.hbase:hbase:jar:1.1.1 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

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题