rmetzger commented on pull request #12846:
URL: https://github.com/apache/flink/pull/12846#issuecomment-661054981


   Answering my own question: It seems that I need to add 
   ```
        <dependencyManagement>
                <dependencies>
                        <dependency>
                                <!-- This is the way we get a consistent set of 
versions of the Google tools -->
                                <groupId>com.google.cloud</groupId>
                                <artifactId>libraries-bom</artifactId>
                                <version>8.0.0</version>
                                <type>pom</type>
                                <scope>import</scope>
                        </dependency>
                </dependencies>
        </dependencyManagement>
   ``` 
   to my own project now.
   Without it, I get the following error message:
   ```
   Caused by: java.lang.AbstractMethodError: Receiver class 
com.google.api.gax.grpc.InstantiatingGrpcChannelProvider does not define or 
inherit an implementation of the resolved method 'abstract 
com.google.api.gax.rpc.TransportChannelProvider 
withExecutor(java.util.concurrent.Executor)' of interface 
com.google.api.gax.rpc.TransportChannelProvider.
        at com.google.api.gax.rpc.ClientContext.create(ClientContext.java:140)
        at 
com.google.cloud.pubsub.v1.stub.GrpcPublisherStub.create(GrpcPublisherStub.java:195)
        at com.google.cloud.pubsub.v1.Publisher.<init>(Publisher.java:187)
        at com.google.cloud.pubsub.v1.Publisher.<init>(Publisher.java:88)
        at 
com.google.cloud.pubsub.v1.Publisher$Builder.build(Publisher.java:798)
        at 
org.apache.flink.streaming.connectors.gcp.pubsub.PubSubSink.open(PubSubSink.java:130)
   ```
   
   Can't we somehow define the libraries-bom as the "default" bom?
   If we can't, then we should update the pubsub connector's documentation page


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to