[
https://issues.apache.org/jira/browse/PIG-4620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andi Chirita resolved PIG-4620.
-------------------------------
Resolution: Not A Problem
I was using Cloudera 5.3.X that includes HBase 0.98 but an older version of
Apache pig 0.12.0, that supports only HBase 0.95.
This patch can be used instead if you are working on a legacy project and can't
upgrade to a newer distribution.
Regards,
Andi
> Add namespace support to HBaseStorage
> -------------------------------------
>
> Key: PIG-4620
> URL: https://issues.apache.org/jira/browse/PIG-4620
> Project: Pig
> Issue Type: New Feature
> Affects Versions: 0.12.0
> Reporter: Andi Chirita
> Assignee: Andi Chirita
> Labels: hbase, patch
> Fix For: 0.13.0, 0.12.1
>
> Attachments: HBaseStorageNamespace.patch
>
>
> Since version 0.96 HBase introduced namespace support.
> Apace Pig has recently updated the HBase dependency to 0.98.12 (PIG-4544)
> Currently there's no way to specify the namespace for a table.
> I suggest to implement it is using a '-namespace' option.
> {code}
> copy = STORE raw INTO 'hbase://SampleTableCopy'
> USING org.apache.pig.backend.hadoop.hbase.HBaseStorage(
> 'info:first_name info:last_name friends:* info:*','-namespace
> SampleNamespace');
> {code}
> We can't use the namespace in the hbase path as it will break the uri
> validation : 'hbase://SampleNamespace:SampleTableCopy'
> The patch is available. I will look to extend the unittest for the namespace
> option.
> Please review my changes and let me know if I can help with something.
> Kind regards,
> Andi
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)