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

Rohini Palaniswamy resolved PIG-3498.
-------------------------------------
    Resolution: Incomplete

Closing this as incomplete. No point in keeping this open anymore as users have 
already moved from hbase 94 to hbase 1.x now.

It would be good to have this though if there is incompatibility again after 
hbase 1.x. During the internal migration from 0.94 to 0.98 I did something of 
this sort. Duplicated code to HBaseStorage94 and HBaseStorage98 and had the 
HBaseStorage methods just redirect to one of those based on the presence of 
"org.apache.hadoop.hbase.filter.WritableByteArrayComparable" (It was removed in 
0.98).  Compiled separately with both versions excluding the class not 
belonging to the version and at the end extracted the class files from one jar 
and injected into another.  Was messy but worked great. 

> Make pig binary work on both HBase version 0.94 and 0.95
> --------------------------------------------------------
>
>                 Key: PIG-3498
>                 URL: https://issues.apache.org/jira/browse/PIG-3498
>             Project: Pig
>          Issue Type: Task
>    Affects Versions: 0.11
>            Reporter: Jarek Jarcec Cecho
>
> HBase 0.95+ support has been added via PIG-3390. Whereas pig can be compiled 
> against both 0.94 and 0.95, due to binary incompatibilities inside HBase, pig 
> compiled against HBase 0.95 can't be used against 0.94 and vice versa. 
> One of the issue we are facing is HBase class {{RowFilter}}, that changed 
> constructor between the two HBase releases:
> * HBase 0.94  {{RowFilter(CompareOp, WritableByteArrayComparable)}}
> * HBase 0.95 {{RowFilter(CompareO, ByteArrayComparable)}}
> We are using children of the classes used in second parameter and therefore 
> the same code compiles against both HBase versions. However as the entire 
> constructor signature is saved into compiled Java class, generated binaries 
> are compatible with only one HBase version. 
> As we're releasing only one pig binary, it would be useful to make Pig 
> compatible with both versions at the same time.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to