[ISSUE] (TEPHRA-150) Tephra Guava version

4 views
Skip to first unread message

Thomas D'Silva (JIRA)

unread,
Nov 18, 2015, 6:56:22 PM11/18/15
to tephr...@googlegroups.com
Thomas D'Silva created an issue
 
Tephra / New Feature TEPHRA-150
Tephra Guava version
Issue Type: New Feature New Feature
Assignee: Poorna Chandra
Created: 18/Nov/15 3:54 PM
Priority: Major Major
Reporter: Thomas D'Silva

Phoenix uses guava version 12.0.1 (which is the same version that HBase uses), while tephra requires 13.0.1 or else our transaction tests fail when
trying to create a zookeeper client which is needed to create the
transaction manager.

ava.lang.NoClassDefFoundError:
com/google/common/util/concurrent/Service$Listener
at org.apache.twill.internal.zookeeper.DefaultZKClientService.<init>(DefaultZKClientService.java:98)
at org.apache.twill.zookeeper.ZKClientService$Builder.build(ZKClientService.java:101)
at org.apache.phoenix.query.BaseTest.setupTxManager(BaseTest.java:525)
at org.apache.phoenix.query.BaseTest.checkClusterInitialized(BaseTest.java:548)
at org.apache.phoenix.query.BaseTest.setUpTestDriver(BaseTest.java:608)
at org.apache.phoenix.query.BaseTest.setUpTestDriver(BaseTest.java:604)
at org.apache.phoenix.end2end.BaseHBaseManagedTimeIT.doSetup(BaseHBaseManagedTimeIT.java:54)

Would it be possible to use version 12.0.1? This would make deployment of the transaction manager on our cluster easier.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.1.5#6160-sha1:a61a0fc)
Atlassian logo

Thomas D'Silva (JIRA)

unread,
Nov 18, 2015, 6:56:24 PM11/18/15
to tephr...@googlegroups.com
Phoenix uses guava version 12.0.1 (which is the same version that HBase uses), while tephra requires 13.0.1 or else our transaction tests fail when
trying to create a zookeeper client which is needed to create the
transaction manager.

ava.lang.NoClassDefFoundError:
com/google/common/util/concurrent/Service$Listener
at org.apache.twill.internal.zook...

James Taylor (JIRA)

unread,
Nov 18, 2015, 7:38:22 PM11/18/15
to tephr...@googlegroups.com
James Taylor commented on an issue
 
Re: Tephra Guava version

Curious too, Poorna Chandra, how you deal with this wrt HBase on the server side? We've run into issues in the past when our Guava jar doesn't match the HBase one (and HBase is in turn dependent on the version of Guava in HDFS).

Alvin Wang (JIRA)

unread,
Nov 18, 2015, 8:02:21 PM11/18/15
to tephr...@googlegroups.com
Alvin Wang commented on an issue
 
Re: Tephra Guava version

Thomas D'Silva: Currently there are libraries which depend on tephra-core, tephra-hbase-compat-* using Guava 13.0.1 which prevents us from using any other version of Guava.

James Taylor: I'm not the most familiar with this issue, but I don't think we have any special handling for this in CDAP. Would like Poorna Chandra to comment.

Poorna Chandra (JIRA)

unread,
Nov 18, 2015, 10:19:21 PM11/18/15
to tephr...@googlegroups.com
Poorna Chandra commented on an issue
 
Re: Tephra Guava version

HBase co-processor code does not use any guava-13 features. Hence things work fine on server side.

Thomas D'Silva Is the above exception only while running test cases? In that case can you add a direct guava-13 test dependency to your pom? This should load guava-13 only for running tests. Let's see if that works.

James Taylor (JIRA)

unread,
Nov 20, 2015, 12:51:22 AM11/20/15
to tephr...@googlegroups.com
James Taylor commented on an issue
 
Re: Tephra Guava version

Although this surfaced in testing, it's not a test-only issue as we'd see the same error in a real environment when we start the transaction manager client. I think we'll be ok by including the newer Guava version on the client side, but relying on the Guava version used by HBase on the server side. Feel free to close this.

Poorna Chandra (JIRA)

unread,
Nov 23, 2015, 7:03:24 PM11/23/15
to tephr...@googlegroups.com
Poorna Chandra commented on an issue
 
Re: Tephra Guava version

Twill's Zookeeper client implementation used by Tephra depends on Guava 13 specific classes. If we have to downgrade the Guava version, then we'll need a new release of Twill. Since we can workaround this issue by updating the client Guava version, I'm going to close this JIRA now.

Poorna Chandra (JIRA)

unread,
Nov 23, 2015, 7:03:24 PM11/23/15
to tephr...@googlegroups.com
Poorna Chandra resolved an issue as Won't Fix
Change By: Poorna Chandra
Status: Open Resolved
Resolution: Won't Fix
Reply all
Reply to author
Forward
0 new messages