Anyone could help out of this error? The iceberg-a...
# troubleshooting
h
Anyone could help out of this error? The iceberg-aws jar is already in the lib/ file.
Copy code
Caused by: java.lang.NoSuchMethodError: 'java.lang.Long org.apache.iceberg.util.PropertyUtil.propertyAsNullableLong(java.util.Map, java.lang.String)'
	at org.apache.iceberg.aws.AwsProperties.<init>(AwsProperties.java:744) ~[iceberg-aws-1.1.0.jar:?]
	at org.apache.iceberg.aws.s3.S3FileIO.initialize(S3FileIO.java:355) ~[iceberg-aws-1.1.0.jar:?]
	at org.apache.iceberg.CatalogUtil.loadFileIO(CatalogUtil.java:295) ~[iceberg-flink-runtime-1.14-1.0.0.jar:?]
	at org.apache.iceberg.jdbc.JdbcCatalog.initialize(JdbcCatalog.java:98) ~[iceberg-flink-runtime-1.14-1.0.0.jar:?]
	at autox.sim.eval.datalake.CatalogUtil.initCatalog(CatalogUtil.java:26) ~[?:?]
	at autox.sim.eval.datalake.ImportMetricEvent.main(ImportMetricEvent.java:60) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
	at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:355) ~[flink-dist-1.17.0.jar:1.17.0]
	at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:222) ~[flink-dist-1.17.0.jar:1.17.0]
	at org.apache.flink.client.ClientUtils.executeProgram(ClientUtils.java:105) ~[flink-dist-1.17.0.jar:1.17.0]
	at org.apache.flink.client.deployment.application.ApplicationDispatcherBootstrap.runApplicationEntryPoint(ApplicationDispatcherBootstrap.java:301) ~[flink-dist-1.17.0.jar:1.17.0]
	... 13 more
c
what's the scope of the dependency?
d
NoSuchMethodError
is most likely a dependency version issue.
h
@Carlos Santos
Copy code
<dependency>
            <groupId>org.apache.iceberg</groupId>
            <artifactId>iceberg-aws</artifactId>
            <version>1.1.0</version>
        </dependency>
@Danny Cranmer I agree, I set the
classloader.resolve-order: parent-first
. I am not sure if it matters or not.
d
You should not need to drop the dependency in the lib folder if you are bundling into the job jar (assuming you are building an uber jar). Try to flip the config back to child first, remove the jar from the lib folder and bundle it into your Flink job jar