欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

HBase-错误记录

程序员文章站 2022-03-03 18:53:19
...

1. windows远程开发HBase提示:java.net.UnknownHostException: unknown host: master

解决方案:

C:\WINDOWS\system32\drivers\etc\hosts中添加

IP1 hostName1
IP2 hostName2
IP3 hostName3

2. 在将HBase添加协处理器时,出现错误

ERROR: org.apache.hadoop.hbase.DoNotRetryIOException: Class cn.com.newbee.feng.MyRegionObserver cannot be loaded Set hbase.table.sanity.checks to false at conf or table descriptor if you want to bypass sanity checks
    at org.apache.hadoop.hbase.master.HMaster.warnOrThrowExceptionForFailure(HMaster.java:1707)
    at org.apache.hadoop.hbase.master.HMaster.sanityCheckTableDescriptor(HMaster.java:1568)
    at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:2055)
    at org.apache.hadoop.hbase.master.MasterRpcServices.modifyTable(MasterRpcServices.java:1176)
    at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:55680)
    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:748)

解决方案

/**
* 在hdfs-site.xml中添加配置信息
**/
    <property>
        <name>hbase.table.sanity.checks</name>
        <value>false</value>
    </property>

3. 在HBase中添加协处理,HBae找不到协处理器导致RegionServer全部挂掉

解决方案

在HBase的默认配置中,当HBase启动时,在加载协处理器失败时,直接将导致集群启动失败,因此需要修改HBase中关于协处理器的配置

<property>
<name>hbase.coprocessor.abortonerror</name>
<value>false</value>
</property>

HBase集群出现错误:导致HRegionServer一直提示连接不上HMaster

详细出错信息如下:

<->
2018-08-06 04:25:49,793 ERROR [Thread-237] master.HMaster: Master failed to complete initialization after 900000ms. Please consider submitting a bug report including a thread dump of this process.
2018-08-06 04:25:49,893 DEBUG [B.defaultRpcServer.handler=92,queue=12,port=6000] ipc.RpcServer: B.defaultRpcServer.handler=92,queue=12,port=6000: callId: 73088 service: RegionServerStatusService methodName: RegionServerStartup size: 47 connection: 10.3.69.134:33962
org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet
        at org.apache.hadoop.hbase.master.HMaster.checkServiceStarted(HMaster.java:2296)
        at org.apache.hadoop.hbase.master.MasterRpcServices.regionServerStartup(MasterRpcServices.java:361)
<二>
java.lang.OutOfMemoryError: Direct buffer memory
<三>
has a lot of state*log files under  /hbase/MasterProcWALs/.

解决方案

1. 清空/hbase/MasterProcWALs/文件夹并重启
相关标签: HBase 问题记录