Arvinder Singh created CASSANDRA-16051:
------------------------------------------
Summary: sstablemetadata line 44: : command not found
Key: CASSANDRA-16051
URL: https://issues.apache.org/jira/browse/CASSANDRA-16051
Project: Cassandra
Issue Type: Bug
Components: Tool/sstable
Reporter: Arvinder Singh
sstablemetadata shipped with
[4.0-beta|https://issues.apache.org/jira/issues/?jql=project+%3D+CASSANDRA+AND+fixVersion+%3D+4.0-beta]
is missing the code "#Use JAVA_HOME if set, otherwise look for java in PATH"
and report error:
sstablemetadata: line 44: : command not found
The fix is to merge below code from 3.x:
^# Use JAVA_HOME if set, otherwise look for java in PATH^
^if [ -x "$JAVA_HOME/bin/java" ]; then^
^JAVA="$JAVA_HOME/bin/java"^
^else^
^JAVA="`which java`"^
^fi^
^if [ "x$JAVA" = "x" ]; then^
^echo "Java executable not found (hint: set JAVA_HOME)" >&2^
^exit 1^
^fi^
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]