Error using SpannerIO in apache beam

前端 未结 2 922
感动是毒
感动是毒 2021-01-14 17:49

This question is a follow-up to this one. I am trying to use apache beam to read data from a google spanner table (and then do some data processing). I wrote the following m

2条回答
  •  我在风中等你
    2021-01-14 18:44

    This issue is most likely caused by a dependency compatibility problem described here: BEAM-2837. Here's a quick workaround described in one of the comments in the JIRA issue:

    
        com.google.api.grpc
        grpc-google-common-protos
        0.1.9
    
    
    
        org.apache.beam
        beam-sdks-java-io-google-cloud-platform
        ${beam.version}
        
            
                com.google.api.grpc
                grpc-google-common-protos
            
        
    
    

    Explicitly define the required com.google.api.grpc dependency and exclude the version from org.apache.beam.

提交回复
热议问题