Itai Admi
12/08/2021, 10:17 AMhadoop-lakefs
and io.lakefs.api-client
version 0.44.0
Unfortunately,
The internal hadoop-lakefs
library is using io.lakefs.api-client
version 0.40.3 which cause collision and errors like:
16:09:36 Caused by: java.lang.NoSuchMethodError: io.lakefs.clients.api.ObjectsApi.listObjects(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;)Lio/lakefs/clients/api/model/ObjectStatsList;
Do you have an idea of how we can solve it? I saw that the latest haddop-lakefs lib still using 0.40.3
The reason we’ve upgraded to 0.44.0 is to use the diff prefix feature introduced after the 0.40.3 versionItai Admi
12/08/2021, 10:23 AMhadoop-lakefs
to work with the latest api client. I’m working on fixing and releasing it now.
Unfortunately, the swagger generator for Java creates a new function call with every new (even optional) param added to the api. It means you may need to go over your code using the client and add or shift places for some of the params to the function calls. It doesn’t mean that the lakeFS api isn’t backward compatible, it is and it will continue to serve the same functionality as before.Ori Adijes
12/08/2021, 10:29 AMYoni Augarten
12/08/2021, 10:35 AMYoni Augarten
12/08/2021, 10:35 AMItai Admi
12/08/2021, 4:52 PMhadoop-lakefs
version 0.1.4 with the api-client
version 0.56.0
. It’s available as a maven dependency so feel free to use it and let us know if it solved your problem (may not be visible in the maven portal since it takes some time for it to update).Ori Adijes
12/09/2021, 11:48 AM