Skip to content

Support for building numaflow-java with openjdk17 #148

@RohanAshar

Description

@RohanAshar

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"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions