错误信息如下
yhu@YuCheng-Hu:~/apache-druid-0.21.1/bin$ ./start-nano-quickstartDruidonlyofficially supports Java8.AnyJava version later than8isstill experimental. Yourcurrentversionis:11.0.11.If you believe thischeckisinerrororyou still wanttoproceedwithJava version other than8,you canskipthischeckusingan environment variable: export DRUID_SKIP_JAVA_CHECK=1Otherwise, install Java8andtry again.This script searchesforJava8in3locationsinthe followingorder*DRUID_JAVA_HOME*JAVA_HOME*java (installedonPATH)
![](https://img.haomeiwen.com/i11221089/66d29f4a4140432f.png)
这个其实不是问题,出现上面提示的原因就是 Druid 在安装的时候需要校验 Java 的版本。
因为 Druid 是在 Java 8 上编译的,虽然 11 的版本也能够运行。但是会提示上面的错误。
如果你是运行 JDK 11 的版本的话,请运行命令:
export DRUID_SKIP_JAVA_CHECK=1
然后再次尝试运行就可以了。
https://www.ossez.com/t/druid-java/13618
[/successbox]
网友评论