You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Andi Chirita (JIRA)" <ji...@apache.org> on 2015/07/06 00:42:04 UTC
[jira] [Updated] (PIG-4620) Add namespace support to HBaseStorage
[ https://issues.apache.org/jira/browse/PIG-4620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andi Chirita updated PIG-4620:
------------------------------
Description:
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 another '-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 regard,
Andi
was:
Since version 0.96 HBase introduced namespace support.
Apace Pig is recently updated 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 another '-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 regard,
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.15.0
> Reporter: Andi Chirita
> Assignee: Andi Chirita
>
> 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 another '-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 regard,
> Andi
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)