zoukankan      html  css  js  c++  java
  • HBase thrift2 TIOError

    如果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)
  • 相关阅读:
    微软同步发行Windows 10和Windows 10 Mobile系统更新
    MySQL5.5中文支持
    sqlplus登入和plsql登入的差别
    SQL Server统计信息:问题和解决方式
    OSX: 命令行制作U盘Recovery HD
    Android 使用SwipeBackLayout实现滑动返回上一级页面——实战来袭
    JSP常见的三个编译指令
    matlab-非线性方程求根函数及函数曲线绘制
    走进windows编程的世界-----消息处理函数(3)
    LoadRunner利用ODBC编写MySql脚本
  • 原文地址:https://www.cnblogs.com/aquester/p/9891499.html
Copyright © 2011-2022 走看看