filed https://issues.apache.org/jira/browse/DRILL-7695
-----Original Message----- From: Paul Rogers <par0...@yahoo.com.INVALID> Sent: Thursday, April 9, 2020 3:24 PM To: user@drill.apache.org Subject: Re: Drill embedded mode on Linux Hi Prabhakar, Rafael has pointed you in the right direction. Drill does code generation at run time and for that it needs the Java compiler which requires the JDK, not just the JRE. I do development on Linux (Ubuntu-based Linux Mint) and was able to install the JDK. It's been awhile so I don't recall exactly what I did. Which distro are you using? There are different ways to install the JDK depending on your distro. I find a Google search often reveals the correct path for each. That you have to ask this question shows a hole in the Drill documentation. Please file a JIRA ticket to describe the problem. Once you find how to install the JDK on your distro, please add that to the ticket so we can update the docs. Thanks, - Paul On Thursday, April 9, 2020, 7:27:58 AM PDT, Prabhakar Bhosaale <bhosale....@gmail.com> wrote: Thanks Jaims, This helps. I have only openJDK. I will get the devel and will update you. Regards Prabhakar On Thu, Apr 9, 2020 at 7:53 PM Rafael Jaimes III <rafjai...@gmail.com> wrote: > Prab, > > I don't think screenshots work on the list. What distro are you using? > > On Red Hat, OpenJDK is a JRE but OpenJDK-devel has the JDK. It may be > confusing. > > On Thu, Apr 9, 2020, 10:17 AM Prabhakar Bhosaale > <bhosale....@gmail.com> > wrote: > > > 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....@gmail.com > > > > wrote: > > > >> Hi James, > >> thanks for quick reply. > >> Below is Java version screenshot. As per documentation this is correct. > >> [image: image.png] > >> > >> Below is screenshot of java path. this is also correct. But still > >> same error > >> [image: image.png] > >> > >> Regards > >> Prabhakar > >> > >> On Thu, Apr 9, 2020 at 7:08 PM Jaimes, Rafael - 0993 - MITLL < > >> rafael.jai...@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....@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>(DrillConnectionI > mpl.java:143) > >>> at > >>> > >>> > org.apache.drill.jdbc.impl.DrillJdbc41Factory.newDrillConnection(Drill > Jdbc41Factory.java:67) > >>> at > >>> > >>> > org.apache.drill.jdbc.impl.DrillFactory.newConnection(DrillFactory.jav > a:67) > >>> at > >>> > >>> > org.apache.calcite.avatica.UnregisteredDriver.connect(UnregisteredDriv > er.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:17 > >>>9) > >>> 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.j > ava:62) > >>> at > >>> > >>> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess > orImpl.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>(DrillConnectionI > mpl.java:133) > >>> ... 18 more > >>> > >> >
smime.p7s
Description: S/MIME cryptographic signature