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

Tamas Penzes commented on HIVE-22205:
-------------------------------------

[~ngangam] Hive upstream master uses a very old HBase version (2.0.0-alpha4) 
see: [https://github.com/apache/hive/blob/master/pom.xml#L158] .

In HBase code we set up a ZooKeeper minicluster the following way: 
[https://github.com/apache/hbase/blob/rel/2.0.0/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java#L172]

But from ZooKeeper 3.5.3-beta we have to whitelist the four letter words we 
want to use. See 
[https://zookeeper.apache.org/doc/r3.5.5/zookeeperAdmin.html#sc_clusterOptions]

In HBase we have patched this test setup in HBASE-21203, which means you have 
to use HBase version 
[2.2.0|https://issues.apache.org/jira/issues/?jql=project+%3D+HBASE+AND+fixVersion+%3D+2.2.0],
 
[2.1.1|https://issues.apache.org/jira/issues/?jql=project+%3D+HBASE+AND+fixVersion+%3D+2.1.1],
 
[2.0.3|https://issues.apache.org/jira/issues/?jql=project+%3D+HBASE+AND+fixVersion+%3D+2.0.3]
 or above.

There we have the following line added to test setup: 
[https://github.com/apache/hbase/blob/master/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java#L428]

This way HBase testing and Hive should work with the new ZooKeeper (and 
Curator) together.

 

Even without this ticket I would any way support the idea using a newer version 
of HBase and not an alpha version. HBase 2.0.x is deprecated anyway, so please 
use 2.1.x or 2.2.1 from Hive.

 

> Upgrade zookeeper and curator versions
> --------------------------------------
>
>                 Key: HIVE-22205
>                 URL: https://issues.apache.org/jira/browse/HIVE-22205
>             Project: Hive
>          Issue Type: Improvement
>          Components: HiveServer2
>    Affects Versions: 4.0.0
>            Reporter: Naveen Gangam
>            Assignee: Naveen Gangam
>            Priority: Minor
>         Attachments: HIVE-22205.2.patch, HIVE-22205.patch
>
>
> Other components like hadoop have switched to using new ZK versions. So these 
> jars end up in classpath for hive services and could cause issues due to 
> in-compatible curator versions that hive uses.
> So it makes sense for hive to upgrade the ZK and curator versions to try to 
> keep up.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to