HBase阴影1.1客户机。x对Cloudera 5.4.7 (HBase 1.0.0)

时间:2020-11-28 20:44:36

I'm running into a trouble when trying to create an Java based client which is used to query data from both Cloudera HBase 1.0.0 (CDH 5.4.7) and ElasticSearch 2.1.0. The issue is about dependency conflicts on guava library.

我在尝试创建一个基于Java的客户端时遇到了麻烦,该客户端用于查询Cloudera HBase 1.0.0 (CDH 5.4.7)和ElasticSearch 2.1.0。问题是关于番石榴库的依赖冲突。

This bug describes pretty much the same issue as I met: https://issues.apache.org/jira/browse/HBASE-14126

这个bug描述了与我遇到的几乎相同的问题:https://issues.apache.org/jira/browse/HBASE-14126

At least in my case using a lower version of guava (lower than 17.0 from where the breaks happens) is out of the table because it will lead Elasticsearch JAVA search API failure. And now I'm trying the Apache HBase Shaded Client 1.1.2 (which is designed for HBase 1.1.0 I suppose), at least so far some of the simple HBase operations (I tried only get/scan so far) are all suceeded.

至少在我的例子中,使用较低版本的番石榴(低于发生中断的17.0)是不可能的,因为它会导致弹搜索JAVA search API失败。现在,我正在尝试Apache HBase阴影客户端1.1.2(我想它是为HBase 1.1.0设计的),至少到目前为止,一些简单的HBase操作(到目前为止我只尝试了get/scan)都得到了满足。

http://mvnrepository.com/artifact/org.apache.hbase/hbase-shaded-client

http://mvnrepository.com/artifact/org.apache.hbase/hbase-shaded-client

I'm wondering if there is any known risk or issue about using Apache HBase Shaded Client 1.1.x on Hbase 1.0.0 or even earlier versions.

我想知道是否存在使用Apache HBase着色客户端1.1的已知风险或问题。x在Hbase 1.0.0或更早的版本上。

Or is there any design "rules" on Hadoop/Hbase client libraries (native API) on forward/backward compatibility? E.g., is that necessary to upgrade all the applications which are using any of those client libraries, when some updates happens on server's end.

或者在Hadoop/Hbase客户端库(本地API)上是否有关于前向/向后兼容性的设计“规则”?例如,当某些更新发生在服务器端时,有必要升级所有使用这些客户端库的应用程序吗?

1 个解决方案

#1


0  

Let me answer to myself:)

让我来回答我自己:

After 6 months of running, testing and development, we can confirm that backward compatibility of HBase client v1.1.x is quite well, and works smoothly with older HBase server such as 1.0.0-CDH 5.4.7.

经过6个月的运行、测试和开发,我们可以确认HBase client v1.1的向后兼容性。x运行得很好,与旧的HBase服务器(如1.0 - cdh 5.4.7)运行得很顺利。

#1


0  

Let me answer to myself:)

让我来回答我自己:

After 6 months of running, testing and development, we can confirm that backward compatibility of HBase client v1.1.x is quite well, and works smoothly with older HBase server such as 1.0.0-CDH 5.4.7.

经过6个月的运行、测试和开发,我们可以确认HBase client v1.1的向后兼容性。x运行得很好,与旧的HBase服务器(如1.0 - cdh 5.4.7)运行得很顺利。