You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@crunch.apache.org by "Ryan Brush (JIRA)" <ji...@apache.org> on 2013/08/09 16:16:48 UTC

[jira] [Updated] (CRUNCH-246) HFileSource

     [ https://issues.apache.org/jira/browse/CRUNCH-246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan Brush updated CRUNCH-246:
------------------------------

    Attachment: HFileInputFormat.java

Attaching a simple HFileInputFormat we've used as a reference for this issue. This was an implementation detail of a larger system for us, and unfortunately lacks focused unit tests on this class alone.  However, it could be refactored to help meet this need, or at least as an example of plugging into HFiles.

We can effectively consider the attached code as Apache licensed, and can be used in part or full as part of this JIRA.

I should disclaim this is something I wrote some time ago and HBase has evolved since then, but it does work as advertised.
                
> HFileSource
> -----------
>
>                 Key: CRUNCH-246
>                 URL: https://issues.apache.org/jira/browse/CRUNCH-246
>             Project: Crunch
>          Issue Type: Improvement
>          Components: IO
>            Reporter: Chao Shi
>            Assignee: Chao Shi
>         Attachments: HFileInputFormat.java
>
>
> I found this useful when directly perform MR on HFiles. I used it yesterday when copying a bunch of HFiles to another cluster (where the region layout is different).
> There is no HFileInputFormat provided by HBase, but I found the following from google:
> https://gist.github.com/leifwickland/1120311
> http://blog.csdn.net/kirayuan/article/details/7794402 (Java version of the above. The webpage is in chinese, but you can see the code)
> I'm not sure if we copy their code directly (copyright issue?). Anyone knows?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira