StreamSets

StreamSets

Connect with experts and peers to elevate technical expertise, solve problems and share insights.

 View Only

Transformer official Docker image with JDK 11 keeps failing

  • 1.  Transformer official Docker image with JDK 11 keeps failing

    Posted Wed June 14, 2023 09:44 PM

    If you download Transformer docker image from the official repository and without making any changes to the image, the container repeatedly fails with an error message similar to:

    ERROR: Detected JDK that is no longer supported by Transformer versions with Scala 2.12. Please upgrade to JDK11

    Create a dummy docker container with a bash entry point:

    docker run -it --entrypoint=/bin/bash streamsets/transformer:scala-2.12_5.4.0

    Confirm that Java is installed by checking if $JAVA_HOME is installed:

    echo $JAVA_HOME

    Try to check the Java version by running:

    /opt/java/openjdk/bin/java -version

    If you get an error like:

    [0.005] [warning] [os, thread] Failed to start thread "GC Thread‡O" - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.

    #

    # There is insufficient memory for the Java Runtime Environment to continue.

    # Cannot create worker GC thread. Out of system resources.

    # An error report file with more information is saved as:

    # /tmp/hs_err_pid7.log

    This does not mean that your container is running into an OOM error. This is an issue in older Docker client versions.

    Upgrade your Docker client to 20.10.x or above. After the upgrade the container should start without issues.