[
https://issues.apache.org/jira/browse/PIG-6?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Samuel Guo updated PIG-6:
-------------------------
Attachment: PIG-6.patch
Attach my patch.
Now it implements the function of loading a table from hbase into pig to do
data-processing.
Usage:
> register ./hbase-0.18.1.jar
> raw = load 'tablename' using
> org.apache.pig.backend.hadoop.hbase.HBaseStorage('f1:c1 f2:c2 f3:c3') as
> (field1, field2, field3);
the parameter of *HBaseStorage* is a column list delimited by space.
Welcome comments on my patch. so I can know how to improve it.
:-)
> Addition of Hbase Storage Option In Load/Store Statement
> --------------------------------------------------------
>
> Key: PIG-6
> URL: https://issues.apache.org/jira/browse/PIG-6
> Project: Pig
> Issue Type: New Feature
> Environment: all environments
> Reporter: Edward J. Yoon
> Attachments: PIG-6.patch
>
>
> It needs to be able to load full table in hbase. (maybe ... difficult? i'm
> not sure yet.)
> Also, as described below,
> It needs to compose an abstract 2d-table only with certain data filtered from
> hbase array structure using arbitrary query-delimited.
> {code}
> A = LOAD table('hbase_table');
> or
> B = LOAD table('hbase_table') Using HbaseQuery('Query-delimited by attributes
> & timestamp') as (f1, f2[, f3]);
> {code}
> Once test is done on my local machines,
> I will clarify the grammars and give you more examples to help you explain
> more storage options.
> Any advice welcome.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.