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)
  • 相关阅读:
    精妙Sql语句
    TSQL是否有循环语句?类似C语言的for?如何查看有哪些用户连接到服务器上?如何强制其退出?
    Tools1.4
    Set Up1.2
    Getting Started1.0
    Start Developing iOS Apps Today1.1
    Language1.5
    Jump Right In1.3
    编译器错误信息: CS0246: 找不到类型或命名空间名称“Discuz”(是否缺少 using 指令或程序集引用?)
    ashx文件无法访问
  • 原文地址:https://www.cnblogs.com/aquester/p/9891499.html
Copyright © 2011-2022 走看看