alexott commented on a change in pull request #3738:
URL: https://github.com/apache/zeppelin/pull/3738#discussion_r411901497
##########
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:
I selected 151 as it has unlimited security policy by default, and also
had many security fixes (although 181+ is even better). I can remove this
specific requirement
----------------------------------------------------------------
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]