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/文件夹并重启
上一篇: centos 安装JDK
下一篇: npm中常用的package
推荐阅读
-
PHP+MySQL修改记录的方法_php技巧
-
PHP程序中使用session错误调试问题_PHP教程
-
如何删除数据库中的重复记录(一)
-
PHP 错误之引号中使用变量_php技巧
-
MySQL多字段重复记录淘选
-
txt-在php中用TXT文件记录的功能实现统计并显示链接点击次数
-
Warning: session_destroy : Trying to destroy uninitialized sessionq错误
-
macosx-10.11 - 更新osx 10.11后,删除自带php版本,重新编译php 5.5.29,到make阶段提示错误。
-
buffer-系统定时备份时一直不成功,mysql错误日志写的看不懂,各位大神给指点一下吧
-
RMAN恢复数据库ORA-01861错误