question

manjumsn.swamy_186206 avatar image
manjumsn.swamy_186206 asked Erick Ramirez edited

Trying to take snapshot, getting "Java executable not found (hint: set JAVA_HOME)"

Am getting error we have 8 node cluster previously now recently we added another 8 nodes so am facing issue from node1 am trying to take snapshot using pssh ,but whatever newer nodes giving error ==20:00:01 [FAILURE] root@10.253.173.112 Exited with error code 1 Stderr: which: no java in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) Java executable not found (hint: set JAVA_HOME)

but older nodes able to take snapshot , but newely added nodes failing

error ==20:00:01 [FAILURE] root@10.253.173.112 Exited with error code 1 Stderr: which: no java in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) Java executable not found (hint: set JAVA_HOME)

java
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

steve.lacerda avatar image
steve.lacerda answered

That looks like an issue with your java installation. It's looking for the java executable in your $PATH:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin

But fails to find it. Try setting your JAVA_HOME variable per this document:

https://javarevisited.blogspot.com/2012/02/how-to-set-javahome-environment-in.html

Either way, this is a java issue and not a DSE/Cassandra issue.

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.