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

suryansh agnihotri commented on TEZ-4074:
-----------------------------------------

[~abstractdog] I faced an similar issue while running test of 0.10.0 with 
hadoop 3.1.2.

{code}[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
2.016 s <<< FAILURE! - in org.apache.tez.common.TestTezCommonUtils[ERROR] Tests 
run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.016 s <<< FAILURE! 
- in org.apache.tez.common.TestTezCommonUtils[ERROR] 
org.apache.tez.common.TestTezCommonUtils  Time elapsed: 2.013 s  <<< 
ERROR!java.lang.NoSuchMethodError: 
com.google.common.util.concurrent.Futures.addCallback(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/FutureCallback;)V
 at 
org.apache.tez.common.TestTezCommonUtils.setup(TestTezCommonUtils.java:65)\{code}

I verified that tez 0.10 uses guava "27.0-jre" and hadoop 3.1.2 also uses the 
same version and that particular method is removed from guava 

[https://guava.dev/releases/27.0-jre/api/docs/com/google/common/util/concurrent/Futures.html#addCallback-com.google.common.util.concurrent.ListenableFuture-com.google.common.util.concurrent.FutureCallback-java.util.concurrent.Executor-|guava-27.0]

I see the same issue in master too.

> Tez does not run with Hadoop Trunk (3.3.0-snapshot)
> ---------------------------------------------------
>
>                 Key: TEZ-4074
>                 URL: https://issues.apache.org/jira/browse/TEZ-4074
>             Project: Apache Tez
>          Issue Type: Bug
>            Reporter: Ahmed Hussein
>            Priority: Major
>
> Tez throws a runtime exception when compiled against Hadoop-3.3.0.
> With Tez running Guava (11.0.2) and Hadoop eunning Guava 27.0-jre (see 
> HADOOP-16210), there is an incompatibility of Guava library.
> {code:java}
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.136 
> s <<< FAILURE! - in org.apache.tez.dag.app.TestSpeculation
> [ERROR] org.apache.tez.dag.app.TestSpeculation Time elapsed: 0.136 s <<< 
> ERROR!
> java.lang.NoSuchMethodError: 
> com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V
> at 
> org.apache.tez.dag.app.TestSpeculation.setupSpeculation(TestSpeculation.java:86)
> {code}
> It looks like guava added single parameter optimizations which breaks 
> compatibility with {{VAR_ARGS}}. So, even though it shows source 
> compatibility it is throwing a runtime error due to binary incompatibility.



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

Reply via email to