Skip to content
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

Error: the Confluent CLI requires Java version 1.8 or 1.11. #2612

Closed
LauroSilveira opened this issue Feb 12, 2024 · 3 comments · Fixed by #2613
Closed

Error: the Confluent CLI requires Java version 1.8 or 1.11. #2612

LauroSilveira opened this issue Feb 12, 2024 · 3 comments · Fixed by #2613

Comments

@LauroSilveira
Copy link

Hello,
When I execute confluent local services start I am facing the error:

The local commands are intended for a single-node development environment only, NOT for production usage. See more: https://docs.confluent.io/current/cli/index.html As of Confluent Platform 8.0, Java 8 will no longer be supported.

Using CONFLUENT_CURRENT: /var/folders/65/yd73hltj4_lc72d20ppndnsm0000gn/T/confluent.957436
ZooKeeper is [UP]
Kafka is [UP]
Error: the Confluent CLI requires Java version 1.8 or 1.11.
See https://docs.confluent.io/current/installation/versions-interoperability.html .
If you have multiple versions of Java installed, you may need to set JAVA_HOME to the version you want Confluent to use.

I am using the following Java aversion:

openjdk version "17.0.9" 2023-10-17 OpenJDK Runtime Environment Homebrew (build 17.0.9+0) OpenJDK 64-Bit Server VM Homebrew (build 17.0.9+0, mixed mode, sharing)

My operational system is a MacBook Pro MacOS 13.6.4.
And at last I am downloaded conluent-7.6.0.
Please can you help me?

Kind regards

@brianstrauch
Copy link
Member

Looks like we can remove that limitation. It's based on an if statement that was added 5 years ago: https://github.com/confluentinc/confluent-cli/blob/master/src/ccs/confluent.sh#L1035-L1041. I'll open a PR for this right away, thanks!

@LauroSilveira
Copy link
Author

Good evening @brianstrauch, thank you for the response.

@javaHelper
Copy link

I am not clear on how to fix this issue? I'm getting the same issue reported here: https://stackoverflow.com/questions/78323808/unable-to-start-confluent-kafka-7-6-0-using-java-17?noredirect=1#comment138107334_78323808. Please guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants