Antonio Varela
07/14/2023, 8:27 PMCaused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.flink.kinesis.shaded.com.amazonaws.ClientConfiguration
I understand this error comes from the Java ClassLoader, where it can not find the .class file on the class path. I have several JVM's installed and have defined JAVA_HOME as part of the run configuration. The following sentences have no effect
env.add_jars("file:///<path>/flink-connector-kinesis-4.1.0-1.17.jar")
env.add_classpaths("file:///<path>/flink-connector-kinesis-4.1.0-1.17.jar")
If I examine the flink-connector-kinesis-4.1.0-1.17.jar file, the <http://org.apache.flink.kinesis.shaded.com|org.apache.flink.kinesis.shaded.com>.amazonaws.ClientConfiguration.class file it's there. I'm pretty sure I'm missing something obvious. Any hints will be very welcome. Thanks.Danny Cranmer
07/14/2023, 8:35 PMflink-sql-connector-kinesis-4.1.0-1.17.jar since it is an Uber jar that contains bundled transitive dependencies.Antonio Varela
07/14/2023, 10:55 PMMikhail Spirin
07/15/2023, 10:19 AMka.CfnApplicationV2.PropertyGroupProperty(
property_group_id="kinesis.analytics.flink.run.options",
property_map={
"jarfile": "waf-logs-dependencies-1.15.3.jar",
"python": "main.py"
}
)
And then in flink app, use application-properties json, if im not mistaken, dependencies are loaded via this zip fileDanny Cranmer
07/15/2023, 10:42 AMMikhail Spirin
07/15/2023, 11:19 AM