錯誤信息如下
yhu@YuCheng-Hu:~/apache-druid-0.21.1/bin$ ./start-nano-quickstart
Druid only officially supports Java 8. Any Java version later than 8 is still experimental. Your current version is: 11.0.11.
If you believe this check is in error or you still want to proceed with Java version other than 8,
you can skip this check using an environment variable:
export DRUID_SKIP_JAVA_CHECK=1
Otherwise, install Java 8 and try again.
This script searches for Java 8 in 3 locations in the following
order
* DRUID_JAVA_HOME
* JAVA_HOME
* java (installed on PATH)
問題和解決
這個其實不是問題,出現上面提示的原因就是 Druid 在安裝的時候需要校驗 Java 的版本。
因爲 Druid 是在 Java 8 上編譯的,雖然 11 的版本也能夠運行。但是會提示上面的錯誤。
如果你是運行 JDK 11 的版本的話,請運行命令:
export DRUID_SKIP_JAVA_CHECK=1
然後再次嘗試運行就可以了。