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

Łukasz Gajowy commented on BEAM-4154:
-------------------------------------

I'm not sure if this happens when using - the guava dependency in 
hadoop-input-format's build.gradle does not contain the 19 version, and the 
tests run fine when using Gradle (checked locally). Migrating performance tests 
Jenkins jobs to use gradle and dropping mvn support (both are happening right 
now) may solve the issue. If not, let's resume solving this after the migration.

> HadoopInputFormatIOIT fails due to NoSuchMethodError
> ----------------------------------------------------
>
>                 Key: BEAM-4154
>                 URL: https://issues.apache.org/jira/browse/BEAM-4154
>             Project: Beam
>          Issue Type: Bug
>          Components: testing
>            Reporter: Łukasz Gajowy
>            Assignee: Łukasz Gajowy
>            Priority: Major
>
> This happens on Jenkins recently. It seems to be a Guava version mismatch (19 
> vs 20 version).
> Stacktrace:
> [ERROR] 
> readUsingHadoopInputFormat(org.apache.beam.sdk.io.hadoop.inputformat.HadoopInputFormatIOIT)
>   Time elapsed: 2.798 s  <<< ERROR!
> java.lang.NoSuchMethodError: 
> com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
>       at 
> org.apache.beam.runners.core.construction.PTransformReplacements.getSingletonMainInput(PTransformReplacements.java:50)
>       at 
> org.apache.beam.runners.core.construction.PTransformReplacements.getSingletonMainInput(PTransformReplacements.java:41)
>       at 
> org.apache.beam.runners.dataflow.ReshuffleOverrideFactory.getReplacementTransform(ReshuffleOverrideFactory.java:53)
>       at org.apache.beam.sdk.Pipeline.applyReplacement(Pipeline.java:552)
>       at org.apache.beam.sdk.Pipeline.replace(Pipeline.java:288)
>       at org.apache.beam.sdk.Pipeline.replaceAll(Pipeline.java:209)
>       at 
> org.apache.beam.runners.dataflow.DataflowRunner.replaceTransforms(DataflowRunner.java:865)
>       at 
> org.apache.beam.runners.dataflow.DataflowRunner.run(DataflowRunner.java:656)
>       at 
> org.apache.beam.runners.dataflow.TestDataflowRunner.run(TestDataflowRunner.java:98)
>       at 
> org.apache.beam.runners.dataflow.TestDataflowRunner.run(TestDataflowRunner.java:90)
>       at 
> org.apache.beam.runners.dataflow.TestDataflowRunner.run(TestDataflowRunner.java:55)
>       at org.apache.beam.sdk.Pipeline.run(Pipeline.java:311)
>       at org.apache.beam.sdk.testing.TestPipeline.run(TestPipeline.java:346)
>       at org.apache.beam.sdk.testing.TestPipeline.run(TestPipeline.java:328)
>       at 
> org.apache.beam.sdk.io.hadoop.inputformat.HadoopInputFormatIOIT.readUsingHadoopInputFormat(HadoopInputFormatIOIT.java:141)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:498)
>       at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>       at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>       at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>       at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>       at 
> org.apache.beam.sdk.testing.TestPipeline$1.evaluate(TestPipeline.java:317)
>       at 
> org.apache.beam.sdk.testing.TestPipeline$1.evaluate(TestPipeline.java:317)
>       at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>       at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>       at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>       at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>       at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>       at 
> org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:410)
>       at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>       at java.lang.Thread.run(Thread.java:748)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to