-
Notifications
You must be signed in to change notification settings - Fork 322
Google API Client Library version 1.23.0 causes runtime problems with Dataflow Java SDK #607
Comments
We've had the same problem. Except for us, it was with the the BigQuery API that we were bringing into our project. Removing it fixed it (Beam has a dependancy in it anyway). |
We're also experiencing issues during file staging. Before the attempt to upload files is made, we receive this error: Accessing the HTTP resource specified will return JSON data, within which there is an error with message |
We had the same issue and we can confirm that as @moandcompany suggest, this fixes it:
For the record, our stack trace is pretty similar. We are running 2.2.0 snapshot version of apache beam:
|
I got similar problem. Here's the API response.
|
Google added support to reject jobs from being created with this issue to prevent users from starting malformed jobs. |
The root cause for the 404's is outlined at googleapis/google-api-java-client#1073. Hilariously, you can't get to the error rejecting the job for bad dependencies until you've cleared up the staging problem (in our case by upgrading to com.google.apis:google-api-services-storage:v1-rev115-1.23.0 ). Is there another problem that's causing the job rejection? We're being forced to 1.23.0 by a bug in another Google API so this puts us between a rock and a hard place because lol @ Java versioning on Maven. |
+1 happening to us too. Is there any suggested remedy? |
The Cloud Dataflow team has added a page on Dataflow SDK and Worker Dependencies that identifies the google-api-client 1.22.0 version requirement (Java) |
That is a useful link, but not really a solution for those of us like @frew who need to use |
I also have this issue |
any updates? Im running into this issue |
same here. apache beam 2.3.0 with dataflowrunner having the same 404 error. A permanent fix would be ideal. Thanks. |
We encountered this as well. We're on Scio 0.5.5-beta1 and attempted to force the version to
|
I have the same problem. Google forces moving out of storage@v1. Add |
@dsquier omg thank you. I was battling dependencyOverrides for a while and didn't think about force. |
I was redirected here from google because I was using the
|
After analyzing my dependencies and checking the error, I was able to fix this by forcing the version of google-api-services-dataflow to v1b3-rev221-1.22.0 (and of course setting google-api-client to version 1.22.0) Only setting google-api-client to the old version wasn't enough for me since I had the following error thrown:
when trying to compile my dataflow template |
For anyone else still seeing issues like this, check out the version numbers here and make sure you aren't importing a conflicting dependency. |
Now Beam 2.5.0 depends on |
The new Google API Client Library, version 1.23.0, appears to cause problems with the Dataflow Java SDK when submitting and/or running jobs.
This appears to affect Dataflow Java SDKs in both major version families (e.g. 1.9.1, 2.0.0, and 2.1.0)
In some cases, these problems manifest as
404 HTTP
errors when attempting to upload staging filesWorkaround:
Pinning Google API Client Library dependencies to version 1.22.0 appears to avoid this issue
com.google.api-client:google-api-client:1.22.0
Gradle Example:
Maven Example:
The text was updated successfully, but these errors were encountered: