Setting up a second instance of ES 6.7.2 on RHEL 6.10

All,
I am trying to set up a second instance of ES 6.7.2 on a single node( RHEL 6.10) using the tar.gz archive file. We already have the first instance using the RPM package and is working fine. We have to set up another instance to support our QA. I configured the elastcisearch.yml to use a different http and tcp port than the first set up and when I try to run the ./bin/elasticsearch from the $ES_HOME as the elasticsearch user, I get the following error "Could not find or load main class org.elasticsearch.tools.java_version_checker.JavaVersionChecker". I found a similar thread here Error: Could not find or load main class org.elasticsearch.tools.JavaVersionChecker and followed the same steps, but still get the same error. This is what see when running the bash -x./elasticsearch command

I am not running the ./bin//elasticsearch as root user. The error is when I run it using the elasticsearch user. The permissions on all the folders are as follows.

drwxr-xr-x  2 elasticsearch elasticsearch   4096 Jun 26 15:28 config
drwxr-xr-x  9 elasticsearch elasticsearch   4096 Jun 25 14:34 .
drwx------  2 elasticsearch elasticsearch   4096 Jun 25 14:34 data
drwxr-xr-x  3 elasticsearch elasticsearch   4096 Jun 25 14:24 bin
drwx------  3 root          root            4096 Jun 25 14:24 ..
drwxr-xr-x 31 elasticsearch elasticsearch   4096 Apr 29 04:08 modules
drwxr-xr-x  3 elasticsearch elasticsearch   4096 Apr 29 04:08 lib
drwxr-xr-x  2 elasticsearch elasticsearch   4096 Apr 29 04:08 logs
-rw-r--r--  1 elasticsearch elasticsearch 427502 Apr 29 04:08 NOTICE.txt
drwxr-xr-x  2 elasticsearch elasticsearch   4096 Apr 29 04:08 plugins
-rw-r--r--  1 elasticsearch elasticsearch  13675 Apr 29 04:03 LICENSE.txt
-rw-r--r--  1 elasticsearch elasticsearch   8519 Apr 29 04:03 README.textile

++ dirname ./elasticsearch
+ source ./elasticsearch-env
++ set -e -o pipefail
++ CDPATH=
++ SCRIPT=./elasticsearch
++ '[' -h ./elasticsearch ']'
+++ dirname ./elasticsearch
++ ES_HOME=.
+++ cd .
+++ pwd
++ ES_HOME=/es_clusters/qa2/elasticsearch-6.7.2/bin
+++ basename /es_clusters/qa2/elasticsearch-6.7.2/bin
++ '[' bin '!=' bin ']'
+++ dirname /es_clusters/qa2/elasticsearch-6.7.2/bin
++ ES_HOME=/es_clusters/qa2/elasticsearch-6.7.2
++ ES_CLASSPATH='/es_clusters/qa2/elasticsearch-6.7.2/lib/*'
++ '[' -x /apps/java/bin/java ']'
++ JAVA=/apps/java/bin/java
++ '[' '!' -x /apps/java/bin/java ']'
++ '[' '!' -z '' ']'
++ '[' '!' -z '' ']'
++ /apps/java/bin/java -cp '/es_clusters/qa2/elasticsearch-6.7.2/lib/*' org.elasticsearch.tools.java_version_checker.JavaVersionChecker
Error: Could not find or load main class org.elasticsearch.tools.java_version_checker.JavaVersionChecker

I am clueless at this point. I am trying to run this from a totally different directory path (something like /es_clusters/qa2/elasticsearch-6.7.2)

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.