[ 
https://issues.apache.org/jira/browse/PIG-4728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15023473#comment-15023473
 ] 

Rohini Palaniswamy edited comment on PIG-4728 at 11/24/15 12:36 AM:
--------------------------------------------------------------------

As mentioned in 
https://issues.apache.org/jira/browse/PIG-4743?focusedCommentId=15023462&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15023462,
 Pig 0.15 published release does not work with HBase 1.x. The source code needs 
to be recompiled with hbase 1.x jars and used. 

[~shashikantkulkarni],
You can compile Pig with hbase 1.x as follows and use that to run against hbase 
1.x
ant jar -Dhadoopversion=23 -Dhbase95.version=1.1.2


Though it compiles, running unit tests fail as new dependencies are not there 
in ivy. We will have to keep this jira open to add a new hbase1.version option 
and corresponding dependencies so that we can run unit tests against HBase 1.x. 
We should also try changing those binary incompatible method calls to use 
reflection so that whichever version of hbase Pig is compiled with it works 
fine in runtime. 


was (Author: rohini):
As mentioned in 
https://issues.apache.org/jira/browse/PIG-4743?focusedCommentId=15023462&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15023462,
 Pig 0.15 published release does not work with HBase 1.x. The source code needs 
to be recompiled with hbase 1.x jars and used. 


You can compile with hbase 1.x as follows. 
ant jar -Dhadoopversion=23 -Dhbase95.version=1.1.2

Though it compiles, running tests fail as new dependencies are not there in 
ivy. We will have to keep this jira open to add a new hbase1.version option and 
corresponding dependencies. We should also try changing those binary 
incompatible method calls to use reflection so that whichever version of hbase 
Pig is compiled with it works fine in runtime. 

> Compilation against hbase 1.x fails with hbase-hadoop1-compat not found
> -----------------------------------------------------------------------
>
>                 Key: PIG-4728
>                 URL: https://issues.apache.org/jira/browse/PIG-4728
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Ted Yu
>
> With the following change:
> {code}
> diff --git a/ivy/libraries.properties b/ivy/libraries.properties
> index c40befd..41ce9fb 100644
> --- a/ivy/libraries.properties
> +++ b/ivy/libraries.properties
> @@ -46,7 +46,7 @@ hadoop-common.version=2.6.0
>  hadoop-hdfs.version=2.6.0
>  hadoop-mapreduce.version=2.6.0
>  hbase94.version=0.94.1
> -hbase95.version=0.98.12-${hbase.hadoop.version}
> +hbase95.version=1.1.2
>  hsqldb.version=1.8.0.10
>  hive.version=1.2.1
>  httpcomponents.version=4.1
> {code}
> I ran 'ant compile'
> However, compilation failed with:
> {code}
> [ivy:resolve]                 ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve]                 ::          UNRESOLVED DEPENDENCIES         ::
> [ivy:resolve]                 ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve]                 :: org.apache.hbase#hbase-hadoop1-compat;1.1.2: 
> not found
> [ivy:resolve]                 ::::::::::::::::::::::::::::::::::::::::::::::
> {code}
> In hbase 1.x releases, hbase-hadoop1-compat module doesn't exist.



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

Reply via email to