You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/04 01:45:51 UTC

[GitHub] [beam] kennknowles opened a new issue, #19455: NoSuchMethodError when writing to BigTable

kennknowles opened a new issue, #19455:
URL: https://github.com/apache/beam/issues/19455

   In short, Beam is invoked and deprecated and removed function from Guava in its BigTable code. The method `Futures.addCallback(future, callback)` has been removed since guava-26.0.
   
   This is the guava commit that effectively removes the method https://github.com/google/guava/commit/87d87f5cac5a540d46a6382683722ead7b72d1b3#diff-5c3f56c125a86c8adde4e8754f104468. The deprecation notice is there since guava 22.0
   
   Beam is calling this method here https://github.com/apache/beam/blob/release-2.11.0/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigtable/BigtableServiceImpl.java#L230
   
   The PR in https://issues.apache.org/jira/browse/BEAM-4948 contains a possible fix, but it looks like it never got merged back.
   
   The bottom of a Dataflow stacktrace looks like
   ```
   
   Caused by: 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.beam.sdk.io.gcp.bigtable.BigtableServiceImpl$BigtableWriterImpl.writeRecord(BigtableServiceImpl.java:230)
   	at
   org.apache.beam.sdk.io.gcp.bigtable.BigtableIO$Write$BigtableWriterFn.processElement(BigtableIO.java:709)
   
   ```
   
   
   Imported from Jira [BEAM-6817](https://issues.apache.org/jira/browse/BEAM-6817). Original Jira may contain additional context.
   Reported by: jrglee.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org