cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Stupp (Jira)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-16051) sstablemetadata line 44: : command not found
Date Mon, 17 Aug 2020 11:44:00 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-16051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17178926#comment-17178926
] 

Robert Stupp commented on CASSANDRA-16051:
------------------------------------------

The chance is correct. The code went into {{cassandra.in.sh}}.

> 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


Mime
View raw message