如果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) |