简体   繁体   English

如何从 hive 或 impala 读取 Hbase 当前和以前版本的数据?

[英]how to read Hbase current and previous versions of data from hive or impala?

I want to read Hbase current and previous versions of data from either hive or Impala.In my initial research, I found out that only current version can be accessed from Hive.我想从 hive 或 Impala 读取 Hbase 当前和以前版本的数据。在我最初的研究中,我发现只能从 Hive 访问当前版本。 So, currently is there any way to retrieve the older versions from either hive or Impala?那么,目前有没有办法从 hive 或 Impala 中检索旧版本?

In case of Hive : Please see this在 Hive 的情况下:请参阅

Seems like it's not possible to get different versions of same cell in Hive(even though Hbase has multiple versions of the same cell ) which always return the cell with latest timestamp.似乎不可能在 Hive 中获得相同单元格的不同版本(即使 Hbase 具有相同单元格的多个版本),它总是返回具有最新时间戳的单元格。 I believe we can handle this in tactical way.我相信我们可以从战术上解决这个问题。 we can append the previous version to Hbase row key or else as separate cell (name, value)我们可以将以前的版本附加到 Hbase 行键或作为单独的单元格(名称,值)
In case of Impala : Please see limitations section在 Impala 的情况下:请参阅限制部分

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM