zjffdu commented on a change in pull request #3738:
URL: https://github.com/apache/zeppelin/pull/3738#discussion_r411891925
##########
File path: bin/common.sh
##########
@@ -62,6 +62,20 @@ fi
ZEPPELIN_CLASSPATH+=":${ZEPPELIN_CONF_DIR}"
+function check_java_version() {
+ java_ver_output=$("${JAVA:-java}" -version 2>&1)
+ jvmver=$(echo "$java_ver_output" | grep '[openjdk|java] version' | awk
-F'"' 'NR==1 {print $2}' | cut -d\- -f1)
+ JVM_VERSION=$(echo "$jvmver"|sed -e 's|^\([0-9]\+\)\..*$|\1|')
+ if [ "$JVM_VERSION" = "1" ]; then
+ JVM_VERSION=$(echo "$jvmver"|sed -e 's|^1\.\([0-9]\+\)\..*$|\1|')
+ fi
+
+ if [ "$JVM_VERSION" -lt 8 ] || ([ "$JVM_VERSION" -eq 8 ] && [
"${jvmver#*_}" -lt 151 ]) ; then
+ echo "Apache Zeppelin requires either Java 8 update 151 or newer"
Review comment:
Why need update 151 later ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]