-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Pulsar Docker container fails to start on Apple M4 / Sequoia 15.2 with error "Pulsar requires Java 17 or later" #23891
Comments
@unreal91 I'm not able to reproduce with these instructions. It's some issue in your environment. Have you had a chance to try on a different computer? What happens when you run this command? docker run --rm apachepulsar/pulsar:4.0.2 java -version Please ensure that |
docker run --rm apachepulsar/pulsar:4.0.2 java -version Output for above command
I will try on a different machine, I am not sure whats the issue with my machine, it was working earlier and then stopped working, when it pulled new images using latest. What I did is downloaded the standalone binary zip, extracted it, created a dockerfile with FROM openjdk:24-jdk-slim and ran it using
dokcer-compose.yml
|
@unreal91 What Apple chip do you run on? Is it Apple M4? In that case, it could be this JVM bug: https://bugs.openjdk.org/browse/JDK-8345296 / corretto/corretto-21#85 . The workaround is to pass |
Does this command work: docker run -e "_JAVA_OPTIONS=-XX:UseSVE=0" --rm apachepulsar/pulsar:4.0.2 java -version |
This problem will be fixed in Pulsar 4.0.3 docker images which will include a Corretto version that includes the fix for JDK-8345296. |
@lhotari thank you for the workaround, yes I am running on Apple M4 chip, and the command |
Search before asking
Read release policy
Version
Running on docker in Mac OS Version 15.2
Version: 27.4.0
Context: desktop-linux
Pulsar versions 3.3.2, 4.0.2
Minimal reproduce step
When we run command
docker run -it -p 6650:6650 -p 8080:8080 --mount source=pulsardata,target=/pulsar/data --mount source=pulsarconf,target=/pulsar/conf apachepulsar/pulsar:4.0.2 bin/pulsar standalone
Error is as below:
Error: Pulsar requires Java 17 or later.
Below docker compose also fails
What did you expect to see?
Run pulsar as normal.
What did you see instead?
Error is as below:
Error: Pulsar requires Java 17 or later.
Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: