numaflow-java icon indicating copy to clipboard operation
numaflow-java copied to clipboard

Support for building numaflow-java with openjdk17

Open RohanAshar opened this issue 1 year ago • 0 comments

Encounters the following exception. Not able to resolve epoll/kqueue Exception in thread "main" java.lang.UnsatisfiedLinkError: failed to load the required native library at io.netty.channel.epoll.Epoll.ensureAvailability(Epoll.java:81) at io.netty.channel.epoll.EpollEventLoop.<clinit>(EpollEventLoop.java:57) at io.netty.channel.epoll.EpollEventLoopGroup.newChild(EpollEventLoopGroup.java:189) at io.netty.channel.epoll.EpollEventLoopGroup.newChild(EpollEventLoopGroup.java:37)

Steps to reproduce.

  • Create a new maven project with just numaflow-java as a dependency
  • Have a docker file with arm64v8/openjdk:17 as base build and create a docker image
  • Deploy the image in a pipeline

Sample Dockerfile

FROM --platform=arm64 arm64v8/openjdk:17 as build
WORKDIR app
COPY target/numaflow-mdt-1.0-jar-with-dependencies.jar ./
ENTRYPOINT ["java", "-verbose:classes", "-jar", "numaflow-mdt-1.0-jar-with-dependencies.jar"]

RohanAshar avatar Oct 23 '24 02:10 RohanAshar