Chinaunix首页 | 论坛 | 博客
  • 博客访问: 8139174
  • 博文数量: 594
  • 博客积分: 13065
  • 博客等级: 上将
  • 技术积分: 10324
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-26 16:44
个人简介

推荐: blog.csdn.net/aquester https://github.com/eyjian https://www.cnblogs.com/aquester http://blog.chinaunix.net/uid/20682147.html

文章分类

全部博文(594)

分类: HADOOP

2017-05-27 17:37:59

如果HBase thrift2报:“TIOError exception: Default TException”,
这个可能是因为操作的表不存在,不一定是网络或磁盘操作异常。


HBase Thrift2偷懒了,所有异常被统一成了TIOError和TIllegalArgument两个异常,
导致调用者无法区分,而且出错信息也没能很好的带过来,增加了定位工作量。


在HBase client中为如下一个继承关系:
public class TableNotFoundException extends DoNotRetryIOException
public class DoNotRetryIOException extends HBaseIOException
public class HBaseIOException extends IOException


HBase master相关日志:
2017-05-27 17:20:42,879 ERROR [thrift2-worker-7] client.AsyncProcess: Failed to get region location
org.apache.hadoop.hbase.TableNotFoundException: ABCDE
        at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegionInMeta(ConnectionManager.java:1285)
        at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegion(ConnectionManager.java:1183)
        at org.apache.hadoop.hbase.client.AsyncProcess.submit(AsyncProcess.java:422)
        at org.apache.hadoop.hbase.client.AsyncProcess.submit(AsyncProcess.java:371)
        at org.apache.hadoop.hbase.client.BufferedMutatorImpl.backgroundFlushCommits(BufferedMutatorImpl.java:245)
        at org.apache.hadoop.hbase.client.BufferedMutatorImpl.flush(BufferedMutatorImpl.java:197)
        at org.apache.hadoop.hbase.client.HTable.flushCommits(HTable.java:1461)
        at org.apache.hadoop.hbase.client.HTable.put(HTable.java:1017)
        at org.apache.hadoop.hbase.thrift2.ThriftHBaseServiceHandler.put(ThriftHBaseServiceHandler.java:243)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
阅读(4097) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~