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

problem

Apache’s drill executes the startup command drill-embedded

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

By java -versioncommand to view the version information is as follows:

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)

Solution

Open the bin directory of drill drill-config.shmodify the behavior of 396:

"$JAVA" -version 2>&1 | grep "version" | egrep -e "1/.4|1/.5|1/.6" > /dev/null

?the reason

Dril problem lies in the drill-config.shscript is a positive match jdk version, no decimal ‘.’ Escape.

reference

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


Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *