You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brandon Williams (Jira)" <ji...@apache.org> on 2020/08/14 18:04:00 UTC
[jira] [Updated] (CASSANDRA-16051) sstablemetadata line 44: :
command not found
[ https://issues.apache.org/jira/browse/CASSANDRA-16051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brandon Williams updated CASSANDRA-16051:
-----------------------------------------
Bug Category: Parent values: Correctness(12982)
Complexity: Normal
Discovered By: User Report
Fix Version/s: 4.0-beta2
Severity: Low
Status: Open (was: Triage Needed)
[~snazy] CASSANDRA-9608 removed this code, can you take a look?
> 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
> Priority: Normal
> Fix For: 4.0-beta2
>
>
> 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: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org