You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LakeFS Java SDK depends on okhttp 4.x. The apache spark docker image ships with okhttp 3.x. I've specifically seen this with the spark 3.5.2 image, using lakefs SDK 1.48.0
In this environment, branch creation calls fail with the following error:
Exception in thread "main" java.lang.NoSuchMethodError: 'okhttp3.RequestBody okhttp3.RequestBody.create(java.lang.String, okhttp3.MediaType)'
at io.lakefs.clients.sdk.ApiClient.serialize(ApiClient.java:955)
at io.lakefs.clients.sdk.ApiClient.buildRequest(ApiClient.java:1211)
at io.lakefs.clients.sdk.ApiClient.buildCall(ApiClient.java:1160)
at io.lakefs.clients.sdk.BranchesApi.createBranchCall(BranchesApi.java:332)
at io.lakefs.clients.sdk.BranchesApi.createBranchValidateBeforeCall(BranchesApi.java:347)
at io.lakefs.clients.sdk.BranchesApi.createBranchWithHttpInfo(BranchesApi.java:353)
at io.lakefs.clients.sdk.BranchesApi.access$500(BranchesApi.java:46)
at io.lakefs.clients.sdk.BranchesApi$APIcreateBranchRequest.execute(BranchesApi.java:415)
The lakefs Hadoop fs addresses this problem by shading the okhttp dependency. The SDK should take the same path to avoid this incompatibility.
The text was updated successfully, but these errors were encountered:
LakeFS Java SDK depends on okhttp 4.x. The apache spark docker image ships with okhttp 3.x. I've specifically seen this with the spark 3.5.2 image, using lakefs SDK 1.48.0
In this environment, branch creation calls fail with the following error:
The lakefs Hadoop fs addresses this problem by shading the okhttp dependency. The SDK should take the same path to avoid this incompatibility.
The text was updated successfully, but these errors were encountered: