如何确定Accumulo表可见性? [英] How to determine Accumulo table visibilities?

查看:101
本文介绍了如何确定Accumulo表可见性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个Accumulo实例,并且某些表中的数据是用可见性令牌编写的,而我们当前的用户都没有。由于各种原因,我们不知道表中所有可见性字符串/标记是什么。因此,我们有孤立的数据。他们是Accumulo根用户或其他用户确定给定表中数据的可见性字符串是什么的方式,而无需他们为其分配那些令牌?

We have an Accumulo instance and some of the tables have data which was written with visibility tokens which none of our current users have. For various reasons, we do not know what all the visibility strings/tokens are within the tables. Because of this, we have orphaned data. Is their a way for the Accumulo root user or other user to determine what the visibility strings are for the data within a given table without them having those tokens already assigned to them?

推荐答案

您必须直接读取基础RFile才能执行此操作。一种方法是使用随附的PrintInfo管理实用程序。因此,作为可以从HDFS中读取文件的用户,请运行:

You're going to have to read the underlying RFiles directly in order to do this. One way to do this is to use the included PrintInfo admin utility. So as a user that can read the files for your out of HDFS, run:

accumulo org.apache.accumulo.core.file.rfile.PrintInfo --dump [hdfs:///path/to/files/xxx.rf]

您可能必须通过扫描元数据表中的文件列族来查找与表相对应的文件。具体情况取决于您所使用的Accumulo版本。

You'll have to find the files that correspond to your table, likely by scanning the metadata table for the "file" column family. The specifics will vary depending on which version of Accumulo you are using, however.

这篇关于如何确定Accumulo表可见性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆