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>

相关推荐
Ray.19981 分钟前
Flink 的核心特点和概念
大数据·数据仓库·数据分析·flink
明月看潮生10 分钟前
青少年编程与数学 02-007 PostgreSQL数据库应用 11课题、视图的操作
数据库·青少年编程·postgresql·编程与数学
极客先躯11 分钟前
如何提升flink的处理速度?
大数据·flink·提高处理速度
BestandW1shEs14 分钟前
快速入门Flink
java·大数据·flink
阿猿收手吧!18 分钟前
【Redis】Redis入门以及什么是分布式系统{Redis引入+分布式系统介绍}
数据库·redis·缓存
奈葵21 分钟前
Spring Boot/MVC
java·数据库·spring boot
leegong2311129 分钟前
Oracle、PostgreSQL该学哪一个?
数据库·postgresql·oracle
中东大鹅35 分钟前
MongoDB基本操作
数据库·分布式·mongodb·hbase
夜光小兔纸1 小时前
Oracle 普通用户连接hang住处理方法
运维·数据库·oracle
速融云2 小时前
汽车制造行业案例 | 发动机在制造品管理全解析(附解决方案模板)
大数据·人工智能·自动化·汽车·制造