hbase连接问题 java Unable to find region for

java 复制代码
org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region for 9120230b510e56d84d9211f4b4fefc7d in qqt:ads_company_tag after 0 tries.
        at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegionInMeta(ConnectionManager.java:1253) ~[hbase-shaded-client-1.2.0.jar:1.2.0]
        at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegion(ConnectionManager.java:1181) ~[hbase-shaded-client-1.2.0.jar:1.2.0]
        at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegion(ConnectionManager.java:1165) ~[hbase-shaded-client-1.2.0.jar:1.2.0]
        at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegion(ConnectionManager.java:1122) ~[hbase-shaded-client-1.2.0.jar:1.2.0]
        at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.getRegionLocation(ConnectionManager.java:957) ~[hbase-shaded-client-1.2.0.jar:1.2.0]
        at org.apache.hadoop.hbase.client.HRegionLocator.getRegionLocation(HRegionLocator.java:83) ~[hbase-shaded-client-1.2.0.jar:1.2.0]
        at org.apache.hadoop.hbase.client.RegionServerCallable.prepare(RegionServerCallable.java:79) ~[hbase-shaded-client-1.2.0.jar:1.2.0]
        at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:124) ~[hbase-shaded-client-1.2.0.jar:1.2.0]
        at org.apache.hadoop.hbase.client.HTable.get(HTable.java:870) ~[hbase-shaded-client-1.2.0.jar:1.2.0]
        at org.apache.hadoop.hbase.client.HTable.get(HTable.java:836) ~[hbase-shaded-client-1.2.0.jar:1.2.0]
        at org.apache.hadoop.hbase.client.HTable.get(HTable.java:889) ~[hbase-shaded-client-1.2.0.jar:1.2.0]
        at ... org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.56]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.56]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) [catalina.jar:7.0.56]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) [catalina.jar:7.0.56]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503) [catalina.jar:7.0.56]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) [catalina.jar:7.0.56]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) [catalina.jar:7.0.56]
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) [catalina.jar:7.0.56]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) [catalina.jar:7.0.56]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) [catalina.jar:7.0.56]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070) [tomcat-coyote.jar:7.0.56]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) [tomcat-coyote.jar:7.0.56]
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) [tomcat-coyote.jar:7.0.56]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_332]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_332]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-coyote.jar:7.0.56]
        at java.lang.Thread.run(Thread.java:750) [na:1.8.0_332]

hbase是2.1 的

但是用了 shaded-client 是1.2的

XML 复制代码
<!--            <dependency>-->
<!--                <groupId>org.apache.hbase</groupId>-->
<!--                <artifactId>hbase-shaded-client</artifactId>-->
<!--                <version>${hbase-shaded-client.version}</version>-->
<!--            </dependency>-->
            <dependency>
                <groupId>org.apache.hbase</groupId>
                <artifactId>hbase-client</artifactId>
                <version>${hbase.version}</version>
           
            </dependency>

改用hbase-client 2.1 的版本即可 <hbase.version>2.1.10</hbase.version>

相关推荐
小龙.nice27 分钟前
数据库约束&表设计
数据库
古人诚不我欺33 分钟前
mysql之基本常用的语法
android·数据库·mysql
胖头鱼的鱼缸(尹海文)39 分钟前
数据库管理-第267期 23ai:Oracle Data Redaction演示(20241128)
数据库·oracle
liuxin334455661 小时前
林业产品推荐系统:Spring Boot架构设计
数据库·spring boot·后端
Qspace丨轻空间1 小时前
楼顶气膜馆:引领科技感与声学完美结合的未来会议空间—轻空间
大数据·人工智能·生活·娱乐
数据库安全1 小时前
美创科技获选“金智奖”年度创新解决方案,为工业企业数据安全治理提供思路
大数据·网络·人工智能
老王笔记1 小时前
DBA面试题-1
数据库·ffmpeg·dba
Python私教1 小时前
SQLModel与FastAPI结合:构建用户增删改查接口
数据库·oracle·fastapi
尘世壹俗人1 小时前
spark3.x之后时间格式数据偶发报错org.apache.spark.SparkUpgradeException
大数据·分布式·spark
atbigapp.com2 小时前
Apache Doris 现行版本 Docker-Compose 运行教程
大数据·doris·mpp