Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Cannot Reproduce
-
None
-
Correctness
-
Low
-
Normal
-
User Report
-
All
-
None
Description
sstablemetadata shipped with 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