org.apache.hadoop.hbase.NotServingRegionException: Region hbase:meta

一、错误详情

2020-12-25 12:56:19.366  INFO 1218 --- [hared--pool3-t4] o.a.h.h.client.RpcRetryingCallerImpl     : Call exception, tries=7, retries=16, started=8183 msago, cancelled=false, msg=org.apache.hadoop.hbase.NotServingRegionException: Region hbase:meta,,1 is not online on xsgln01,60020,1605843643892
        at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegionByEncodedName(HRegionServer.java:2920)
        at org.apache.hadoop.hbase.regionserver.RSRpcServices.getRegion(RSRpcServices.java:1053)
        at org.apache.hadoop.hbase.regionserver.RSRpcServices.scan(RSRpcServices.java:2385)
        at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:33648)
        at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2170)
        at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:109)
        at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:133)
        at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:108)
        at java.lang.Thread.run(Thread.java:744)
, details=row 'dwayywat,6801926662020-12-2519286F47-B973-45E9-9EEA-2E012E806B88-23673@030112:00:05,99999999999999' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=xsgln02,60020,1605843643189, seqNum=-1, see https://s.apache.org/timeout

连接hbase配置

hbase.conf.confMaps.hbase.zookeeper.quorum = 22.62.8x.84:2181,22.62.89.8x:2181,22.62.89.8x:2181,22.62.89.8x:2181

原因分析:hbase会根据22.62.8x.84 找到虚拟机主机,并且根据主机hosts文件解析IP,如果ip地址没有映射,这就造成了无法识别主机名xsgln01

解决办法:在部署环境的hosts文件加ip映射

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#	127.0.0.1       localhost
#	::1             localhost

192.168.241.31 node001 www.sxt.com www.360.com
# Added by Docker Desktop
10.209.17.138 host.docker.internal
10.209.17.138 gateway.docker.internal
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section

22.62.8x.84 xsgln01
22.62.8x.85 xsgln02
22.62.8x.86 xsgln03
22.62.8x.87 xsgln04

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值