Re: Accessing different HBase versions from the same JVM

2016-08-26 Thread Ted Yu
Can you take a look at the replication bridge [0] Jeffrey wrote ? It used both client library versions through JarJar [1] to avoid name collision. [0]: https://github.com/hortonworks/HBaseReplicationBridgeServer [1]: https://code.google.com/p/jarjar/ On Fri, Aug 26, 2016 at 12:26 AM, Enrico

Re: Accessing different HBase versions from the same JVM

2016-08-26 Thread Dima Spivak
Sadly, there is no "easy" way to do it (blame filesystem changes and the rpc differences, among other things). A while back, someone posted about how he was able to do a snapshot export between 0.94 and 0.98 [1] but this is not officially supported. Perhaps someone else has ideas? 1.

Re: Accessing different HBase versions from the same JVM

2016-08-26 Thread Enrico Olivelli - Diennea
Thank you Dima for your quick answer. Do you think that it would be possible to create a shaded version of the 0.94 client (with all the dependencies) and let it live inside the same JVM of a pure 1.2.2 client ? My real need is to copy data from a 0.94 cluster to a new 1.2.2 installation,

Re: Accessing different HBase versions from the same JVM

2016-08-26 Thread Dima Spivak
I would say no; 0.94 is not wire compatible with 1.2.2 because the former uses Hadoop IPC and the latter uses protocol buffers. Sorry, Enrico. On Friday, August 26, 2016, Enrico Olivelli - Diennea < enrico.olive...@diennea.com> wrote: > Hi, > I would like to connect to both a 0.94 hbase cluster

Accessing different HBase versions from the same JVM

2016-08-26 Thread Enrico Olivelli - Diennea
Hi, I would like to connect to both a 0.94 hbase cluster and a 1.2.2 hbase cluster from the same JVM I think that 0.94 client code is not compatible with 1.2.2 do you think it is possible ? Thank you -- Enrico Olivelli Software Development Manager @Diennea Tel.: (+39) 0546 066100 - Int. 925