[NO ISSUE][OTH] Fix sample cluster version check for latest Java 10 Change-Id: I51b93524d3ea1d342d48851d97ab21a2a9cb6720 Reviewed-on: https://asterix-gerrit.ics.uci.edu/2904 Sonar-Qube: Jenkins <jenk...@fulliautomatix.ics.uci.edu> Reviewed-by: Ian Maxon <ima...@apache.org> Tested-by: Jenkins <jenk...@fulliautomatix.ics.uci.edu> Integration-Tests: Jenkins <jenk...@fulliautomatix.ics.uci.edu>
Project: http://git-wip-us.apache.org/repos/asf/asterixdb/repo Commit: http://git-wip-us.apache.org/repos/asf/asterixdb/commit/722e85d0 Tree: http://git-wip-us.apache.org/repos/asf/asterixdb/tree/722e85d0 Diff: http://git-wip-us.apache.org/repos/asf/asterixdb/diff/722e85d0 Branch: refs/heads/master Commit: 722e85d0347e628da99b5e479f3a9a993e549b03 Parents: b5174d8 Author: Michael Blow <mb...@apache.org> Authored: Tue Aug 14 13:53:40 2018 -0700 Committer: Michael Blow <mb...@apache.org> Committed: Tue Aug 14 18:32:25 2018 -0700 ---------------------------------------------------------------------- .../asterix-server/src/main/opt/local/bin/start-sample-cluster.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/asterixdb/blob/722e85d0/asterixdb/asterix-server/src/main/opt/local/bin/start-sample-cluster.sh ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-server/src/main/opt/local/bin/start-sample-cluster.sh b/asterixdb/asterix-server/src/main/opt/local/bin/start-sample-cluster.sh index 944351d..51d25cb 100755 --- a/asterixdb/asterix-server/src/main/opt/local/bin/start-sample-cluster.sh +++ b/asterixdb/asterix-server/src/main/opt/local/bin/start-sample-cluster.sh @@ -39,7 +39,7 @@ if [ -z "$JAVA_HOME" -a -x /usr/libexec/java_home ]; then export JAVA_HOME fi -export JAVA_VERSION=$(java -version 2>&1 | head -1 | awk '{ print $NF }' | tr -d '"') +export JAVA_VERSION=$(java -version 2>&1 | head -1 | awk '{ print $3 }' | tr -d '"') case $JAVA_VERSION in 1.8*|1.9*|10*|11*) ;;