Hi All,

Just to give you some additional information. I came across information on 
http://www.openkb.info/2017/05/drill-errors-with-jdk-java-compiler-not.html 

As per this article, my output of step 2 is not as expected.  But this article does not mention what to do in this case.  thx

Regards
Prabhakar

On Thu, Apr 9, 2020 at 7:37 PM Prabhakar Bhosaale <bhosale.p.v@gmail.com> wrote:
Hi James,
thanks for quick reply. 
Below is Java version screenshot. As per documentation this is correct.
image.png

Below is screenshot of java path. this is also correct. But still same error
image.png

Regards
Prabhakar

On Thu, Apr 9, 2020 at 7:08 PM Jaimes, Rafael - 0993 - MITLL <Rafael.Jaimes@ll.mit.edu> wrote:
The error tells you that it's not finding a Java 1.8 JDK. You can use OpenJDK
1.8 for the job.
I would check:
1) your java version (both version # and whether it is a JDK, not a JRE)
2) your java path env vars

-----Original Message-----
From: Prabhakar Bhosaale <bhosale.p.v@gmail.com>
Sent: Thursday, April 9, 2020 9:29 AM
To: user@drill.apache.org
Subject: Drill embedded mode on Linux

Hi All,
I am using drill 1.16 and trying to start the drill in embedded mode on linux
machine. Following the documentation from drill website.

I am using  bin/drill-embedded command but it is giving following error.
Checked the java version and it is correct.  Please help urgently. thx

Regards
Prabhakar

Error: Failure in starting embedded Drillbit:
org.apache.drill.exec.exception.DrillbitStartupException: JDK Java compiler
not available. Ensure Drill is running with the java executable from a JDK and
not a JRE (state=,code=0)
java.sql.SQLException: Failure in starting embedded Drillbit:
org.apache.drill.exec.exception.DrillbitStartupException: JDK Java compiler
not available. Ensure Drill is running with the java executable from a JDK and
not a JRE
        at
org.apache.drill.jdbc.impl.DrillConnectionImpl.<init>(DrillConnectionImpl.java:143)
        at
org.apache.drill.jdbc.impl.DrillJdbc41Factory.newDrillConnection(DrillJdbc41Factory.java:67)
        at
org.apache.drill.jdbc.impl.DrillFactory.newConnection(DrillFactory.java:67)
        at
org.apache.calcite.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:138)
        at org.apache.drill.jdbc.Driver.connect(Driver.java:72)
        at sqlline.DatabaseConnection.connect(DatabaseConnection.java:130)
        at
sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:179)
        at sqlline.Commands.connect(Commands.java:1278)
        at sqlline.Commands.connect(Commands.java:1172)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at
sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
        at sqlline.SqlLine.dispatch(SqlLine.java:736)
        at sqlline.SqlLine.initArgs(SqlLine.java:428)
        at sqlline.SqlLine.begin(SqlLine.java:531)
        at sqlline.SqlLine.start(SqlLine.java:270)
        at sqlline.SqlLine.main(SqlLine.java:201)
Caused by: org.apache.drill.exec.exception.DrillbitStartupException: JDK Java
compiler not available. Ensure Drill is running with the java executable from
a JDK and not a JRE
        at org.apache.drill.exec.server.Drillbit.<init>(Drillbit.java:152)
        at org.apache.drill.exec.server.Drillbit.<init>(Drillbit.java:125)
        at
org.apache.drill.jdbc.impl.DrillConnectionImpl.<init>(DrillConnectionImpl.java:133)
        ... 18 more