【问题标题】:Phoenix not returning any rows from HBASE viewPhoenix 未从 HBASE 视图返回任何行
【发布时间】:2016-11-16 12:04:43
【问题描述】:

我在 hbase 中有一个表,肯定包含数据:

scan "my_table", {LIMIT=>1}
 000008d624784f434ea441eb930eb84e201511162015111624000024498 column=g:orig_ccy, timestamp=3688201677984955, value=XXX

但是,在 phoenix 中创建此表顶部的视图后,没有返回任何行:

select * from "my_table";
No rows selected (4.033 seconds)

在 HBASE 0.98.4 上使用 phoenix 4.2 版(我知道的旧版本)。

【问题讨论】:

    标签: hbase phoenix


    【解决方案1】:

    根本问题是所有单元格上的时间都不是有效的 unixtime。

    Phoenix 实际上一直隐含过滤。

    在这里将 phoenix 进行调试确实很有帮助,请参阅 https://community.hortonworks.com/articles/48962/how-to-enable-debug-logging-for-phoenix.html

    16/11/16 11:48:40 DEBUG iterate.SerialIterators: Id: 7b133b01-9d84-4279-99c1-1a544740f587,时间:0ms,扫描: {"timeRange":[0,1479296915809],"batch":-1,"startRow":"fa4fa4dc","stopRow":"","loadColumnFamiliesOnDemand":null,"totalColumns":1,"cacheBlocks":true ,"家庭":{"g":["ALL"]},"maxResultSize":-1,"maxVersions":1,"filter":"FilterList AND (2/2): [PageFilter 5, ]","caching":100}

    更新我们的加载方法,使其加载 有效 unix datetimes 有所帮助。

    【讨论】:

      猜你喜欢
      • 2015-06-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-18
      • 2023-04-01
      • 1970-01-01
      • 2016-03-25
      • 1970-01-01
      相关资源
      最近更新 更多