Repository: incubator-samza Updated Branches: refs/heads/master aef99452e -> df8436ddb
SAMZA-377; switching run-class.sh to use java home instead of hard coding java Project: http://git-wip-us.apache.org/repos/asf/incubator-samza/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-samza/commit/df8436dd Tree: http://git-wip-us.apache.org/repos/asf/incubator-samza/tree/df8436dd Diff: http://git-wip-us.apache.org/repos/asf/incubator-samza/diff/df8436dd Branch: refs/heads/master Commit: df8436ddb0be1c3cdf495671c6e0384e0043cef3 Parents: aef9945 Author: Chris Riccomini <[email protected]> Authored: Wed Aug 20 14:21:42 2014 -0700 Committer: Chris Riccomini <[email protected]> Committed: Wed Aug 20 14:21:42 2014 -0700 ---------------------------------------------------------------------- samza-shell/src/main/bash/run-class.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-samza/blob/df8436dd/samza-shell/src/main/bash/run-class.sh ---------------------------------------------------------------------- diff --git a/samza-shell/src/main/bash/run-class.sh b/samza-shell/src/main/bash/run-class.sh index 8b04ed8..1473965 100755 --- a/samza-shell/src/main/bash/run-class.sh +++ b/samza-shell/src/main/bash/run-class.sh @@ -63,7 +63,7 @@ JAVA_TEMP_DIR=$base_dir/tmp # Check whether the JVM supports GC Log rotation, and enable it if so. function enable_gc_log_rotation { - `java -Xloggc:/dev/null $GC_LOG_ROTATION_OPTS -version 2> /dev/null` + `$JAVA -Xloggc:/dev/null $GC_LOG_ROTATION_OPTS -version 2> /dev/null` if [ $? -eq 0 ] ; then JAVA_OPTS="$JAVA_OPTS $GC_LOG_ROTATION_OPTS" fi @@ -71,7 +71,7 @@ function enable_gc_log_rotation { # Try and use 64-bit mode if available in JVM_OPTS function check_and_enable_64_bit_mode { - `java -d64 -version` + `$JAVA -d64 -version` if [ $? -eq 0 ] ; then JAVA_OPTS="$JAVA_OPTS -d64" fi
