accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher <ctubb...@apache.org>
Subject Re: parsing rfile (e.g. AccumuloFileInputFormat)
Date Sat, 11 Jan 2020 00:27:58 GMT
The code that backs the `bin/accumulo rfile-info
hdfs://path/to/rfile.rf` command is located at
https://github.com/apache/accumulo/blob/3fd5cad92f9b63ac19e4466f3f2d5237b905262c/core/src/main/java/org/apache/accumulo/core/file/rfile/PrintInfo.java

It may be a useful example of how to read key/value pairs from an
RFile to implement such a thing.

However, that code uses a lot of internal APIs. We have a public API
(since 1.8) for reading from RFiles that is probably better to use:
https://accumulo.apache.org/docs/2.x/apidocs/org/apache/accumulo/core/client/rfile/RFile.html#newScanner()

On Fri, Jan 10, 2020 at 5:21 PM Bulldog20630405
<bulldog20630405@gmail.com> wrote:
>
>
> accumulo has an AccumuloFileOutputFormat which i use all the time; however, there is
not an AccumuloFileInputFormat.  does anyone have an example? or at least how an rfile structure
is so i can parse it one key at a time?
>
>

Mime
View raw message