If I execute the line by hand, it also hangs forever.
UPDATE: Using the java from Debian, I receive the error:
Error: Could not find or load main class .usr.share.elasticsearch.lib.elasticsearch-cli-7.4.0.jar
Caused by: java.lang.ClassNotFoundException: /usr/share/elasticsearch/lib/elasticsearch-cli-7/4/0/jar
I tested the installation, which succeeded, and the invocation of the JavaVersionChecker on a CentOS 7:
$ LANG=C /usr/share/elasticsearch/jdk/bin/java -cp /usr/share/elasticsearch/lib/* org.elasticsearch.tools.java_version_checker.JavaVersionChecker
Error: Could not find or load main class .usr.share.elasticsearch.lib.elasticsearch-cli-7.4.0.jar
Caused by: java.lang.ClassNotFoundException: /usr/share/elasticsearch/lib/elasticsearch-cli-7/4/0/jar
$ ls /usr/share/elasticsearch/lib/*
/usr/share/elasticsearch/lib/elasticsearch-7.4.0.jar
Could you please describe more what you are doing to setup the yum/apt repo which you install from? Something is very wrong with the exception you get in both cases; we don't specify a jar as the class. Could you also try running /usr/share/elasticsearch/bin/elasticsearch-env directly, and if that fails upload the contents here?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.