Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-1411

Unable to downgrade to lower guava version after upgrade to beam-0.5

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Not A Problem
    • 0.5.0
    • Not applicable
    • sdk-java-core

    Description

      While testing upgrading to 0.5 version of beam we ran into NoSuchMethodErrors

      java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V
       at org.apache.beam.sdk.io.hdfs.HDFSFileSource$SerializableSplit.<init>(HDFSFileSource.java:473)
       at org.apache.beam.sdk.io.hdfs.AvroHDFSFileSource$1.apply(AvroHDFSFileSource.java:81)
       at org.apache.beam.sdk.io.hdfs.AvroHDFSFileSource$1.apply(AvroHDFSFileSource.java:78)
       at com.google.common.collect.Lists$TransformingRandomAccessList.get(Lists.java:451)
       at java.util.AbstractList$Itr.next(AbstractList.java:358)
       at org.apache.beam.runners.direct.BoundedReadEvaluatorFactory$InputProvider.getInitialInputs(BoundedReadEvaluatorFactory.java:202)
       at org.apache.beam.runners.direct.RootProviderRegistry.getInitialInputs(RootProviderRegistry.java:65)
       at org.apache.beam.runners.direct.ExecutorServiceParallelExecutor.start(ExecutorServiceParallelExecutor.java:168)
       at org.apache.beam.runners.direct.DirectRunner.run(DirectRunner.java:329)
       at org.apache.beam.runners.direct.DirectRunner.run(DirectRunner.java:71)
       at org.apache.beam.sdk.Pipeline.run(Pipeline.java:178)
       at org.apache.beam.sdk.testing.TestPipeline.run(TestPipeline.java:258)
      

      This seems to be caused by the HDFS IO components guava dependency not being shaded - in contrast to the core components - and revealed by the recent update to guava-20.0 and the therefore incorporated api changes made by overloading methods

      Did not check, whether more components are affected to.

      Attachments

        Issue Links

          Activity

            People

              davor Davor Bonaci
              michel Michael Luckey
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: