Add sanity check of $JAVA on startup

patch by Robert Stupp; reviewed by Michael Shuler for CASSANDRA-7676
This commit is contained in:
Jonathan Ellis 2014-10-09 07:24:19 -05:00
parent 87cbcc0fc1
commit fc0bb1520f
2 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,5 @@
2.0.11:
* Add sanity check of $JAVA on startup (CASSANDRA-7676)
* Schedule fat client schema pull on join (CASSANDRA-7993)
* Don't reset nodes' versions when closing IncomingTcpConnections
(CASSANDRA-7734)

View File

@ -98,6 +98,11 @@ else
JAVA=java
fi
if [ -z $JAVA ] ; then
echo Unable to find java executable. Check JAVA_HOME and PATH environment variables. > /dev/stderr
exit 1;
fi
# If numactl is available, use it. For Cassandra, the priority is to
# avoid disk I/O. Even for the purpose of CPU efficiency, we don't
# really have CPU<->data affinity anyway. Also, empirically test that numactl