Comments (3)
Fixed by:
#118
Thanks for reporting.
from confluent-cli.
The fact that JAVA_HOME
points to a different JDK version than the java
command that is found in your PATH
of executable (bin) commands reveals a misconfiguration of java in your system, not a bug here.
Initially we made the decision not to try and guess which exactly java version a user needs to use. Before changing the code in Confluent CLI you should consider one of the several options to set the default java, depending on your operating system. A few examples are:
- update-java-alternatives
- jenv
- set both
JAVA_HOME
andPATH
to point to the same JDK version - other options ...
Another advantage of using the java
that is found in your PATH instead of your JAVA_HOME
(again it's the user's responsibility to have these settings point to the same JDK) is that the chances of java
and sudo java
being the same are higher.
Nevertheless, given that most java services in Confluent platform check first if JAVA_HOME
is set we could extend Confluent CLI to do the same and align it with what the rest of the services do.
from confluent-cli.
The fact that
JAVA_HOME
points to a different JDK version than thejava
command that is found in yourPATH
of executable (bin) commands reveals a misconfiguration of java in your system, not a bug here.
This is incorrect. It is not uncommon to have multiple versions of java installed on a system, and for program (a) to require a different version than program (b). Only one of these can be the "system java" which will run by default when executing java
from the PATH. Using the alternatives mechanism changes the JVM for every process, not just the process that is the odd-man-out and needs an older version of the JDK for some reason (such as Confluent).
This is the whole reason why so many scripts, including Kafka itself as well as the run scripts produced by gradle, as well as gradle and maven and pretty much every other java-launching shell script on the planet, consult JAVA_HOME
before falling back to the system java on the PATH
-- to allow for the user to tell a particular process to use a version of java different than the system java. If the world were simple and every process could just use the system default java, that would be great, but that's just not reality (and will be even less so now with the increased java release cadence).
I appreciate the "nevertheless" and the fix, but would like to emphasize this not a misconfiguration but completely intentional and a normal situation in the java world.
from confluent-cli.
Related Issues (20)
- confluent connect fail to start
- confluent status does not report the status of Zookeeper started by zookeeper-server-start
- Confluent CLI and Java 11 HOT 3
- Is this repository deprecated? HOT 1
- ERROR [main] found topic=_confluent-controlcenter
- Confluent CLI can't support arm64 HOT 2
- uent HOT 1
- Filing issues for the new proprietary Confluent CLI HOT 2
- Invoking "confluent local services start" fails (requires Java version 1.8 or 1.11) with OpenJDK 14.0.2 HOT 1
- Printed to "failed to start". But is UP. It's not Down. HOT 4
- Error: macOS version >= 10.13 is required using Big Sur HOT 5
- Kafka service goes down and never up again.
- Doesn't support M1 Mac HOT 6
- Getting available versions S3 hangs on no connectivity HOT 2
- confluent local services start exit status 1
- Unable to start confluent on my local HOT 2
- Invalid connector class. Check the connector configuration file. -- More details needed HOT 2
- Error creating a api-key to my ksqldb resource
- Error changing environments
- Misleading error output when not logged in HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from confluent-cli.