confluentinc / ksql

The database purpose-built for stream processing applications.
https://ksqldb.io
Other
127 stars 1.04k forks source link

KSQLDB server unable to load UDFs built with Java 17 #9977

Open lets-crazy opened 1 year ago

lets-crazy commented 1 year ago

KSQLDB server version 0.28.2 by default uses Java 11 as the runtime, while our UDFs are built with Java 17 and have dependencies on Java 17 libraries. This causes the KSQLDB server to be unable to load our UDF JARs.

Is there a way to resolve this incompatibility? Some possible solutions:

Allow configuring the Java version used by KSQLDB server. Build a version of KSQLDB server that supports Java 17 as the runtime. Our UDFs work successfully when run directly with Java 17, so we believe the issue is with KSQLDB server's Java version.

We would appreciate any guidance on resolving this issue so we can load and use our Java 17 UDFs from KSQLDB. Upgrading KSQLDB server to use Java 17 as the runtime would be the most ideal solution for our use case.

lets-crazy commented 1 year ago

Allright! I turn to use java 11 !!!