Apache Drill requires Java 1.7 or later to run

When i type

$ drillbit.sh start

he shows me this error:

ERROR: Java 1.7 or later is required to run Apache Drill.

although I have the latest version of java

$ java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

also my $ JAVA_HOME is set correctly in .profile

What can cause such a problem?

+4
source share
2 answers

Well, after a little investment, I found that the drill-config.sh configuration file is checking the java version with the wrong regular expression:

"$JAVA" -version 2>&1 | grep "version" | egrep -e "1.4|1.5|1.6" > /dev/null
if [ $? -eq 0 ]; then
   fatal_error "Java 1.7 or later is required to run Apache Drill."
fi

Regex "1.4" corresponds to 144, which is the update number in the java version I have. Therefore, floating point should avoid "1 \ .4"

And that finally solved my problem.

+8
source

Source: https://habr.com/ru/post/1683297/


All Articles